Reputation: 2287
What are ways in which web crawlers (both from search engines and non-search engines) could affect site statistics (e.g., when doing AB-testing different page variations)? And what are ways to take care of these problems?
For example:
Do a lot of people writing web crawlers often delete their cookies and mask their IPs, so that web crawlers often show up as different users each time they crawl the site?
What are heuristics to use to recognize that something is a bot? (I'm guessing any sophisticated enough bot can be indistinguishable from a real user, if it wants to -- is this correct?)
Just to clarify, based on the comment below: I'm also interested in the case when my site is specifically being targeted (by a possibly illegitimate crawler).
Upvotes: 1
Views: 1285
Reputation: 791
Crawlers often crawl in order - like, the first link on your page and then the second link.
Upvotes: 1
Reputation: 154494
A few simple ways to detect a bot:
/robots.txt
- only bots (and geeky people, who might almost be robots anyway) will look at this.msnbot/2.0b (+http://search.msn.com/msnbot.htm
or Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1; aggregator:Spinn3r (Spinn3r 3.1); http://spinn3r.com/robot) Gecko/20021130
), so seeing that's a fairly strong indication of a bot.Between these, you should have no problem figuring out which hits are coming from robots, and which are from real people.
Finally, there are always going to be nasty and/or stupid bots which are hard to detect. But, at least in my experience, there aren't too many of those in the wild.
Upvotes: 4