Spider trap
From Wikipedia, the free encyclopedia
A spider trap (or crawler trap) is a set of web pages that may intentionally or unintentionally be used to cause a web crawler or search bot to make an infinite number of requests or cause a poorly constructed crawler to crash. Web crawlers are also called web spiders, from which the name is derived. Spider traps may be created to "catch" spambots or other crawlers that waste a website's bandwidth. They may also be created unintentionally by calendars that use dynamic pages with links that continually point to the next day or year.
Common techniques used are:
- creation of infinitely deep directory structures like
http://foo.com/bar/foo/bar/foo/bar/foo/bar/.....
- dynamic pages like calendars that produce an infinite number of pages for a web crawler to follow.
- pages filled with a large number of characters, crashing the lexical analyzer parsing the page.
There is no algorithm to detect all spider traps. Some classes of traps can be detected automatically, but new, unrecognized traps arise quickly.
[edit] Politeness
A spider trap causes a web crawler to enter something like an infinite loop, which wastes the spider's resources, lowers its productivity, and, in the case of a poorly written crawler, can crash the program. Polite spiders alternate requests between different hosts, and don't request documents from the same server more than once every several seconds, meaning that a "polite" web crawler is affected to a much lesser degree than an "impolite" crawler.
Spider traps are sometimes intentionally designed to hamper spam bots.