Skip to content

crawl/robots-meta-conflict: report header-only noindex on blocked pages and share the blocked decision with indexability-conflicts #556

Closed

Description

@nc9

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:

  1. 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.
  2. 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.
  3. The rule's solution text still calls Allow plus noindex "confusing", which is no longer true after crawl/indexability-conflicts: robots.txt Allow + meta noindex reported as conflict, empty affectedPages #487.

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

Activity

  1. added
    bug
    P3
    size: S
    rules
    on Oct 7, 2026
  2. nc9 commented on Oct 11, 2026

    @nc9
    ContributorAuthor

    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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3bugrulessize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions