The riskiest way to change a robots.txt file is also the most common: edit the live file, upload it, and only then run a test. If the test then reveals that a new rule blocks more than you meant it to, the test has not protected you from anything. It has merely confirmed, after the fact, that the wrong rules are now the ones in force.
The misunderstanding sits in what a tester actually does. The free Robots.txt Tester on Ovatly never fetches your live robots.txt. It evaluates the content you paste into it. That single fact makes draft testing possible, and it is exactly the fact people overlook when they test the live file instead of the draft.
Contents
- Quick answer
- What the tester actually tests
- The mistake: testing the live file instead of the draft
- The draft-first workflow, step by step
- Worked example: the draft that changed Googlebot's answer
- Four more testing mistakes that travel with it
- Limitations
- FAQs
- Conclusion
Quick answer
Never test a robots.txt change after uploading it. Paste the draft content, the version you are about to publish, into the Robots.txt Tester, name the crawler, and test the paths that matter before the file goes live. Testing the live file only describes the rules already in force; it tells you nothing about the change you are planning, and a test run after upload can only confirm a bad rule, not prevent it.
What the tester actually tests
The tester checks whether a specific crawler is allowed to fetch a specific path under a given robots.txt file, and it shows exactly which rule decided the verdict. Its input is text you paste. It evaluates one file and one crawler at a time, and it does not fetch your live robots.txt from your server.
That has a practical consequence people miss: the tester has no opinion about your website. It has an opinion about the text in the box. Paste your live file and you get verdicts about your live rules. Paste a draft and you get verdicts about the draft, which is the only version you can still fix for free. Paste nothing and you get verdicts about the sample file that is preloaded in the tool, which has nothing to do with your site at all.
The mistake: testing the live file instead of the draft
The mistake takes two forms. The first is sequencing: the change is uploaded, then tested. Every verdict arrives too late, because the rules being tested are already the rules in force. A blocked verdict for your most important section is no longer a warning; it is a description of the current state of your site.
The second form is subtler. The tester is opened, the live file is pasted in, a few paths return sensible verdicts, and the planned change is declared safe. But the live file is the one document guaranteed not to contain the change. The new group, the edited Disallow line, the path you are about to add: none of it is in the text that was tested. The test was accurate and completely irrelevant.
Both forms come from the same assumption, that a tester reaches out and inspects your site. This one does not, by design. The pasted-content model is what makes pre-publication testing possible at all: your draft never has to go live to be checked.
The draft-first workflow, step by step
- Prepare the change as a full draft file, not as an edit you will make directly on the server.
- Open the Robots.txt Tester and paste the draft content, replacing the preloaded sample file.
- Type the crawler name, for example Googlebot or Bingbot.
- Type each path you care about, starting with anything you mean to keep crawlable, and read the verdict and the explanation of the matching rule.
- Repeat for every other crawler with its own group, or affected by the change. Only when the draft behaves as intended do you upload it, as a replacement for the live file.
Worked example: the draft that changed Googlebot's answer
The tester's preloaded sample file is a draft scenario in itself. In it, Googlebot has its own group containing Disallow: /private/. Test the draft: /private/data as Googlebot returns Blocked, decided by that rule. That is the intended effect of the change, confirmed before anything is published.
Now test /admin/settings as Googlebot against the same draft. The verdict is Allowed, because when a crawler has its own group, the * group's rules no longer apply to it. Suppose the older live file had no Googlebot group at all. Testing that live file would have let the * group decide every Googlebot question, and would have told you nothing about this side effect of adding the group. The draft test catches it while the fix is still a one-line edit: add the admin rule to Googlebot's own group too, if blocking it for Googlebot is what you intend.
That is the entire value of testing the draft. The surprise appears on your screen, not in your crawl data.
Four more testing mistakes that travel with it
- Leaving the sample file in place. A sample is preloaded, so a quick test without pasting anything returns confident verdicts about a file that is not yours.
- Testing one bot and stopping. The tester evaluates one crawler at a time, and a crawler with its own group follows only that group. A pass for Googlebot says nothing about any other bot.
- Typing paths loosely. Paths are matched exactly as written, including case, and percent-encoded paths are compared in their encoded form. A test on
/Admin/does not clear/admin/. - Reading a Blocked verdict as deindexing. The tester reports on crawling only. A disallowed page can still appear in search results if other pages link to it, so a clean test never settles an indexing question.
Limitations
The tester works on one file and one crawler at a time, so checking a change thoroughly means a series of deliberate runs, not a single sweep. It also cannot tell you whether the file you eventually uploaded matches the draft you tested; that final check is on you, and re-pasting the published file for one confirmation run is a sensible habit. Finally, its verdicts cover fetching only. Indexing, and everything that follows from it, sits outside what any robots.txt test can promise.
FAQs
Does the tester fetch my live robots.txt file? No. The tester evaluates one file and one crawler at a time, using the content you paste; it does not fetch your live robots.txt.
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.
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.
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".
Conclusion
A robots.txt test is only useful while the file can still be changed. Paste the draft, name the bot, test the paths that matter, and let the surprises happen in the tester rather than on the live site. The Robots.txt Tester is built for exactly that order of work. For the per-bot mechanics behind the verdicts, read How to Test Robots.txt Rules for a Single Bot (Googlebot vs Others), and find the rest of the series in the SEO Tools guides archive.