ShipworkSite inspection
Robots.txt
Every error, explainedGuides →
Pricing Learn Guides

All errorsBlocked by robots.txt

When a robots.txt rule blocks real pages, and how to find which rule

What the error means

Search Console reports pages excluded because robots.txt disallows their path. The pages are fine — the file is lying to the crawler about them, usually by accident: an over-broad Disallow prefix, a staging leftover, or an app that edited the template.

Why Google rejects it

robots.txt is prefix-matching and the longest matching rule wins. Disallow: /s does not mean "block /search" — it blocks every path starting with s, including products. A line written for staging or for one app’s endpoints can quietly swallow product paths, and because the pages return 200 in a browser, nothing looks wrong.

How to fix it

  1. Read the live file at yoursite.com/robots.txt — not the template you remember. Apps rewrite it silently.
  2. Test the affected URL against the rules: find every Disallow whose prefix matches, and remember the most specific rule wins.
  3. Replace over-broad prefixes with full path segments (Disallow: /search/ not /s), and never leave a bare Disallow: / from a maintenance window.
  4. On Shopify, keep /admin, /cart, /checkout blocked and /products/, /collections/, /pages/ explicitly allowed.
  5. Recheck after any theme or app change — the file is edited by many hands.
Find out if this is happening to you

Shipwork fetches your robots.txt and your sitemap together, resolves the rules for each sampled URL the way a crawler does, and reports which pages are blocked and by which line. Free, no account, no signup — paste your store address.

Check my store

Go deeper: Shopify robots.txt, line by line

Other errors like this