You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
crawl/robots-meta-conflict: report header-only noindex on blocked pages and share the blocked decision with indexability-conflicts #556
Found while fixing #487. crawl/robots-meta-conflict is now the only rule that reports the robots.txt Disallow plus noindex combination, and it has three gaps:
A page that is blocked by robots.txt and carries X-Robots-Tag: noindex only as a response header is reported by no rule, because the rule reads meta noindex only.
crawl/robots-meta-conflict and crawl/indexability-conflicts decide whether a page is "blocked" differently (one checks only Disallow prefixes, the other evaluates the full robots.txt rules including Allow and wildcards), so the two can disagree about the same URL.
Once #487 lands this rule is the single owner of the Disallow plus noindex case, so these should be settled together. Merging crawl/indexability-conflicts into this rule is an option to consider, but is not required by this issue.
Acceptance Criteria
A page blocked by robots.txt that returns X-Robots-Tag: noindex (header only, no meta tag) is reported by crawl/robots-meta-conflict with its URL in affectedPages
crawl/robots-meta-conflict and crawl/indexability-conflicts use one shared "blocked by robots.txt" decision that handles Allow, Disallow and wildcard rules, so they agree on every URL
The solution text and docs page of crawl/robots-meta-conflict no longer describe Allow plus noindex as confusing or conflicting
Test: packages/rules/tests/robots-meta-conflict.test.ts, blocked page with header-only noindex: reported
Test: same file, blocked page with meta noindex: reported (existing behaviour)
Test: same file, allowed page with noindex (meta or header): not reported
Test: same file, a URL matched by both an Allow and a longer Disallow rule: both rules give the same verdict
The docs pages for both rules describe how robots.txt blocking is decided
The PR description states whether the squirrelscan agent skill needs a change (the skill links to the rule pages, which are the reference, so usually none); if it does, a follow-up is filed against squirrelscan/skills
Reproduced on 0.0.108 with a local fixture. robots.txt has Disallow: /blocked-, Disallow: /dir/, Allow: /dir/ok and Disallow: /*.php; the crawl fetched /blocked-header (X-Robots-Tag: noindex only), /blocked-meta, /dir/ok and /x.php (meta noindex). crawl/robots-meta-conflict produced the redundant-noindex info check 2 page(s) blocked in robots.txt also have noindex, which can only be /blocked-meta and /dir/ok:
/blocked-header is missed (meta noindex only).
/dir/ok is counted as blocked although the longer Allow wins.
/x.php is missed because the wildcard is compared as a plain prefix.
The info check carries no page list, and it did not appear in the JSON or llm report at all (it is only in the project database). origin/main still has all three gaps in packages/rules/src/crawl/robots-meta-conflict.ts (isPathBlockedByStar and the metaNoindex test), and the solution text there still calls Allow plus noindex "confusing".
Activity
nc9 commentedon Oct 11, 2026
Reproduced on 0.0.108 with a local fixture. robots.txt has
Disallow: /blocked-,Disallow: /dir/,Allow: /dir/okandDisallow: /*.php; the crawl fetched/blocked-header(X-Robots-Tag: noindexonly),/blocked-meta,/dir/okand/x.php(meta noindex).crawl/robots-meta-conflictproduced theredundant-noindexinfo check2 page(s) blocked in robots.txt also have noindex, which can only be/blocked-metaand/dir/ok:/blocked-headeris missed (meta noindex only)./dir/okis counted as blocked although the longerAllowwins./x.phpis missed because the wildcard is compared as a plain prefix.The info check carries no page list, and it did not appear in the JSON or llm report at all (it is only in the project database). origin/main still has all three gaps in
packages/rules/src/crawl/robots-meta-conflict.ts(isPathBlockedByStarand themetaNoindextest), and the solution text there still callsAllowplus noindex "confusing".fix(rules): robots-meta-conflict counts header noindex and shares one…
fix(rules): robots-meta-conflict counts header noindex and shares one…
test(utils): looser time bound on the robots linear-matching test #556
fix(rules): robots-meta-conflict counts header noindex and shares one…