<!-- BLOCK MULTIPLE DOMAINS --> <!-- 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/ --> <!-- // Just change the domains listed below to the domains you wish to block. // Users can add as many domains to the list as they want. // While adding new domains make sure that they are all numbered properly as shown. var urls=new Array(); urls[0]="http://www.any_site.com/" urls[1]="http://www.anything.org/" urls[2]="http://www.something.biz/" for (i=0; i < urls.length; i++) { if (document.referrer.indexOf(urls[i]) != -1) { alert('Visitors coming from the Domain:\n ' + urls[i] + '\n are not allowed to view this page!'); history.back(-1); } } // --> </script>