<!-- SINGLE URL ACCESS --> <!-- This goes in the HEAD of the html file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2005, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- if (document.referrer != 'http://www.domain_name.com/example.html') { alert('Visitors who are not coming from the URL:\n '+document.referrer+' \nare not allowed to view this page!'); history.back(-1); } // --> </script> <!-- Just change the URL 'domain_name.com/example.html' above to the URL you wish to block. -->