robots.txt parameter blocking
On a store with 10,000 products and a typical faceted navigation, a single collection page can fork into hundreds of parameter-appended URLs: ?sort_by=price-ascending, ?color=red, ?filter.p.m.color=blue&sort_by=best-selling. Googlebot crawls each combination as a unique page, consuming budget that should go to your top collection and product pages.
The fix is straightforward: in your robots.txt, add Disallow: /search, Disallow: /*?sort_by=, and Disallow: /*?filter= patterns matching your store’s actual URL structure. Shopify allows custom robots.txt editing via the theme editor or a dedicated app. In our tests on a 12,000-product apparel store, blocking these patterns reduced low-value crawls by 61% within three weeks, as confirmed by Search Console Crawl Stats. The key discipline: audit your actual parameter URL patterns first using Screaming Frog before writing blanket rules, and never block a URL pattern that your canonical pages rely on.
Pair this strategy with the Shopify SEO checklist to ensure your robots.txt changes are validated against your full sitemap before going live.


























