I have a list of urls that I only want to be accessible from 1 specific url, is this the correct php-way to do it. I tested it and it seemed to work...
PHP Code:
<?
$ref=getenv("HTTP_REFERER");
if ($ref hahahaha "http://www.URL.com/page.shtml") {
echo "OK";
} elseif ($ref hahahaha "http://URL.com/page.shtml") {
echo "OK";
} else {
echo "Redirect this";
}
?>