Crawling and robots.txt · Crawl traps
Crawl traps and infinite URL spaces
Calendars, faceted filters and session URLs generate endless crawlable URLs that soak up crawl budget.
How this page is built
This page links to a calendar. Every calendar URL has a relative “next month” link, and every URL under /fixtures/calendar/ returns the same page, so each link leads one level deeper forever.
Why it matters
Search engines give every site a limited amount of crawling. When a template can generate URLs without end, such as a calendar that always offers a next month, faceted filters that combine in every order, or session IDs added to links, crawlers can spend that allowance on pages that add nothing.
Important pages are then crawled less often, new content is found more slowly, and the index can fill with near-identical URLs that compete with each other.
How to check it
Crawl the site with a page or depth limit and sort the results by URL. Look for long runs of addresses that share a pattern, such as repeated path segments, growing query strings or dates far in the future. Server log files show the same patterns from the search engine’s side, including how often each one is requested.
How to fix it
Stop the endless links at source. Limit calendars to a sensible date range and stop linking beyond it, and render filters that should not be crawled as buttons or form controls rather than plain links.
Where parameter URLs must exist, block the pattern in robots.txt, point a canonical at the main version, and make sure non-existent dates or combinations return a 404 status code instead of a copy of the page.