Free workshop
SEO in 90 minutes: audit your own website. Seats are limited.SEO in 90 minutes: audit your own site.
00d00h00m00s

Faceted navigation without the crawl trap

Filters are useful for shoppers and risky for crawlers. Here is what Google says about faceted URLs, a robots.txt pattern, and rules for the filter pages you keep.
Sooraj PFull-stack developer and SEO strategist
5 min read
0 views
Faceted navigation without the crawl trap
Search bot trapped in a maze of orange filter URL arrows beside a product filter panel

Size, colour, price, brand. Every filter makes a new URL, and the combinations multiply fast. Google calls faceted navigation a popular and useful feature that can also create an almost infinite number of URLs. This guide follows Google’s own documentation to decide which filter pages deserve to exist, how to stop crawling of the rest and how to keep the kept URLs clean.

01

Why filters create a crawl problem

A category with four filters can produce thousands of URL combinations. Most show the same products in a different order or a smaller set.

Google describes faceted navigation as popular and useful, and also says it can generate infinite URL spaces.1 Crawlers can waste time on these URLs instead of your real products.

Typical filter URLs
URLWhat it shows
/shoes/All shoes
/shoes/?color=redRed shoes
/shoes/?color=red&size=9Red shoes in size 9
/shoes/?size=9&color=redThe same list, with the parameters in another order
/shoes/?color=red&size=9&sort=priceThe same list, sorted
02

Step 1: decide which filter pages deserve to exist

Not every filter is bad. Some match what people search for, such as “red running shoes”.

A simple decision test
QuestionIf yesIf no
Do people search for this combination?Consider a clean, crawlable landing pageKeep it for shoppers only
Does it have enough products to be useful?Keep itReturn a 404 or hide the option
Is it only a sort order or a view change?Block crawlingKeep as normal
Is it a long chain of many filters?Block crawlingKeep as normal
03

Step 2: block crawling of the rest

Google lists robots.txt as the way to stop crawling of faceted URLs. You disallow the filter parameters.1

robots.txt
1user-agent: Googlebot2disallow: /*?*color=3disallow: /*?*size=4disallow: /*?*sort=5allow: /*?color=all$
Other options and their limits
OptionWhat Google says
URL fragments (#)They do not affect crawling, so they are not a fix1
rel=canonicalMay reduce crawl volume over time but is generally less effective in the long term1
rel=nofollowMust be on every anchor that links to the URL, or it does not help1
04

Step 3: keep the URLs you keep clean

For facet URLs you leave crawlable, Google gives practical rules.1

  1. 1

    Use the standard separator

    Use the ampersand (&) to separate parameters.

  2. 2

    Keep the order the same

    Always output filters in one fixed order, so one page has one URL.

  3. 3

    Return 404 for empty results

    If a combination has no products, return a 404 status, not an empty page.

  4. 4

    Return 404 for nonsense combinations

    A combination that cannot exist should not load.

  5. 5

    Link to the clean version

    Internal links should point to the preferred URL.

05

Step 4: test and watch

Checks to run
CheckHow
Rule testUse a robots.txt tester on a sample of filter URLs and real category URLs
Crawl statsWatch crawl activity in Search Console for a drop in filter URL requests
Indexed pagesCheck that clean landing pages are still indexed
Log filesIf you have them, see which URLs Googlebot requests most
06

How I approach it

I start from the shopper, not from the crawler. I ask which filters help people find products.

I test robots.txt rules on real URLs first. A typo there is expensive.

07

Common mistakes

  • Letting every filter combination be crawled.

  • Relying only on canonical tags.

  • Using nofollow on some links but not all.

  • Letting the same filters appear in different orders.

  • Blocking category URLs by accident in robots.txt.

Quick questions

Is faceted navigation bad for SEO?

Not by itself. Google calls it useful. The risk is the huge number of URLs it can create.1

Can I just use noindex?

The Google page I used does not discuss noindex for facets, so I do not rely on it here. Check Google’s current robots documentation for how it works with robots.txt blocking.

Will URL fragments fix it?

No. Google says fragments have no effect on crawling.1

What if I have a few high-value filters?

Give them clean, stable URLs and normal internal links, and block the rest.

08 · The short version

Key takeaways

  • Filters can create near-infinite URLs that waste crawling.

  • Decide which facet combinations deserve a landing page.

  • Block the rest with robots.txt, and test every rule.

  • Canonical tags and nofollow are weaker tools on their own, per Google.

  • For kept URLs, use one parameter order and return 404 for empty combinations.


Join the conversation

Say hello · I reply personally

Tell me how I can help

1 · Details2 · Done

Message received

Thanks, there. I read every message myself and will reply to your inbox within one business day.