Specify Referring Page - This script makes sure that your visitor can only reach a given page from the page that you specify.
Compatible Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser
Example: View Code Demo
<html> <head> <title>Specify Referring Page - Javascript Code Snippet</title> <script> <!-- // Begin Specify Referring Page // == This Script Free To Use Providing This Notice Remains == // // == This Script Has Been Found In The https://snapbuilder.com Free Public Codes Library == // // == NOTICE: Though This Material May Have Been In A Public Depository, Certain Author Copyright Restrictions May Apply == // --> var allowedreferrer = "http://www.yoursite.com/referring_page_name.htm"; if (document.referrer.indexOf(allowedreferrer) == -1) { alert("You can only access this page from " + allowedreferrer); window.location=allowedreferrer; } </script> </head> <body> <p>This script makes sure that your visitor can only reach a given page from the page that you specify.</p> </body> </html>