I have a piece of code to prevent visitors coming from some porn sites to my teen site that link us to see our comunity forums and galleries :queasy: but this only works is they click on the link to our site on that website,
I would like to know if there is a way to check the last site visited so that if the user instead of clicking the link to our site just puts the URL on the URL BOX of his internet explorer he could still be blocked.
Thanks, this is code now may be it coudl help someone:
<?php
$ref = getenv('HTTP_REFERER');
if (eregi("pornsite", $ref)) {
echo "FAKE NOT FOUND WEBPAGE";
die;
}
?>