JS – Security – Specify Referring Page
This script makes sure that your visitor can only reach a given page from the page that you specify.
<html> <head> <SCRIPT LANGUAGE="JavaScript"> var allowedreferrer = "http://www.yoursite.com/referringpagename.htm"; if (document.referrer.indexOf(allowedreferrer) == -1) { alert("You can only access this page from " + allowedreferrer); window.location=allowedreferrer; } </script> </head> <body> This script makes sure that your visitor can only reach a given page from the page that you specify. </body> </html>