WebmasterID logoWebmasterID
Robots & crawl control

How to test your robots.txt

A robots.txt rule is only useful if it does what you think. This page covers how to test it — checking the live file, using Google Search Console's robots.txt report and URL Inspection, and confirming in your own logs that the intended crawlers are or are not fetching the affected URLs.

Verified against primary sources

Check the file and use Google's tools

First confirm the live file: fetch https://yourdomain/robots.txt and check it returns 200 with the rules you expect. Then use Google Search Console: its robots.txt report shows the fetched file and parsing issues, and the URL Inspection tool reports whether a specific URL is allowed or blocked for Googlebot and why.

These tools tell you which rule Google applies to a URL, which is exactly what you need when a pattern or group precedence is ambiguous.

Confirm the real-world effect

A tester predicts behaviour; logs confirm it. After deploying a change, watch whether the affected crawlers actually stop or start fetching the URLs in question. A compliant crawler should follow the rule within a crawl cycle; if it does not, recheck your token spelling, path casing, and group precedence.

For non-Google crawlers, rely on the crawler's own documentation plus observed behaviour, since each may parse edge cases slightly differently.

How it appears in analytics and logs

Testing tells you which rule a crawler applies to a given URL. If the tool's verdict differs from your expectation, your pattern, casing, or group precedence is likely off.

Diagnostic use case

Confirm a new or changed robots.txt rule blocks or allows exactly the URLs you intended, before relying on it.

What WebmasterID can help detect

WebmasterID shows which crawlers actually fetch which paths after a change, complementing pre-deploy testers with real observed behaviour.

Common mistakes

Privacy and accuracy notes

Testing tools read your public robots.txt and report rule matches. They involve no visitor data.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.