A spider trap is a part of a website that keeps producing new addresses for crawlers to follow, often without end, so search and AI bots spend their visits on near-copies instead of your real pages. It is also called a crawler trap. Google calls the same thing an “infinite space”. It is nearly always an accident of how links are built, not something the owner chose.
What is a spider trap? #
Crawlers (“spiders”) find pages by following links. A trap is any set of links that creates more addresses every time a bot follows one. The page behind each address is new in name only. Google’s 2008 post on infinite spaces describes them as very large numbers of links that usually give little or no new content to index. The classic case it gives is a calendar with a “Next month” link.
The phrase has a second meaning. Some sites set hidden links on purpose to catch badly behaved bots. That is a bot defence, covered under verified bots and rate limiting. This page is about the accidental kind.
What causes one? #
Google’s guide to URL structure lists the usual causes of unnecessarily high numbers of URLs:
- Calendars. A calendar that links to future and past dates with no start or end date.
- Filters. Faceted navigation on shop categories: colour, size, brand, price, in any order.
- Sorting. The same list sorted by price, name, rating and newest.
- Session IDs. A unique code added to every link for every visitor. Google advises cookies instead.
- Extra parameters. Tracking and other URL parameters that do not change the content.
- Broken relative links. Google notes that a parent-relative link on the wrong page may create infinite spaces, for example a path that grows by one folder every click. See relative URL.
Internal search result pages, printer versions and endless “load more” pages can add to the pile.
Why does it matter for search? #
Bots have limited time on each site. Google’s guide to faceted navigation says filter links can generate infinite URL spaces, that crawlers will typically access a very large number of them, and that they then have less time for new, useful URLs. The URL structure guide adds that Googlebot may use much more bandwidth than needed.
Google’s crawl budget guide is written for large sites: 1 million+ unique pages changing about weekly, or 10,000+ pages changing daily. A small site rarely runs out of crawl budget. A trap can still bury new products, slow your server and fill reports with junk, which shows up as index bloat and pages left as discovered, currently not indexed.
Why does it matter for AI answers? #
AI crawlers follow links too. A trap can turn one bot visit into thousands of requests for pages nobody needs. Time spent there is time not spent on the pages you want quoted. Clean links are part of AI crawlability.
How do you fix it? #
Google’s own guides give these fixes:
- Block the pattern in robots.txt. The faceted navigation guide says to use robots.txt to disallow crawling of filter URLs if you do not need them in search. The 2008 post says the same for whole groups of generated links, and to check that bots can still reach your real content afterwards.
- Use fragments for filters. Google says filtering based on URL fragments (the part after #) has no impact on crawling.
- Mark the links nofollow. Every link to the URL must carry nofollow for it to count.
- Tidy filters you keep. Use the standard & separator, keep filters in the same order, allow no duplicate filters, and return a 404 when a combination has no results.
- Cap calendars. Only link to dates that have events.
- Drop session IDs and useless parameters from links.
- Use absolute or root-relative links in templates, so paths cannot grow. See absolute URL.
One thing not to rely on: noindex. The crawl budget guide says Google will still request the page and then drop it, so noindex does not save crawling. It also warns that soft 404 pages keep being crawled. We compare the three choices in noindex, nofollow or robots.txt.
Common mistakes #
- Blocking too much. A wide robots.txt rule can hide your real categories.
- Canonical tags as the only fix. A canonical tag helps choose the main page, but bots still have to fetch each copy to read it.
- Filter links in the sitemap. Keep trap addresses out of the XML sitemap; it is a list of pages you want found.
- Redirect chains inside the trap. The crawl budget guide says long redirect chains harm crawling.
- Never looking at logs. A trap is hard to see on the page; server logs show where bots really go.
A worked example #
A shop category page has four optional filters: colour (8 choices), size (10), brand (12) and price band (5). Each filter can also be left empty, so the counts are 9, 11, 13 and 6.
| What the links allow | Addresses from one category |
|---|---|
| Filters only: 9 x 11 x 13 x 6 | 7,722 |
| Plus 4 sort orders | 30,888 |
| Plus filters in any order | Far more again |
The shop has 400 products. Bots could spend weeks on filter pages and still not reach a new product. The fix: keep one filter level the shop wants found (say colour), with fixed order and a 404 for empty results, and block the rest in robots.txt.
How to check it #
- Run our Crawl Trap Checker on a category page to see how many addresses its links create.
- Read your rules with the Robots.txt Checker.
- Test a filter address with the Canonical Checker and the Indexability Checker.
- Follow any hops with the Redirect Checker, and check your sitemap with the Sitemap Checker.
- Upload a log with the AI Crawler Log Analyzer to see which bots are stuck where.
- In Google Search Console, look at the crawl stats and the page indexing report.
- In URSY Pro, being built: Crawl trap guard (Pro) and Crawl budget by bot (Pro).
Questions #
Is a spider trap a penalty? #
No. It wastes crawling; it is not a rule break.
Does a small site need to worry? #
Less than a big one, but one filter widget can still create thousands of addresses.
Will robots.txt remove pages already indexed? #
Not by itself. It stops crawling. See indexed, though blocked by robots.txt.
Related words #
Sources #
- Google Search Central Blog: To infinity and beyond? No! (August 2008), checked 25 November 2026
- Google Search Central: URL structure best practices, checked 25 November 2026
- Google Search Central: Managing crawling of faceted navigation URLs, checked 25 November 2026
- Google Search Central: Crawl budget management for large sites, checked 25 November 2026
Updated 25 November 2026 by URSY.
Cite this page: Spider trap. URSY. Updated 25 November 2026. https://ursy.com/wiki/spider-trap/ · Section links
Tools for this
- LiveCrawl Trap Checkerfilter links that make endless pagesRun the check →
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →
- ProCrawl trap guardFilter mazes found and shut; bots answered in 1 msIn URSY Pro →