AI robots.txt tester: which AI crawlers and agents can read your site
What it does
Paste your robots.txt and this tester shows, for 12 AI crawlers and agents, whether each one may read the pages you pick, and quotes the line in your file that decided it. It follows RFC 9309, the robots.txt standard, and runs in your browser.
- Acts for a person Fetches a page right now because someone asked an assistant, like ChatGPT-User or Claude-User.
- AI search Crawls ahead of time to build the index an AI search product answers from, like OAI-SearchBot or PerplexityBot.
- Training Collects pages that may train future models, like GPTBot or ClaudeBot. Blocking these is a business choice.
Test your robots.txt
Open yoursite.com/robots.txt in a new tab, copy all of it and paste it below in place of the sample. The tester never contacts your site or any other, so it can't fetch the file for you.
Results
fetch a page when someone asks an assistant
build the indexes AI answers come from
collect pages for future models: your call
Pages tested: / and /products/example
ChatGPT-User
OpenAI Acts for a person
Claude-User
Anthropic Acts for a person
Perplexity-User
Perplexity Acts for a person
OAI-SearchBot
OpenAI AI search
Claude-SearchBot
Anthropic AI search
PerplexityBot
Perplexity AI search
Googlebot
Google AI search
Bingbot
Microsoft AI search
GPTBot
OpenAI Training
ClaudeBot
Anthropic Training
Google-Extended
Google Training
Applebot-Extended
Apple Training
Which robots.txt lines should you copy?
Let assistants and AI search in, opt out of training
Name each training token and leave everything else open. Keep your private paths in the shared group.
# Assistants and AI search may read the site. Model training may not.
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
Disallow: /
User-agent: *
Disallow: /cart
Disallow: /account
Allow: /
Sitemap: https://www.example.com/sitemap.xml
Make sure agents that act for a shopper get in
If your shared group blocks most bots, give the assistants and AI search crawlers a group of their own. A bot with its own group ignores the shared one, so repeat your private paths here.
# Agents acting for a person, and AI search crawlers
User-agent: ChatGPT-User
User-agent: Claude-User
User-agent: Perplexity-User
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Disallow: /cart
Disallow: /account
Allow: /
User-agent: *
Disallow: /
If you are happy for every AI bot to read your pages, training included, you need no AI lines at all: a bot with no group of its own follows User-agent: *. The robots.txt guide for AI agents covers each bot in more depth.
How do I check if GPTBot is blocked?
Paste your file above and look at the GPTBot row. To read it by hand, find a group whose User-agent: line says GPTBot. If one exists, only its rules count, and Disallow: / blocks the whole site. If no group names GPTBot, it follows the User-agent: * group. If there's no such group either, it may read everything.
Does blocking GPTBot keep my site out of ChatGPT?
No. GPTBot only collects pages for training. ChatGPT search uses OAI-SearchBot, and ChatGPT-User fetches a page when someone asks about it. Each one needs its own line. Our guide to AI agents in robots.txt covers what blocking each bot costs.
Why does a bot with its own group ignore my User-agent: * rules?
RFC 9309 says a crawler uses only the group that names it. The * group is only for bots that no group names. So if you give ClaudeBot its own group and want it kept out of /cart, the ClaudeBot group needs its own Disallow: /cart.
Do AI agents follow robots.txt?
The training and search crawlers from OpenAI, Anthropic, Perplexity, Google and Apple say they do. OpenAI and Perplexity say their user fetchers (ChatGPT-User and Perplexity-User) may not, because a person asked for the page. Anthropic says blocking Claude-User stops Claude from fetching your pages. A firewall or CDN bot rule can also turn agents away whatever your file says.
Which rule wins when Allow and Disallow both match?
The longest matching rule wins, counted in characters. If an Allow and a Disallow are the same length, Allow wins. * matches any run of characters and a $ at the end means the path must end there, so Disallow: /*.pdf$ blocks /files/menu.pdf but not /files/menu.pdf?v=2.
What if my robots.txt is missing or returns an error?
If /robots.txt returns a 404 or another 4xx error, crawlers may read the whole site. If it returns a 5xx server error, RFC 9309 tells them to treat the site as fully blocked while the error lasts. Check that yours answers with a 200 and plain text, and that it isn't an HTML page.
Is anything I paste sent to Augur?
No. The tester is a small script that runs on this page. It makes no network request with your file, stores nothing and has no analytics. You can turn off your connection after the page loads and it still works.
More free tools: the UCP manifest validator checks the /.well-known/ucp file AI shopping agents read before they buy, and shows what they can do with your store.
Sources
- RFC 9309: Robots Exclusion Protocol (IETF)
- Overview of OpenAI Crawlers (OpenAI)
- Does Anthropic crawl data from the web, and how can site owners block the crawler? (Anthropic)
- Perplexity Crawlers (Perplexity)
- How Google interprets the robots.txt specification (Google Search Central)
- About Applebot (Apple)