Да запарился...
Кстати с роботами лучше такой список юзать:
CODE:
if (stristr($_SERVER['HTTP_USER_AGENT'], Yandex)) {$bot = "Yandex";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Mail.ru)) {$bot = "Mail.ru";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Msnbot)) {$bot = "Msnbot";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Yahoo)) {$bot = "Yahoo";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Google)) {$bot = "Google";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Aport)) {$bot = "Aport";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Rambler)) {$bot = "Rambler";}
if (stristr($_SERVER['HTTP_USER_AGENT'], webalta)) {$bot = "webalta";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Slurp)) {$bot = "Slurp";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Gigabot)) {$bot = "Gigabot";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Snapbot)) {$bot = "Snapbot";}
if (stristr($_SERVER['HTTP_USER_AGENT'], archive_org)) {$bot = "Archive_org";}
if (stristr($_SERVER['HTTP_USER_AGENT'], TurtleScanner)) {$bot = "TurtleScanner";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Nutscrape)) {$bot = "Nutscrape";}
if (stristr($_SERVER['HTTP_USER_AGENT'], WebSpeedReader)) {$bot = "WebSpeedReader";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Bond)) {$bot = "Bond";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Wget)) {$bot = "Wget";}
if (stristr($_SERVER['HTTP_USER_AGENT'], ZyBorg)) {$bot = "ZyBorg";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Exabot)) {$bot = "Exabot";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Mail.ru)) {$bot = "Mail.ru";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Msnbot)) {$bot = "Msnbot";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Yahoo)) {$bot = "Yahoo";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Google)) {$bot = "Google";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Aport)) {$bot = "Aport";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Rambler)) {$bot = "Rambler";}
if (stristr($_SERVER['HTTP_USER_AGENT'], webalta)) {$bot = "webalta";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Slurp)) {$bot = "Slurp";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Gigabot)) {$bot = "Gigabot";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Snapbot)) {$bot = "Snapbot";}
if (stristr($_SERVER['HTTP_USER_AGENT'], archive_org)) {$bot = "Archive_org";}
if (stristr($_SERVER['HTTP_USER_AGENT'], TurtleScanner)) {$bot = "TurtleScanner";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Nutscrape)) {$bot = "Nutscrape";}
if (stristr($_SERVER['HTTP_USER_AGENT'], WebSpeedReader)) {$bot = "WebSpeedReader";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Bond)) {$bot = "Bond";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Wget)) {$bot = "Wget";}
if (stristr($_SERVER['HTTP_USER_AGENT'], ZyBorg)) {$bot = "ZyBorg";}
if (stristr($_SERVER['HTTP_USER_AGENT'], Exabot)) {$bot = "Exabot";}
И через регистронезависимую функцию stristr