squirrelscan
GitHub

Page is blocked from indexing: finding the directive

A page can be excluded from search by a robots meta tag or an X-Robots-Tag header. squirrel reports which one, per page.

What indexability is

Indexability is whether a search engine is permitted to keep a page in its index once it has fetched it. Two mechanisms say no: a <meta name="robots" content="noindex"> tag in the head, and an X-Robots-Tag: noindex response header. Either one is enough.

Being non-indexable is often correct. Thank-you pages, faceted filter combinations, internal search results and staging routes are all better left out. The problem is a directive nobody meant to ship, which is why this rule reports the state and the source rather than treating it as a defect.

What squirrel checks

The rule runs on every crawled page and emits a single check named indexability, using the shared indexability test over the parsed head and the response headers.

  • Skipped when the page could not be parsed. Message: Page could not be parsed.
  • Info when the page is not indexable. Message: Page is blocked from indexing via robots meta tag or via X-Robots-Tag header. The value is not indexable. A third wording, via unknown, exists in the code but is unreachable: a page is only non-indexable here when one of those two strings contains noindex.
  • Pass when it is indexable. Message: Page is indexable, value indexable.

The source is decided by looking for noindex in the lowercased robots meta first, then in the lowercased x-robots-tag header. Severity is info and the weight is 2, so this rule describes rather than penalises.

How to fix it

<meta name="robots" content="index, follow" />

Remove the noindex from whichever source the report names. A header set at the CDN or reverse proxy is easy to miss because it does not appear in the page source, so check the response headers when the report says X-Robots-Tag.

Leave the directive in place when the page is genuinely not meant for search. The info status exists for that case.

Rule IDcrawl/indexability
CategoryCrawlability
ScopePer-page
Severityinfo
Weight2/10

Enable / disable

Disable this rule

[rules]
disable = ["crawl/indexability"]

Disable all Crawlability rules

[rules]
disable = ["crawl/*"]

Enable only this rule

[rules]
enable = ["crawl/indexability"]

enable replaces the default ["*"], so this is the only rule selected. Leave disable out: a rule that matches any disable pattern is skipped even when enable names it. Only an enabled setting under a rule’s own [rule_options] table overrides both lists.

Crawlability findings ship in every audit next to the SEO, performance and agent experience rules. See The Screaming Frog alternative for agents for how an agent works through a report.

References

Check your site

Run squirrel audit https://example.com and open the Crawlability section of the report. Every blocked page is listed with the directive that blocked it. Signed-out local audits need no account and cost nothing. Signed-in audits spend credits.

Type to search…

↑↓ navigate↵ openesc close