Skip to main content

Robots.txt Checker: Read Crawl Rules Without Guessing

· 5 min read
Indexation audit for large websites

Robots.txt is a small file with an outsized reputation. People use it to try to hide pages from search, to "block" competitors, and to fix indexation problems it cannot fix. A robots.txt checker cannot resolve those misunderstandings, but it can do something more useful: show you exactly what the file says, with the rule precedence applied the way a crawler would apply it. Most surprises come from reading the raw file wrong.

What the checker shows​

The PruneSEO Robots.txt Checker fetches /robots.txt for a host and returns a structured view:

FieldWhat it tells you
Normalized host and fetched URLExactly what was checked
WarningsFor example, "robots.txt not found"
User-agent groupsEach group with its Allow and Disallow rules
Declared sitemapsEvery Sitemap: URL in the file
CheckedWhen the check ran

No robots.txt is not an error. The result is a successful report with no groups and a warning, because "no rules declared" is a valid state.

The rule most people get wrong: Allow beats Disallow​

The specification that crawlers broadly follow gives precedence to the most specific rule: the longest matching pattern wins, and when patterns are equally specific, Allow wins over Disallow. A quick visual scan rarely gets this right.

User-agent: *
Disallow: /private/
Allow: /private/public-guide

Sitemap: https://example.com/sitemap.xml

A scanner that only reads the Disallow line would say the whole /private/ directory is blocked. A crawler reads both lines and fetches /private/public-guide, because the more specific Allow wins. Our parser applies that order, so the report reflects behaviour rather than the order the lines happen to be written in.

A few other details are easy to miss:

  • User-agent: * is a default, not an override. A named group for a specific crawler applies in addition to it.
  • Comments and byte-order marks are ignored, and both LF and CRLF line endings are handled.
  • The rules are path patterns, not full URLs. A Disallow: /? has a very different effect from Disallow: /.

Robots.txt is a request, not a wall​

This is the part that matters most. Robots.txt is a convention that cooperative crawlers follow. It does not prevent anyone from fetching a URL, and it does not remove a page from the index by itself.

Three consequences follow:

  1. A blocked URL can still be indexed. If other pages link to it, a crawler can discover the URL and index it without fetching the body. To ask for removal from the index, use noindex.
  2. Blocking CSS or JavaScript can hurt the page. A crawler that cannot fetch your stylesheets may misread the content. The classic failure is an over-broad Disallow: / on a staging configuration that accidentally ships to production.
  3. A noindex page listed in a sitemap is a contradiction. The crawl rules, on-page directives and sitemap declarations should tell one story. Our noindex vs robots.txt post covers the distinction in detail, and when robots.txt is not enough covers the failure modes.

If you want the wider context, the technical SEO checklist puts robots.txt in its place among the files that actually determine indexation.

Why declared sitemaps matter​

The Sitemap: line is the clearest signal a site can give about where its sitemap lives. The Sitemap Checker uses it first when it looks for a sitemap, ahead of guessing conventional paths. A missing line is a common reason a sitemap is discovered late or not at all after a migration.

A useful migration check is to run both tools on the old and new hosts and compare:

CheckOld hostNew hostWhat a mismatch means
Sitemap URL declaredYesNoDiscovery will be slower on the new host
Disallow: / presentNoYesThe new host may be completely blocked
Crawl-delay or wildcard group—ChangedBehaviour for all crawlers has shifted

That takes two minutes and catches errors that otherwise surface weeks later as a traffic drop.

A short workflow for a robots.txt check​

  1. Paste the site address and complete the Turnstile challenge.
  2. Choose Check robots.txt and read the groups, not just the Disallow lines.
  3. Check every Allow rule against the Disallow rules above it, using longest-match precedence.
  4. Confirm the declared sitemap URL is the one you expect.
  5. Follow through to the Sitemap Checker, or run a full indexation audit if the site is large.

Safety boundaries​

The checker reads at most 200,000 characters, 100 groups, 500 rules per group and 100 sitemap declarations, with a 1 MB file cap. Real robots.txt files are tiny, so these are abuse-prevention boundaries rather than limits you will hit in normal use. A Turnstile challenge runs before the fetch so the tool can stay free without becoming a way to scan arbitrary hosts.

What to take away​

A robots.txt checker turns a terse text file into a clear statement of what a site asks crawlers to do — with Allow/Disallow precedence applied correctly. It does not tell you whether a page is indexed, and robots.txt cannot do that job. Read the rules, reconcile them with your sitemap and on-page directives, then verify with a crawl when the stakes are high.

Run the free Robots.txt Checker and read the tool documentation for the full field list and limits.