$itsagoogle = 'google.';
$ref = getenv("HTTP_REFERER");
if (($ref) and (strstr($ref, $itsagoogle)) ) {
print('
File Not Found
File Not Found
The requested URL was not found on this server.
');
exit;
}
function isBadReferrer($ref)
{
if (
(strstr($ref, "google.")) or
(strstr($ref, "aolsearch.aol.com")) or
(strstr($ref, "search.yahoo.com")) or
(strstr($ref, "search.msn.com")) or
(strstr($ref, "hotbot.com"))
//add more like the above line to add more "rejected" referrals
)
{
return true;
}
else
{
return false;
}
}
$ref = getenv("HTTP_REFERER");
if (($ref) and (isBadReferrer($ref) )) {
print('
File Not Found
File Not Found
The requested URL was not found on this server.
');
exit;
}
?>
Shutterblog • Shuttered.
Shuttered.
Just a reminder that I am now blogging regularly at Paperie Boutique. You can find me there, and at the following sites: