Help recognizing bots?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm using the following code in an effort to identify bots:

$client = $_SERVER['HTTP_USER_AGENT'];
if(!strpos($client, 'ooglebot') && !strpos($client, 'ahoo') && !strpos ($client, 'lurp') && !strpos($client, 'msnbot'))
{
    (Stuff that I do if it's not a bot)
}

But it doesn't seem to be catching a lot of bot action. Anyone have a better list of user agents? (I left off the first letter of some to avoid case conflicts.)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux