HTTP Referrer

liunx

Guest
Hi, I have a page with frames and I want to stop people looking at the pages outside of the frameset. Can I add a HTTP referrer so that if anyone tries to access a page directly they get a message like "Please go to <!-- w --><a class="postlink" href="http://www.xyz.com">www.xyz.com</a><!-- w --> and find the page you were looking for". Is this possible.<br />
<br />
Please Help<br />
<br />
Thanks<br />
<br />
Liam<!--content-->there's a simple javascript solution for this:<br />
<br />
<SCRIPT LANGUAGE="JavaScript"> <br />
<!-- Begin <br />
if (window == top) top.location.href = <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/">http://www.htmlforums.com/archive/index.php/</a><!-- m -->"index.html"; <br />
// End --> <br />
</script> <br />
<br />
put that inbetween the head tags of the framed page :D<!--content-->
 
Back
Top