robots.txt Tester
Test URLs against a robots.txt for Googlebot, Bingbot, GPTBot, ClaudeBot or any crawler, and see the exact rule that allows or blocks each one
Googlebot: No group applies to Googlebot, so everything is allowed.
File check
No problems found.
Matching follows RFC 9309 and Google's documented rules, and runs in your browser. Fetch robots.txt asks our server to request that one file. robots.txt controls crawling, not indexing: a blocked page can still appear in search results if other sites link to it. To keep a page out, allow crawling and use noindex. Write a new file with the robots.txt Generator, or see what a crawler can reach with the XML Sitemap Generator.
Was the robots.txt Tester helpful?
About this tool
The robots.txt Tester tells you whether a crawler may fetch a URL, and which line of robots.txt decides it. Paste a robots.txt or fetch one from a site, choose a crawler (Googlebot, Bingbot, GPTBot, ClaudeBot, PerplexityBot and twenty more, or any name), and test as many URLs as you like. Matching follows RFC 9309 and Google's documented behavior. A crawler obeys only the groups that name it, and ignores the * group completely when one does, a common surprise. Within a group, the longest matching rule wins and Allow wins a tie. * and $ wildcards work as Google applies them, percent-encoding is normalized, and /robots.txt is always allowed. Google's own exceptions are included: its image, video and news crawlers fall back to Googlebot's rules, and AdsBot ignores the * group. A table shows one URL against every crawler at once, which is the quickest way to check AI crawler blocking. The file itself is checked for misspelled and unsupported directives (including Noindex, which Google dropped in 2019), rules outside any group, relative sitemap URLs and the 500 KiB size limit. A fetched file's HTTP status is explained too: a 5xx makes Google treat the whole site as blocked.
When to use it
- →Checking a robots.txt change before deploying it
- →Finding out why Search Console reports a page as blocked by robots.txt
- →Confirming that GPTBot, ClaudeBot and other AI crawlers are blocked, or allowed
- →Debugging wildcard rules for URL parameters and file types
Tips
- ◆Once a group names Googlebot, Googlebot ignores the * group. Repeat the * rules you still want in its group.
- ◆The longest rule wins, not the first: Allow: /admin/public/ beats Disallow: /admin/ for files under /admin/public/.
- ◆End a rule with $ to match the end of the URL: Disallow: /*.pdf$ blocks PDFs but not /file.pdf?download=1.
- ◆robots.txt doesn't remove pages from Google. To keep a page out, allow crawling and add noindex.
- ◆A robots.txt that answers 503 makes Google stop crawling the whole site, so make sure it never errors.
Frequently asked questions
How do I test whether a URL is blocked by robots.txt?
Paste your robots.txt (or fetch it from your site), choose the crawler and enter the URL. The tester says Allowed or Blocked and shows the exact rule and line number that decided it.
Which rule wins when Allow and Disallow both match?
The most specific one, meaning the one with the longest path. If they're the same length, Allow wins. The order of the lines doesn't matter.
Why does Googlebot ignore my User-agent: * rules?
A crawler obeys exactly one set of rules: the groups that name it, or if there are none, the * group. As soon as you add a User-agent: Googlebot group, the * rules no longer apply to Googlebot.
How do I block AI crawlers?
Add groups for their user agents, such as GPTBot, ClaudeBot, CCBot, PerplexityBot and Google-Extended, with Disallow: /. Test them with the crawler table. robots.txt is a request, not enforcement: well-behaved crawlers respect it.
Does Google support Crawl-delay or Noindex in robots.txt?
No. Googlebot ignores Crawl-delay (Bing and Yandex respect it), and Google stopped supporting Noindex in robots.txt in 2019. Use a robots meta tag or the X-Robots-Tag header to keep pages out of results.