Hi all,
I have search all the forums but was unable to find the solution to my problem.
Question:
I have a page with the following code:
<?
$from = getenv("HTTP_REFERER");
if ($from ! "http://mydomain/pagename")
{print(" SYSTEM INFORMATION. Sorry you have tried to link to a page which does not accept visitors directly. <br>
<a href=http://www.mydomain/index..htm target=\"_self\">CLICK HERE</a> to enter");
exit;}
?>
This code work fine providing the HTTP_REFERER is a page on my site. Should this work with pages linking from other sites.
Anyone have any comments.
Kind regards, keep safe and well.
Dereck