Skip to content
WebsiteValidator
All posts
SEO6 min read

Free robots.txt checker: the file that is easiest to get wrong

One line in robots.txt can remove a site from search entirely, and the resolution rules mean reading the file rarely tells you what it does.

By · Arcetis

robots.txt has the worst consequence-to-complexity ratio on the web. It is a few lines of text, and one of them can remove your entire site from search results with no error and no notification.

The rules that decide what it means

  1. 1A crawler obeys the single most specific group matching its user-agent, and ignores every other group including the wildcard.
  2. 2Within that group, the longest matching path rule wins, regardless of the order it appears in.
  3. 3An Allow can override a Disallow, including one written above it.
  4. 4The file must be at the domain root, served with a 200 status and a text/plain content type.

Rules one and two together are why reading the file gives the wrong answer so often. Its behaviour is resolved, not sequential.

The mistakes that cost the most

  • A staging Disallow: / shipped to production. The most expensive two lines in web development, and it happens regularly.
  • Disallowing CSS or JavaScript directories, which prevents the page being rendered properly and therefore judged properly.
  • Using robots.txt to hide something. A disallowed URL can still be listed, and blocking it prevents any noindex from being read.
  • A group containing only Allow rules, which exempts that crawler from every site-wide restriction rather than adding to them.

The crawlers your file does not mention

Most robots.txt files were written before generative search existed. They allow Googlebot, block a few scrapers, and say nothing about the crawlers that now decide whether you appear in an AI answer.

Silence is usually fine — it means permitted. The problem is the sites that added a blanket AI block in 2023 and have not revisited it since, and which are now absent from products that did not exist when the rule was written.

What free means here

Our robots.txt checker is free, with no account needed for your first scan. It resolves your file the way a crawler does and reports the outcome per user-agent — including the AI crawlers — rather than printing your own file back at you and leaving the interpretation to you.

Frequently asked

How do I test my robots.txt file?
Test it per user-agent and per URL rather than reading it. A crawler obeys only the most specific group matching its name, and within that group the longest matching path rule wins regardless of order — an Allow can override a Disallow written above it. Those two rules mean the file's behaviour and its appearance often differ.
Can robots.txt hide a page from Google?
No, and using it that way is a common and damaging mistake. A disallowed page can still be indexed if other pages link to it — Google will not fetch the content but may list the URL. To exclude a page from results, use a noindex meta tag, which requires the page to remain crawlable so the directive can be read.
Is there a free robots.txt checker?
Yes. Ours is free and needs no account for your first scan. It resolves your file following RFC 9309 and reports the outcome per crawler, including the AI crawlers most files do not mention at all.

Check this on your own site.

Run the check

Audit your site in 40 seconds

986 deterministic rules across eleven modules. Every finding comes with evidence, a citation and a fix preview.

Run a free scan

No signup. No credit card. Nothing stored but the result.