Most robots.txt checks go wrong in a quiet way: the file is tested as if one answer covered every crawler. It does not. A robots.txt file is a set of rule groups, and which group applies depends on which crawler is asking. The same path, in the same file, at the same moment, can be blocked for one bot and allowed for another.
This guide shows how to test rules for a single named bot with the free Robots.txt Tester on Ovatly, and how to read what it gives you back: not just a verdict of allowed or blocked, but the exact rule that decided it.
Contents
- Quick answer
- Why the bot name changes the answer
- The matching rules behind every verdict
- How to test a single bot, step by step
- Worked example: one file, two verdicts for Googlebot
- Limitations
- Common mistakes
- FAQs
- Conclusion
Quick answer
Paste your robots.txt content into the Robots.txt Tester, type the crawler name (for example Googlebot or Bingbot), type the path or full URL you want to check, and read the verdict and the explanation of the matching rule. Then repeat the whole test for every other crawler you care about. The tester evaluates one file and one crawler at a time, and a crawler that has its own group in your file follows only that group, so a single test run can never speak for all bots.
Why the bot name changes the answer
A robots.txt file is organised into groups. Each group names the crawlers it applies to, then lists the paths those crawlers may not fetch. The group named * is the fallback: it applies to every crawler that does not have its own named group in the file.
The moment a crawler has its own group, the picture changes completely. That crawler follows only its own group, and the * group's rules no longer apply to it at all. A Disallow line sitting in the * group that looks like it blocks a path for "everyone" does not block it for a named bot whose own group says nothing about that path.
This is why testing "the file" in the abstract is meaningless. There is no single answer to "is /admin/ blocked?" There is only an answer per crawler: blocked for this bot, under this group, by this rule. A useful test always names the bot.
The matching rules behind every verdict
The tester implements the RFC 9309 matching rules, so its verdicts follow the same logic the standard sets out:
- The group naming the crawler wins over the
*group. - Within the deciding group, the longest matching pattern wins.
- If a Disallow and an Allow pattern tie, Allow wins.
- An empty pattern matches nothing, so a
Disallow:line with nothing after it blocks nothing. *inside a pattern matches any sequence of characters, so/*.phpmatches 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.- Paths are matched exactly as written, including case, and percent-encoded paths are compared in their encoded form.
Two consequences are worth keeping in mind. First, robots.txt is permissive by default: a path is allowed unless a matching Disallow rule in the crawler's own group says otherwise. Second, the verdict is only ever about the exact path string you typed, spelled and capitalised the way you typed it.
How to test a single bot, step by step
- Open the Robots.txt Tester and paste your robots.txt content into it. A sample file is preloaded, so replace that text with your own file's content.
- Type the crawler name you want to test as, for example Googlebot or Bingbot.
- Type the path or the full URL you want to check.
- Read the verdict, and read the explanation underneath it: the tester shows exactly which rule decided the result.
- Change the crawler name and run the same path again for each other bot you care about, then work through the rest of your important paths the same way.
Worked example: one file, two verdicts for Googlebot
The tester's preloaded sample file shows the group rule in action. Test /private/data as Googlebot and the verdict is Blocked, decided by Disallow: /private/ in Googlebot's own group. The named group exists, it contains a rule matching the path, and that rule decides.
Now test /admin/settings as the same crawler, Googlebot. The verdict flips to Allowed. Nothing about the path changed; what changed is which group governs. Because Googlebot has its own group in this file, the * group's rules no longer apply to it, and Googlebot's own group contains no rule matching /admin/settings. No matching Disallow rule in the deciding group means the path is allowed.
Run either path as a crawler with no group of its own and the * group decides instead, which can produce the opposite verdict from the same file. That is the whole lesson: the file does not have one behaviour, it has one behaviour per bot.
Limitations
The tester evaluates one file and one crawler at a time, and it works on the content you paste; it does not fetch your live robots.txt. Each bot and each path is a separate check, so a thorough pass over a large file takes a series of runs rather than one click.
It also answers a narrower question than people often assume. The verdict is about crawling: whether this crawler may fetch this path. It says nothing about indexing. A disallowed page can still appear in search results if other pages link to it, because Google can list the URL without crawling its content. For the draft-testing mistakes that catch people out even when the verdicts are read correctly, see the companion guide below.
Common mistakes
- Testing once and assuming every bot gets the same answer. A named group replaces the
*group for that crawler, so verdicts differ per bot. - Leaving the preloaded sample in place. If you do not paste your own content, you are testing the sample file, not yours.
- Typing the path in the wrong case. Matching is exact, including case, so
/Admin/and/admin/are different paths to the tester. - Reading "no rule matched" as blocked. It means the opposite: with no matching Disallow rule, the path is allowed.
- Treating a Blocked verdict as removal from search. Blocking stops fetching, not indexing; a linked page can stay listed without its content being crawled.
FAQs
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.
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.
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. The tester tells you about crawling only.
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".
Does the case of the path matter when I test? Yes. Paths are matched exactly as written, including case, and percent-encoded paths are compared in their encoded form, so type the path exactly as it appears in the address you want to check.
Conclusion
Per-bot testing is slower than a single blanket check, and it is the only kind that tells the truth. Name the crawler, paste the file, test the paths that matter, and read which rule decided each verdict. The Robots.txt Tester makes each run take seconds; the discipline is in repeating it for every bot whose access you actually care about. When you are preparing a change rather than checking the current file, pair this with Robots.txt Testing Mistakes: Testing the Live File Instead of a Draft, and browse the rest of the set in the SEO Tools guides archive.