Crawl scope, robots.txt and directives

Decide what a crawl may touch: scope rules, robots policy, and a robots.txt check that explains which rule blocks which URL.

What it does

robots.txt check

robots-check fetches robots.txt and reports user-agent groups, declared sitemaps and whether the paths you give it are crawlable. A 4xx response such as 404 is read as no robots.txt, so crawling is allowed. A 429 or 5xx response is an error: the tool never claims access it could not verify.

  • Blocked JS or CSS that rendering needs is flagged by the audit (ROBOTS_BLOCKS_RESOURCES)
  • Sitemap directive present or missing (SITEMAP_NOT_IN_ROBOTS)

Directives

The audit reads page-level noindex, nofollow, nosnippet and unavailable_after, together with the X-Robots-Tag header. It also flags a robots meta directive placed outside the head element, where it has no effect. robots.txt controls crawling, not indexing, so these directives are checked separately.

Three steps, one saved scan

  1. Set the crawl scope

    Include and exclude patterns, named segments, extension filters, a depth limit and a URL cap decide which pages a crawl fetches.

  2. Pick the robots policy

    Each crawl can obey robots.txt, only report what it blocks, or ignore it. The flag is --robots respect, report_only or ignore.

  3. Test a path before you crawl

    robots-check reads the file for one user-agent and lists its groups and sitemaps. To test specific paths, pass them through --input JSON or the seo_robots_check MCP tool.

Checks in this feature

CheckWhat it meansSeverityEvidence
IMPORTANT_URL_BLOCKED_BY_ROBOTSA live page that receives internal links is blocked by robots.txt. The links carry no value for discovery, so the page is lost from the crawl path. Robots.txt blocks crawling, not indexing.ImportantBlocked URL, the internal links pointing to it, and the matching Disallow rule
BLOCKED_BY_ROBOTSA URL is blocked by robots.txt. Confirm the block is intentional.ImportantBlocked URL and the matching rule
ROBOTS_BLOCKS_RESOURCESrobots.txt blocks JavaScript or CSS needed for rendering, so search engines may render the page incompletely.TipBlocked .js or .css URL and the rule that blocks it
DIRECTIVES_OUTSIDE_HEADA robots meta directive sits outside the head element, so it is not applied. A noindex or nofollow in that position has no effect.CriticalThe element that precedes the directive in the document
UNAVAILABLE_AFTERThe page carries an unavailable_after directive, which removes it from the index on a set date.ImportantDirective value and date
NOINDEXThe page contains a noindex directive. Confirm that leaving the index is intentional.TipDirective source: meta robots or X-Robots-Tag
SITEMAP_NOT_IN_ROBOTSrobots.txt has no Sitemap directive. Adding one with the absolute sitemap URL helps crawlers find it.TipSitemap directives found in robots.txt
Also in the check registry
NOSNIPPET

One command

bash
spiderhead robots-check --url https://example.com/

Install first: installation guide. Every command also runs as an MCP tool for AI agents.

What you need

  • A site or page URL for robots-check
  • For paths and a user-agent: the MCP tool seo_robots_check or the --input JSON option
  • For a crawl: a --robots policy and optional scope rules in a config file

Limits

  • robots-check on the command line takes only a URL; paths and user-agent go through --input or MCP
  • robots.txt rules are tested for one user-agent at a time
  • ignore does not fetch robots.txt at all
  • Scope rules shape what is fetched; finding exclusions only hide findings after the crawl

Questions

Does robots.txt keep a page out of Google?
No. It stops crawling. A blocked page can still be indexed from links, and a noindex on that page is never read while the page is blocked. To keep a page out of the index, allow crawling and use noindex.
What does robots-check do when robots.txt is missing?
A 4xx response such as 404 means no robots.txt exists, so the report says crawling is allowed. A 429 or 5xx response returns an error, and the tool never claims that crawling is allowed.
Can I crawl only one section of a site?
Yes. Use scope include or exclude patterns, scope segments_only to fetch named segments, and extension or media-type filters. Depth and URL caps keep the crawl inside the limits you set.
Does a crawl follow robots.txt by default?
Yes. The default policy is respect. report_only records what robots.txt would block without obeying it, and ignore skips robots.txt. The robots.user_agent_token setting chooses which user-agent rules are matched.

Try it on your own site