Re: Help recognizing bots?
| From: | JamesBenson | Date: | Thu, 23 Jun 2005 10:37:41 +0000 |
| Subject: | Re: Help recognizing bots? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-217468@lists.php.net to get a copy of this message | ||
http://www.funender.com/phpBB2/about18577.html
Brian Dunning wrote:
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.)