How to check robots.txt for AI crawlers
· 7 min read
To check whether AI crawlers can reach your site, open https://your-domain/robots.txt. For each crawler token (GPTBot, OAI-SearchBot, PerplexityBot, ClaudeBot and the rest), find the group that applies to it, then check whether the longest matching Allow or Disallow rule covers the pages you want cited. The common mistake is blocking a search crawler when you only meant to opt out of training, and that can keep your pages out of AI answers entirely.
Robots.txt is only the first gate. A CDN or firewall can still block a crawler your robots.txt allows, so the last step below covers that.
Which AI crawler tokens should you look for?
Vendors now split their crawlers by job. Most have a training crawler, a search crawler and a user-triggered fetcher, and each one reads its own robots.txt token. The table summarises what each vendor's docs say. Read the linked pages before you change anything, because these lists change.
| Token | Vendor | What the vendor says it does | Source |
|---|---|---|---|
GPTBot |
OpenAI | Crawls content that may be used to train its models | OpenAI crawlers |
OAI-SearchBot |
OpenAI | Surfaces sites in ChatGPT search results | OpenAI crawlers |
ChatGPT-User |
OpenAI | Fetches a page when a user's request needs it | OpenAI crawlers |
PerplexityBot |
Perplexity | Surfaces and links sites in Perplexity search results; Perplexity says it is not used to train foundation models | Perplexity crawlers |
Perplexity-User |
Perplexity | Fetches a page when a user asks a question that needs it | Perplexity crawlers |
ClaudeBot |
Anthropic | Collects content that may be used for training | Anthropic's crawler policy |
Claude-SearchBot |
Anthropic | Crawls to improve search results in Claude | Anthropic's crawler policy |
Claude-User |
Anthropic | Fetches a page when a Claude user asks for it | Anthropic's crawler policy |
Google-Extended |
A control token, not a separate crawler. It controls use for Gemini; Google says it does not affect Search | Google's crawlers | |
Googlebot, Bingbot |
Google, Microsoft | Classic search crawlers. Google's AI features and Bing-backed answers depend on them | Google robots.txt intro |
Two consequences stand out:
- OpenAI documents that sites which opt out of
OAI-SearchBotwon't be shown in ChatGPT search answers, though it notes they can still appear as navigational links. BlockingGPTBotis a separate choice about training. The two are independent. - The user-triggered fetchers (
ChatGPT-User,Perplexity-User,Claude-User) work differently. Their vendors describe them as acting for a person, and some say robots.txt may not apply to them in the same way. Check each vendor's current wording rather than assuming.
How does a crawler decide which robots.txt rules apply to it?
Robots.txt has a standard: RFC 9309. The parts that matter here:
- One group per crawler. A crawler follows the group (or groups) whose
User-agentline names its token. Matching is case-insensitive. If no group names it, it followsUser-agent: *. - A named group replaces
*, it doesn't add to it. This is the gotcha. If you add aUser-agent: GPTBotgroup, GPTBot ignores everything in your*group. - Longest match wins. Inside the group, the rule with the longest matching path applies. Google's robots.txt spec adds that
Allowwins a tie. - Each host has its own file.
www.example.com,example.comanddocs.example.comeach need their own/robots.txt. - Errors behave differently. Under RFC 9309, a 4xx response for robots.txt means the crawler may crawl everything. A 5xx or an unreachable server means it should assume everything is disallowed. A robots.txt that times out behind a firewall can block more than one that is missing.
What does a typical mistake look like?
Here is a robots.txt for example.com meant to keep everyone out of /admin/ and opt out of OpenAI training:
User-agent: *
Disallow: /admin/
User-agent: GPTBot
Disallow: /
That does what it says. Now a common "allow the search bots" edit:
User-agent: *
Disallow: /admin/
User-agent: GPTBot
Disallow: /
User-agent: OAI-SearchBot
User-agent: PerplexityBot
Allow: /
OAI-SearchBot and PerplexityBot now have their own group, so the /admin/ rule no longer applies to them. If you want them kept out of /admin/, repeat it:
User-agent: OAI-SearchBot
User-agent: PerplexityBot
Disallow: /admin/
(An empty group with only Disallow: /admin/ still allows everything else. You don't need Allow: /.)
The opposite mistake is more costly: a blanket rule copied from a "block AI bots" list that includes OAI-SearchBot, PerplexityBot or Claude-SearchBot. That doesn't just opt you out of training. It can take you out of those products' search answers.
How do you check it step by step?
- Fetch the file. Open
https://example.com/robots.txtin a browser, or runcurl -i https://example.com/robots.txt. You want HTTP 200 and plain text, not an HTML error page or a login redirect. - List the groups. Write down every
User-agentline and the rules under it. - Map each token to a group. For each crawler in the table above, note which group it falls into: its own, or
*. - Test your important paths. For your homepage, pricing page, docs and best answer pages, find the longest matching rule in that group. Allowed or blocked?
- Repeat for every host that serves content you want cited.
- Re-check after deploys. CMS plugins, staging configs and SEO tools rewrite robots.txt more often than people notice.
Raylit runs this check for you every day. The AI crawler access card on each domain page shows Allowed, Blocked or Partially blocked for each crawler token, for the homepage and for the pages crawled so far. It also keeps earlier checks, so a robots.txt change that suddenly blocks a crawler stays visible.
What if robots.txt allows the crawler but it still can't get in?
Then look below robots.txt:
- CDN and firewall bot rules. Some CDNs offer one-click settings that block AI crawlers at the edge, whatever robots.txt says. Bot-fight modes and challenge pages can do the same.
- Server logs. Search your access logs for the user-agent tokens. Vendors publish IP ranges for their crawlers on the pages linked above, so you can tell real crawler traffic from spoofed user agents.
- Content the crawler can't read. A page can be fetchable and still empty to a crawler that doesn't run JavaScript. AI View shows the text that's actually in the HTML.
Changes aren't instant either. Vendors note that a robots.txt update can take some time, often around a day, before their systems pick it up.
Does allowing AI crawlers mean you'll be cited?
No. Access makes citation possible. It doesn't make it likely. After access come indexing, a page that answers the question, and mentions on sites the assistant trusts. What AI visibility is walks through that whole chain.
The direct test is to ask. The free AI visibility checker sends one buyer question to Perplexity and shows whether your site was mentioned or cited.
FAQ
Should I block GPTBot?
That's a business decision about training use, not a visibility fix. Per OpenAI's docs, blocking GPTBot and allowing OAI-SearchBot are independent settings.
Is Google-Extended needed to appear in AI Overviews?
Google says Google-Extended does not affect Google Search. Its AI features in Search depend on normal Googlebot crawling and indexing.
Can robots.txt remove a page that's already cited?
Blocking a search crawler stops future crawling. How quickly existing answers change depends on the vendor. Expect a delay, and check the vendor's docs.
Try one question free
The free checker asks Perplexity one buyer question about your site and shows whether you were mentioned or cited. No account needed.