Javascript - How to find a domain in vulnerable to attack or not, Spoffing website

How to find a domain in vulnerable to attack or not

This is a simple javascript code find whether your domain or website is vulnerable to attack or not. This JavaScript code's result should match with the server name, if they do not match then the server might be spoof.

javascript:alert("The actual URL is:\t\t" + location.protocol 
+ "//" + location.hostname + "/" + "\nThe address URL is:\t\t" 
+ location.href + "\n" + "\n Match with server name.");
If the server name do not match then the server might be spoof.

The topic on Javascript - How to find a domain in vulnerable to attack or not is posted by - Patel

Hope you have enjoyed, Javascript - How to find a domain in vulnerable to attack or notThanks for your time

Tech Bluff