Hi all,
I'm trying to write a small script that will ensure that my page only loads if visitors come to it from another specific page, otherwise it should redirect them to that first page. Here is what I have but it doesn't seem to work properly. Any ides or suggestions are appreciated and welcomed.
<?php
if($_SERVER['HTTP_REFER'] != "http://somedomain.com/comm3/redir.html")
{
header("Location: [url]http://somedomain.com/comm3/index.php[/url]");
}
?>
Thanks in advance,
Scott