Anti-phishing Anti-spoofing Javascript. Detect Browser/Server Redirection.

Contributor Icon Contributed by MickeyMouse Date Icon May 19, 2005  
Tag Icon Tagged: Internet

Many phishing (spoofing) websites fool you into thinking you are on a different web site than you think you are. This will combat that.

    Phishing is evil. Basically, these scam artists use tricks to spoof the URL; therefore, where your browser is telling you are is not actually the correct server.

    In another words, what is in your browser’s address bar is not really the website name.

    This little bit of javascript can help:

    javascript:alert("The Real URL address: " + location.protocol + "//" + location.hostname + "/");

    Just cut and paste this into your browser’s address bar and click enter. A message box with the real URL address should appear.

Previous recipe | Next recipe |
 
blog comments powered by Disqus