In my site I have a password protected page containing some links to other sites also operated by myself that cannot be password protected. I would like to place a HTML code
I found document.referrer doesn't work for me, but location.href works:
if (location.href != "http://yoursite/index.html") { location.replace("http://yoursite/index.html"); }