Robots.txt tester
How the decision was made
Blocked: Googlebot may not crawl this URL.
BLOCKED · /search?q=roof+repair
Crawler: Googlebot Path tested: /search?q=roof+repair Group used: user-agent: * Deciding rule: line 3, Disallow: /search
- Note: No group names Googlebot, so the * group applies. Some crawlers answer to more than one token; Google lists both Googlebot-Image and Googlebot for its image crawler. Test each token you care about.
How to use it · free, no signup
How to use the Robots.txt Tester
Paste a robots.txt file, a URL and a crawler name to see whether the URL is allowed, which group and rule decided it, and which lines are ignored. Runs in your browser.
01
Paste the file
The robots.txt as it is, or as you plan to publish it.
02
Enter a URL and crawler
A full address or a path, and a token such as Googlebot.
03
Read the decision
Allowed or blocked, with the group and the rule that decided it.
Three rules decide every answer
A robots.txt file can look simple and still behave in ways its author did not intend, because three rules sit underneath it. They are set out in how Google interprets the robots.txt specification, and the tester follows them:
- One group per crawler. A crawler follows the group whose user-agent names it most specifically. If several groups name it, their rules are merged. The * group applies only when nothing names the crawler.
- The longest rule wins. Among the rules in that group that match the address, the one with the longest path decides.
- Allow wins a tie. If an allow and a disallow match with paths of the same length, the less restrictive one, the allow, applies.
A worked example
With the file filled in above, Googlebot asks for /search?q=roof+repair. No group names Googlebot, so it follows the * group. Two rules there could matter: Disallow: /search matches, and Allow: /search/help does not, because the address does not continue with /help. The disallow decides, and the address is blocked. Ask for /search/help and both match; the allow is longer, so it wins.
Lines that do nothing
Google reads only user-agent, allow, disallow and sitemap lines, and reads only the first 500 KiB of the file. A Crawl-delay or a Noindex: line is skipped, and the tester lists every line it ignored so they can be removed or replaced with something that works. Remember too what robots.txt cannot do: Google’s introduction to robots.txt notes that a blocked address can still appear in results without a description.
Where the test stops
The tester matches the path and query as typed. Crawlers also normalise percent-encoded characters before matching, which is not reproduced here, so an address with encoded characters gets a warning. To write a new file from scratch, use the robots.txt generator; to find which pages should be crawled at all, a sitemap built with the XML sitemap generator is the other half.
Published by Koit Academy. Who runs it, how it is paid and how its tools are checked.
Questions
What people ask about the Robots.txt Tester
How does Google choose between allow and disallow?
Which group does a crawler follow?
Does this tool fetch my live robots.txt?
Are robots.txt paths case sensitive?
Why is a line marked as ignored?
Related tools
Robots.txt Generator
A clean robots.txt from the paths you want blocked
Open itXML Sitemap Generator
A valid sitemap.xml from a list of URLs
Open itMeta Tag Generator
Title, description, canonical and sharing tags in one block
Open itURL Slug Generator
Clean URL slugs from page titles
Open it301 Redirect Generator
Redirect rules for Apache, Nginx or _redirects
Open itSERP Preview Tool
See where a title and description will be cut
Open it