A crawler trap, also called a spider trap, is a part of a website that produces a practically infinite number of crawlable URLs, so that search engine bots keep requesting new addresses without ever reaching the end. In SEO, and specifically in the Topic of Crawling, the problem matters because every request spent inside the trap is a request not spent on valuable, indexable pages.
Most crawler traps are not deliberate. They arise from ordinary features such as calendars, faceted navigation, session identifiers and relative links that combine into URL patterns a bot cannot distinguish from genuine content. The result is wasted crawl budget, slower discovery of new pages and, in severe cases, an index filled with near-duplicate addresses.
How a crawler trap captures a bot
A crawler trap works by continuously generating new links that a web crawler treats as unvisited URLs. A crawler such as Googlebot or Bingbot keeps a URL frontier, a queue of addresses waiting to be fetched, and adds every new link it extracts from a page. When each fetched page contains links to further unique URLs, the frontier never shrinks.
Crawlers identify pages by their exact URL string, not by their content. Two addresses that differ only in parameter order, a trailing slash or a session token are, at first, separate documents for the bot. Only after fetching and comparing content can a search engine conclude that many of them are duplicates, and by then the requests have already been spent.
Search engines defend themselves with heuristics: they cap crawl depth per host, detect repeating path segments, cluster URLs by pattern and lower the priority of parameter combinations that rarely yield unique content. These defenses limit the damage, but they also mean that a site with a trap may see legitimate pages crawled less often, because the engine has learned to treat the whole host with caution.
Common types of crawler traps
Crawler traps fall into a handful of recurring patterns, each tied to a specific site feature. The table below lists the most frequent ones and the URL symptom that reveals them in a crawl or in server logs.
| Trap type | Typical cause | URL symptom |
|---|---|---|
| Infinite calendar | Next and previous links with no date limit | /events?month=2087-04 |
| Faceted navigation | Filters combinable in any order and number | ?color=red&size=m&sort=price&brand=x |
| Session identifiers | Session token appended to every link | ?sid=8f3a2c91 on each URL |
| Relative link loop | Broken relative path repeated on every level | /blog/blog/blog/post |
| Internal search pages | Crawlable links to search result URLs | /search?q=any+string |
| Sort and pagination mix | Sorting parameters on every paginated page | ?page=48&sort=desc&view=grid |
| Soft 404 on any path | Server returns 200 for nonexistent URLs | Random paths return a full page |
Faceted navigation is the most damaging type on large e-commerce sites because the number of combinations grows multiplicatively: ten filters with five values each can produce millions of distinct URLs from a catalog of a few thousand products. Relative link loops are the most deceptive, because each new level looks like a deeper but valid directory.
Effects on crawl budget and indexing
The main consequence of a crawler trap is misallocated crawl budget, which is the number of URLs a search engine is willing and able to fetch from a host in a given period. On a small site of a few hundred pages the effect may be negligible, but on sites with tens of thousands of URLs or more a trap can absorb the majority of bot requests.
The damage appears in several measurable places. The following table connects each effect to the signal that usually exposes it.
| Effect | Mechanism | Where it shows |
|---|---|---|
| Slower discovery | New pages wait behind trap URLs in the queue | Delayed first crawl in log files |
| Stale index | Updated pages are recrawled less often | Old titles and prices in search results |
| Index bloat | Near-duplicate URLs get indexed | Rising indexed count without new content |
| Server load | Thousands of extra bot requests | CPU spikes and slower response times |
| Diluted signals | Internal links point to many URL variants | Weaker canonical consolidation |
Server load deserves particular attention: when response times rise, search engines reduce the crawl rate automatically to protect the host. A trap can therefore lower the crawl rate for the entire site, not only for the affected section.
Crawler traps compared with related crawling problems
A crawler trap is distinct from other crawling issues because its defining feature is unbounded URL generation. Related problems waste requests too, but they involve a finite set of addresses. The comparison below helps decide which diagnosis fits a symptom.
| Issue | Number of URLs | Core problem |
|---|---|---|
| Crawler trap | Unbounded or extremely large | Endless generation of new addresses |
| Redirect chain | Finite | Several hops before the final URL |
| Crawl error | Finite | Fetch fails with an error status |
| Duplicate content | Finite but repeated | Same content on several URLs |
| Excessive crawl depth | Finite | Important pages too many clicks deep |
The categories overlap in practice. Faceted navigation creates duplicate content and a trap at once, and a relative link loop eventually triggers crawl errors when URLs exceed the maximum length a server accepts. Diagnosis should identify the root cause rather than only the most visible symptom.
Detecting and fixing crawler traps
Crawler traps are found most reliably through log file analysis, which shows exactly which URLs bots requested and how often. A sudden rise in requests to one directory or parameter, or URLs with repeating path segments, points to a trap. A desktop crawler configured without limits will reveal the same pattern when its URL count keeps climbing far beyond the known page count.
The right fix depends on whether the trap URLs serve users and whether they should ever appear in search results. The decision table below matches common situations to an appropriate control.
| Situation | Recommended fix | Reason |
|---|---|---|
| Endless calendar archive | Limit date range and return 404 beyond it | Removes the infinite sequence at the source |
| Filter combinations with no search value | Disallow in robots.txt | Stops requests before they happen |
| Session IDs in URLs | Move sessions to cookies | Eliminates duplicate URL variants entirely |
| Relative link loop | Use root-relative or absolute links | Fixes the broken path generation |
| Valuable filter pages | Allow a curated set, link only those | Keeps useful landing pages crawlable |
| Any path returns 200 | Return a true 404 status | Ends soft 404 traps |
Two common mistakes weaken these fixes. First, nofollow on internal links is only a hint and does not reliably prevent crawling of URLs discovered elsewhere. Second, a noindex directive does not save crawl budget, because the bot must fetch the page to read it. Blocking in robots.txt prevents fetching, but blocked URLs can still be indexed without content if many links point to them, so the cleanest solution is not generating the URLs at all.
Stripped to the essentials
Search engines explore websites by following links, a little like a visitor walking through the rooms of a building. A crawler trap is a corridor that never ends. Every door opens onto another door, so the visitor keeps walking and never sees the rooms that actually matter.
Websites build these corridors by accident, through calendars that go on forever or filters that can be combined endlessly. The key takeaway is simple: if the site keeps inventing new addresses, search engines spend their limited time on useless pages, and important pages get found and updated more slowly.
Where it is applied
An online clothing retailer with about 8,000 product pages notices that new arrivals take two to three weeks to appear in search results. Its SEO specialist runs a log file analysis covering 30 days and finds that roughly 70 percent of Googlebot requests went to category URLs with stacked filter parameters for color, size, price range and sorting, many of them combinations with zero matching products.
The team rebuilds the filter links so that only single-filter pages for color and brand remain crawlable, adds robots.txt rules that disallow multi-parameter combinations, and returns a 404 status for filter pages with no products. Within six weeks the share of bot requests reaching product pages rises sharply, and new products are typically indexed within a few days instead of weeks.