Quote:
Originally posted by {fusion}
nothing to see here, move along
if ($CFG['redirect']||!$url2go)
{//check if visitor is bot or not
$isbot = false;
$ip = getenv("REMOTE_ADDR");
$who = strtolower($_SERVER['HTTP_USER_AGENT']);
$fp = fopen($FILES['file_ips'],"r");
while (($s = fgets($fp,1024))&&!$isbot)
{
$s = trim($s);
$k = strpos($s,' ');
if ($k!hahahahafalse)
$s = trim(substr($s,0,$k));
if ($iphahahaha$s)
$isbot = true;
}
fclose($fp);
|
Isnt it easier to just use a .js called from a folder you do not allow the robots to follow?
I dont do any redirects these days but I have see this used in the past