View Single Post
Old 09-01-2004, 10:34 PM  
JulianSosa
Confirmed User
 
Join Date: Aug 2003
Posts: 3,042
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
JulianSosa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote