Does the user agent in any regular browser contain 'bot' or 'crawl'?
Posted
by
Echo
on Pro Webmasters
See other posts from Pro Webmasters
or by Echo
Published on 2010-10-11T19:07:35Z
Indexed on
2014/06/12
15:42 UTC
Read the original article
Hit count: 189
user-agent
Does the user agent in any regular browser contain 'bot' or 'crawl'?
I check the user agent on my site to see if it is coming from a bot or not. If it is, I can do some little optimizations since they don't login. (I don't change the content at all)
After adding checks for 30-40+ bots, I'm getting tired of added them. So I was wondering if checking if it just contains 'bot' or 'crawl'. I know that wont get all bots, but it would get a lot of them. But if that could cause any false positives, then it would totally mess up the ability to add to cart, place an order, and login in.
© Pro Webmasters or respective owner