robots.txt does not block indexable revenue paths
Does robots.txt block any URL path that contains pages you need indexed?
| Pass | No URL returning HTTP 200 with an indexable meta directive is disallowed for Googlebot. |
|---|---|
| Advisory | Disallow rules exist that block only non-indexable or non-canonical URLs (e.g. faceted parameters, cart, internal search). |
| Fail | One or more indexable pages are blocked, or the file returns 5xx, or a blanket "Disallow: /" is present on the production host. |
Why it matters
This is the single most destructive fault a website can have and one of the most common, because a staging-environment robots.txt shipped to production is a routine deployment accident. A disallowed page cannot be crawled, so its content is never assessed, its internal links are never followed, and its existing rankings decay as the cached version ages. Unlike a noindex directive, the page may still appear in results as a bare URL with no snippet, which is worse than absence.
How we inspect it
We fetch /robots.txt, parse every group, and test every discovered URL against the applicable Disallow rules using the same longest-match precedence Googlebot applies. Any indexable URL that resolves to Disallow is recorded with the exact rule line that blocked it.
Source: Live fetch of /robots.txt + path matching against discovered URLs
Remedy
- 1Retrieve the production robots.txt and diff it against your intended source-controlled version.
- 2Remove or narrow any Disallow rule that matches an indexable path; never use robots.txt to keep a page out of the index — use a noindex directive, which requires the page to be crawlable.
- 3Keep the file under 500 KiB, return HTTP 200, and serve it as text/plain from the root of every host and protocol variant.
- 4Add the absolute URL of your XML sitemap index as a Sitemap: directive.
- 5Move robots.txt into version control with a deployment test that fails the build if "Disallow: /" appears in a production artefact.
Verification
Recheck refetches the file, re-runs path matching across the full URL set, and confirms zero indexable URLs match a Disallow rule.
- Usually fixed by
- Developer
- Effort
- Small · 0.5–2 hrs
- Est. impact
- high
- Typical cost
- NZ$80–160