Robots.txt tester and validator
Fetch your live robots.txt or paste one. Pick a path and a crawler, and see the exact rule that decides.
A robots.txt tester reads the file at your site root and works out which rule applies to one crawler and one URL path. Google uses the most specific rule by path length, and the least restrictive rule when two tie. A blocked URL can still be indexed without a snippet.
GPTBot may not crawl /blog/robots-guide
GPTBot follows its own GPTBot group (line 7). The longest matching rule is Disallow: / on line 8.
# Sample robots.txtUser-agent: *Disallow: /app/Allow: /app/pricingCrawl-delay: 10 User-agent: GPTBotDisallow: / User-agent: ClaudeBotDisallow: /blog/Allow: /blog/public/ Sitemap: /sitemap.xmlgroup this crawler follows deciding rule
- Warning: Sitemap URLs must be fully qualified, with the protocol and host (https://example.com/sitemap.xml).
- Note: Google does not support Crawl-delay and ignores this line. Some other crawlers read it.
- Note: GPTBot is blocked from the whole site. This is a training or product crawler, so this is usually a deliberate opt-out. Learn more
/sitemap.xml/blog/robots-guide| Crawler | Type | Follows | Result | Rule |
|---|---|---|---|---|
| GooglebotGoogle | Search | * group | allowed | none |
| BingbotMicrosoft | Search | * group | allowed | none |
| ApplebotApple | Search | * group | allowed | none |
| GPTBotOpenAI | AI training | Own group | blocked | Disallow: / line 8 |
| OAI-SearchBotOpenAI | AI search | * group | allowed | none |
| ChatGPT-UserOpenAI | User fetch | * group | allowed | none |
| ClaudeBotAnthropic | AI training | Own group | blocked | Disallow: /blog/ line 11 |
| Claude-SearchBotAnthropic | AI search | * group | allowed | none |
| Claude-UserAnthropic | User fetch | * group | allowed | none |
| PerplexityBotPerplexity | AI search | * group | allowed | none |
| Perplexity-UserPerplexity | User fetch | * group | allowed | none |
| Google-ExtendedGoogle | AI training | * group | allowed | none |
| Applebot-ExtendedApple | AI training | * group | allowed | none |
| Meta-ExternalAgentMeta | AI training | * group | allowed | none |
| AmazonbotAmazon | AI training | * group | allowed | none |
| CCBotCommon Crawl | AI training | * group | allowed | none |
How to use it
- 01Enter your site, or paste the fileThe tester fetches
/robots.txtfrom the host you enter. A file only covers its own host, protocol and port, sowww.and each subdomain need their own. - 02Pick a path and a crawlerType a path or paste a full URL. The query string counts: Google matches
/fishagainst/fish.php?id=anything. - 03Read the resultThe file view highlights the group the crawler follows and marks the deciding rule. The table runs the same path for every crawler.
What the results mean
| You see | It means |
|---|---|
| Own group | A User-agent line names this crawler. It follows only that group (merged, if the name appears more than once) and ignores *. |
* group | No group names it, so it follows the * group. |
| Googlebot group | Applebot only: Apple says that if the file doesn't mention Applebot but mentions Googlebot, Applebot follows the Googlebot rules. |
| Allowed, rule none | No rule in the group matches the path. Anything not disallowed may be crawled. |
| Blocked | The longest matching rule is a Disallow. |
Validation findings come in three levels. Errors are lines crawlers skip or rules that never apply. Warnings are likely mistakes, like blocked CSS or a misspelled bot name. Notes are worth knowing but often deliberate, such as a training crawler you chose to block.
Common mistakes
Disallow: /blogAlso blocks /blog-tips and /blogger: Google says /fish matches /fishheads.Disallow: /blog/Only the folder.User-agent: GPTBot
User-agent: *
Disallow: /Stacked user-agent lines form one group, so every crawler is blocked.User-agent: GPTBot
Disallow: /One group per intent.(remove the rule)Let crawlers load page resources.Sitemap: /sitemap.xmlGoogle says the sitemap must be a fully qualified URL.Sitemap: https://example.com/sitemap.xmlProtocol and host included.How crawlers read the file
“Only one group is valid for a particular crawler.” Google
“In case of conflicting rules, including those with wildcards, Google uses the least restrictive rule.” Google
* and $, nothing else“* designates 0 or more instances of any valid character. $ designates the end of the URL.” Google
“The /robots.txt URI is implicitly allowed.” RFC 9309
“Google enforces a robots.txt file size limit of 500 kibibytes (KiB).” Google
Crawl-delay is ignored by Google“other fields such as crawl-delay aren't supported” Google
What people ask next
Does robots.txt remove a page from Google?
No, it controls crawling. Google says it "can't index the content of pages which are disallowed for crawling, but it may still index the URL and show it in search results without a snippet." To keep a page out, let it be crawled and use noindex.
What happens if robots.txt returns a 404?
Google treats all 4xx errors except 429 as if no valid robots.txt exists, so it assumes there are no crawl restrictions. A 5xx is different: for the first 12 hours Google stops crawling the site while it retries. More on a missing file.
Do AI crawlers obey robots.txt?
The training and search crawlers here say they do. Fetches a user starts are different: OpenAI says of ChatGPT-User that "robots.txt rules may not apply," and Perplexity says Perplexity-User "generally ignores robots.txt rules."
How long until a change takes effect?
Google "generally caches the contents of robots.txt file for up to 24 hours," and may keep it longer if it can't fetch a fresh copy.
Every rule, linked and dated
- How Google interprets the robots.txt specification developers.google.comchecked 25 Oct 2026
- RFC 9309: Robots Exclusion Protocol rfc-editor.orgchecked 25 Oct 2026
- Overview of OpenAI crawlers developers.openai.comchecked 25 Oct 2026
- Perplexity crawlers docs.perplexity.aichecked 25 Oct 2026
- About Applebot support.apple.comchecked 25 Oct 2026
Learn. Compare. Do.
Blocking AI by accident? Find out in one audit.
The free audit reads your robots.txt and checks AI visibility in ChatGPT, Perplexity, Gemini and Google AI Overviews.
Audit my site free