Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Crawl traps: how to find and fix infinite URLs in your site

SEO-017Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A crawl trap is a set of URLs that a bot can keep following with no natural end. Each page links to another new URL, so the list of addresses grows without limit. Search engines call the time and requests they give your site its crawl budget. A trap burns that budget on pages nobody wants.

The common causes are:

Common crawl traps and what creates them
TrapExample URLWhat creates it
Infinite calendar/events/2087-03/Next and previous month links with no limit
Session IDs/shop?sid=8f3a91A new ID in the URL for each visit, so every crawl sees new URLs
Parameter combinations/shoes?color=red&size=9&sort=price&page=3Filters, sorting and tracking parameters that combine in any order
Repeating paths/blog/blog/blog/postA broken relative link that adds a folder each time
Search or booking widgets/book?date=2031-07-04Date or query values that accept any input

Why it costs you leads or sales

Bots have limited time for each site. If much of it goes on trap URLs, new products, landing pages and blog posts get crawled late, and updates to prices or stock show up slowly in search. Small sites are rarely short of crawl budget, but a trap can turn a small site into millions of URLs. Duplicate or thin pages can also dilute which version ranks, and a flood of requests can slow your server for real visitors.

How a calendar trap eats crawl visits
  1. Bot arrivesGooglebot starts a crawl of your site
  2. Calendar pageEach month links to the next month
  3. Endless monthsYear 2087, 2088 and beyond
  4. New landing pageCrawled late or rarely

The bot follows next-month links forever, so the money page waits.

Where crawl requests goExample numbers
Where crawl requests go (example)Trap URLs (before): 70 % of requests; Real pages (before): 30 % of requests; Trap URLs (after): 5 % of requests; Real pages (after): 95 % of requests036737030595Trap URLs (before)Real pages (before)Trap URLs (after)Real pages (after)% of requests

Example: share of a bot's daily requests on a site with a calendar trap, before and after the fix. Numbers are illustrative.

How to check if your site has it

Find crawl traps
  1. Open Crawl stats in Google Search Console

    Go to Settings, then Crawl stats. Look at the By response and By file type reports, and the Crawl requests list. Many requests to one section you do not care about is a warning sign.

  2. Check Page indexing

    In Pages, look at 'Crawled - currently not indexed' and 'Duplicate without user-selected canonical'. Long lists of URLs with parameters or dates point to a trap.

  3. Search Google for your own parameters

    Try site:yourdomain.com inurl:sid= or inurl:date= and similar. Results from many odd URLs show they are being found.

  4. Crawl your site with a desktop crawler

    Run a crawler such as Screaming Frog (free up to 500 URLs) and watch the URL count. If it keeps climbing, or shows very deep paths, find which link creates them.

  5. Read your server logs

    Filter requests from Googlebot and group them by path. A section with thousands of hits and few real pages is likely a trap. Verify the bot is real, as the user agent can be faked.

How to fix it

Pick the fix that matches the trap. The best fix removes the links that create the URLs. Blocking in robots.txt is a second layer. It stops crawling but does not remove URLs that are already indexed, and Google cannot see a canonical or noindex tag on a blocked page.

Close a crawl trap
  1. Identify the pattern

    Write down the URL pattern, for example /events/ followed by a year and month, or any URL with ?sid=.

  2. Stop generating the links

    Limit calendar navigation to a sensible range (for example, hide next-month after 12 months). Move session IDs into cookies. Make filter links rel=nofollow or load them without crawlable links where they add no search value.

  3. Point duplicates to the main page

    Add a rel=canonical tag on parameter pages that points to the clean URL. Use noindex for pages that should stay out of search but must still be crawled once.

  4. Block what is left in robots.txt

    Add Disallow rules for the trap pattern. Test them before you publish so you do not block real pages.

  5. Return the right status

    Make out-of-range dates return 404 or 410 instead of an empty page with a 200 status.

robots.txt rules for common trapstext
User-agent: *
# Session IDs and tracking-only parameters
Disallow: /*?*sid=
Disallow: /*?*sessionid=
# Calendar archive beyond what you need
Disallow: /events/20*/
# Sort and view options that do not change content
Disallow: /*?*sort=

Sitemap: https://www.example.com/sitemap.xml
Canonical tag on a parameter pagehtml
<link rel="canonical" href="https://www.example.com/shoes/" />
Where to make the change on your platform
  1. Limit calendar plugins

    In your events or booking plugin settings, restrict how far ahead the calendar can go, or turn off archive pages for past and far-future dates.

  2. Edit robots.txt

    Use the robots.txt editor in your SEO plugin (for example Yoast under Tools, File editor, or Rank Math under General Settings, Edit robots.txt) to add the Disallow rules.

  3. Check canonicals

    Your SEO plugin adds canonical tags. Confirm that parameter pages point to the clean URL by viewing the page source.

PHP: keep session IDs out of URLsphp
<?php
ini_set('session.use_only_cookies', '1');
ini_set('session.use_trans_sid', '0');
session_start();
Calendar trap before and after

Before

  • Next-month link on every calendar page
  • Years far in the future return 200
  • Bot requests pile up in /events/

After

  • Navigation stops after 12 months
  • Out-of-range dates return 404
  • Bot visits move to products and landing pages

How to confirm it's fixed

Confirmation checks
  • A fresh crawl with a desktop crawler ends instead of growing forever
  • The robots.txt tester shows trap URLs as blocked and money pages as allowed
  • Out-of-range calendar dates return 404 or 410
  • Source of a parameter page shows a canonical tag pointing to the clean URL
  • Search Console Crawl stats show fewer requests to the trap section over the next few weeks
  • Server logs show Googlebot hits shifting to real pages

How to prevent it happening again

Prevention habits
  • Before adding a calendar, filter or search widget, decide the limit on its URLs
  • Never put session IDs or user IDs in URLs
  • Keep a list of tracking and sort parameters and review robots.txt when you add new ones
  • Run a site crawl after each major template or plugin change
  • Check Search Console Crawl stats once a month for sudden jumps
  • Test robots.txt changes on a copy before publishing

How FunnelGuard handles this

FunnelGuard does not check for crawl traps today. It is a possible future check. FunnelGuard is a synthetic monitoring service: a robot visitor runs your real customer journeys, such as lead forms, checkouts and booking buttons, and checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM.

That is near this issue because a slow or overloaded server can also break those journeys. To watch for traps yourself, review Crawl stats in Google Search Console monthly, crawl your site with a desktop crawler after big changes, and scan server logs for sections with unusual bot traffic. A free read-only FunnelGuard website audit is available if you want a quick outside look at your site.

Frequently asked questions

Questions people ask

What is a crawl trap in SEO?

A crawl trap is a set of URLs that a search bot can follow without ever reaching an end, such as a calendar with endless next-month links. The bot wastes visits on these pages instead of your real content. It usually comes from links that generate new URLs automatically.

Why is Googlebot crawling thousands of URLs I never created?

Your site is probably generating them through parameters, session IDs, filters or date links. Each combination is a new URL to a bot. Check Search Console Crawl stats and your server logs to see which pattern is producing them.

How do I stop an infinite calendar from being crawled?

Limit how far ahead and back the calendar can go, and stop printing next and previous links at that limit. Return a 404 for dates outside the range. You can also add a robots.txt Disallow rule for the date path.

Are session IDs in URLs bad for SEO?

Yes. Every visit gets a different ID, so the same page appears under many URLs, which wastes crawling and creates duplicates. Store the session in a cookie instead of the URL.

Should I use robots.txt or noindex to fix a crawl trap?

Use robots.txt to stop bots crawling trap URLs. Use noindex or a canonical tag if the page must be crawled but kept out of search. Do not combine them on one URL, because a bot blocked by robots.txt cannot read the noindex or canonical tag.

Do crawl traps affect small websites?

They can. A small site may not run out of crawl budget normally, but a trap can create millions of URLs, slow your server and delay crawling of new pages. It matters most when the trap is large.

How can I find crawl traps in Google Search Console?

Open Settings, then Crawl stats, and look for a section with a very high number of requests. Then check the Pages report for long lists of parameter or date URLs that are crawled but not indexed. Pair this with a crawler or log review to confirm the pattern.

Does FunnelGuard detect crawl traps?

No. FunnelGuard does not check for crawl traps yet; it is a possible future check. It monitors your customer journeys, tracking and lead delivery, so use Search Console, a crawler and server logs to watch for traps.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.