A developer hands you a new robots.txt file and says it only blocks the staging area and a private folder. The file is short, the change looks harmless, and it goes live on Friday. On Monday you find that a whole section of the site has quietly dropped out of crawling, or that the folder you meant to protect is still wide open. A single line in the wrong group can redirect the behaviour of every crawler that visits the site.

The good news is that a draft file can be checked before it ships, path by path and crawler by crawler. The free Robots.txt Tester on Ovatly takes the exact content of the proposed file, a crawler name and a path, and returns a verdict plus the rule that decided it.

Contents

  • Quick answer
  • Why a small file deserves a careful check
  • The matching rules behind every verdict
  • How to verify the change, step by step
  • Worked example: two verdicts from one sample file
  • What to run before you sign off
  • Limitations and alternatives
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

To verify a robots.txt change before it goes live: get the exact draft content from the developer, paste it into the Robots.txt Tester, and test the paths that matter (your homepage, your key pages, and every path the change is meant to block) for each crawler that matters, starting with Googlebot. Read the explanation under each verdict, because it names the rule that decided it. Pay special attention to named groups: if the file gives a crawler its own group, the * group's rules no longer apply to that crawler at all. Only approve the change when the verdicts match what the developer described.

Why a small file deserves a careful check

robots.txt is a set of rule groups. Each group names one or more crawlers and then lists the paths those crawlers may or may not fetch. The file is permissive by default: a path is allowed unless a matching Disallow rule in the crawler's group says otherwise. That also means a missing or misplaced rule fails silently.

Developers usually edit the file with one crawler in mind, often Googlebot, and one intention. But the same edit can change the effective rules for every other crawler, especially when groups are added or reordered. A pre-launch check turns those side effects into visible verdicts while the fix is still a one-line edit.

The matching rules behind every verdict

The tester implements the RFC 9309 matching rules, the standard that defines how robots.txt files are read. Four points decide almost every verdict:

  • The named group wins. If Googlebot has its own group, only that group's rules apply to Googlebot, even if the * group blocks the path you are testing.
  • The longest match wins. When several patterns in the group match a path, the longest one decides. Allow wins a tie.
  • Wildcards and anchors. The * character matches any sequence of characters, so /*.php matches PHP files in any folder. A trailing $ anchors the pattern to the end of the path, so /*.php$ does not match /index.php?print=1.
  • Exact matching. Paths are matched exactly as written, including case. Percent-encoded paths are compared in their encoded form, as the standard specifies. An empty pattern matches nothing.

How to verify the change, step by step

  1. Get the draft as text. Ask the developer for the complete proposed file content, not a description of the change. Small differences, such as a path typed in the wrong case, are what this check exists to catch.
  2. Open the Robots.txt Tester and paste the draft content in place of the preloaded sample file.
  3. Start with Googlebot. Type the crawler name, then a path or full URL, beginning with the pages the business depends on: the homepage and the top product or service pages.
  4. Read the verdict and its explanation, so you can confirm the deciding line is the one the developer meant to write.
  5. Test the paths the change is meant to block. A block that does not block is as much a failure as an accidental block. Test each protected folder and at least one file inside it.
  6. Repeat for the other crawlers you care about, such as Bingbot, typing each name separately. A pass for Googlebot says nothing about the others.
  7. Compare the full set of verdicts against the change description. Every difference is a question to send back before the file goes live, not after.

Worked example: two verdicts from one sample file

The tester's preloaded sample file shows the group rule in action. Testing /private/data as Googlebot returns Blocked, decided by Disallow: /private/ in Googlebot's own group. So far, so expected.

Now test /admin/settings as Googlebot. The verdict is Allowed, even though a rule in the file appears to cover admin paths. The reason is the group rule: the admin block sits in the * group, and Googlebot never reads that group because it has its own.

Translate that to a real change review. If a developer adds a Googlebot group to fine-tune one rule, and the site relied on the * group to keep Googlebot out of an admin area, the new file silently reopens that area. The tester surfaces this in seconds, with the deciding rule named, while the file is still a draft.

What to run before you sign off

A short, fixed list of tests covers most real changes:

  • The homepage and one page from each major section, as Googlebot and as at least one other crawler.
  • Every path the change claims to block, including a file inside each blocked folder, not just the folder path itself.
  • Any path covered by a wildcard pattern, plus a near-miss variant, such as a query-string version of a blocked file type.
  • One path with unusual casing or encoding if your site uses them.
  • The same key paths against the current live file's content, to see which verdicts the change flips.

Limitations and alternatives

The tester evaluates one file and one crawler at a time, and it does not fetch your live robots.txt. The check is only as good as the draft you were given; if the deployed file differs from the tested draft, test again with the deployed content. It also judges crawling only. A disallowed page can still appear in Google if other pages link to it, because robots.txt blocks fetching, not indexing. Removing a page from results is a different job, handled with a noindex tag or by removing the page.

Nor is the tester a substitute for reading the file. It answers specific questions (is this crawler allowed to fetch this path, and which rule decided it) very precisely. It cannot tell you whether the rules express good policy for your site.

Common mistakes

  • Testing the live site instead of the draft. After deployment, a bad verdict is an incident. Before deployment, it is a one-line fix.
  • Testing only Googlebot. Other crawlers may fall under different groups. Test each crawler you care about by name.
  • Assuming the * group covers everyone. A crawler with its own named group ignores the * group completely. This is the single most common cause of surprises.
  • Testing only the pages you hope stay open. Test the blocked paths too. A protection rule that does not actually match is invisible until someone looks.
  • Ignoring case and encoding. Matching is exact and case-sensitive. A rule written for one casing does not cover the other.
  • Treating a pass as an indexing guarantee. The tester speaks only about fetching, not indexing.

FAQs

Does the tester check my live robots.txt file? No. The tester evaluates the file content you paste, one file and one crawler at a time; it does not fetch your live robots.txt. That is what makes it useful before a change goes live: paste the draft and check it first.

A page is disallowed but still appears in Google. Why? robots.txt blocks fetching, not indexing. If other pages link to it, Google can list the URL without crawling its content. This tester tells you about crawling only.

What does the * user agent mean? The * group applies to every crawler that does not have its own named group in the file. Crawlers with their own group follow only that group.

How do wildcards and $ work? "" matches any sequence of characters, so "/.php" matches PHP files in any folder. A trailing "$" anchors the pattern to the end of the path, so "/*.php$" does not match "/index.php?print=1".

If no rule matches my path, is it blocked? No. Robots.txt is permissive by default: a path is allowed unless a matching Disallow rule in the crawler's group says otherwise.

Conclusion

Verifying a robots.txt change takes minutes: paste the draft into the Robots.txt Tester, run the important paths for each important crawler, and read which rule decided each verdict. The checks that catch real damage are the group check (a named crawler ignores the * group), the block check (does the protected path actually return Blocked), and the comparison against the current file. Do them before the file goes live, while every surprise is still cheap to fix. More guides live in the SEO Tools guide archive.

Related guide: Twitter Card Types Explained: Summary vs Summary Large Image.

References