Crawler trap

Also known as: spider trap

On this page 7

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 typeTypical causeURL symptom
Infinite calendarNext and previous links with no date limit/events?month=2087-04
Faceted navigationFilters combinable in any order and number?color=red&size=m&sort=price&brand=x
Session identifiersSession token appended to every link?sid=8f3a2c91 on each URL
Relative link loopBroken relative path repeated on every level/blog/blog/blog/post
Internal search pagesCrawlable links to search result URLs/search?q=any+string
Sort and pagination mixSorting parameters on every paginated page?page=48&sort=desc&view=grid
Soft 404 on any pathServer returns 200 for nonexistent URLsRandom paths return a full page
Typical crawler trap patterns and their URL symptoms

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.

EffectMechanismWhere it shows
Slower discoveryNew pages wait behind trap URLs in the queueDelayed first crawl in log files
Stale indexUpdated pages are recrawled less oftenOld titles and prices in search results
Index bloatNear-duplicate URLs get indexedRising indexed count without new content
Server loadThousands of extra bot requestsCPU spikes and slower response times
Diluted signalsInternal links point to many URL variantsWeaker canonical consolidation
Consequences of crawler traps and where they become visible

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.

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.

IssueNumber of URLsCore problem
Crawler trapUnbounded or extremely largeEndless generation of new addresses
Redirect chainFiniteSeveral hops before the final URL
Crawl errorFiniteFetch fails with an error status
Duplicate contentFinite but repeatedSame content on several URLs
Excessive crawl depthFiniteImportant pages too many clicks deep
How crawler traps differ from neighboring crawling issues

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.

SituationRecommended fixReason
Endless calendar archiveLimit date range and return 404 beyond itRemoves the infinite sequence at the source
Filter combinations with no search valueDisallow in robots.txtStops requests before they happen
Session IDs in URLsMove sessions to cookiesEliminates duplicate URL variants entirely
Relative link loopUse root-relative or absolute linksFixes the broken path generation
Valuable filter pagesAllow a curated set, link only thoseKeeps useful landing pages crawlable
Any path returns 200Return a true 404 statusEnds soft 404 traps
Choosing a fix for a crawler trap

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.