OpenAI crawlers
OAI-SearchBot vs GPTBot: what's the difference for your site?
GPTBot is OpenAI's training crawler. OAI-SearchBot is the one that can put your pages in ChatGPT search answers. Here's how to allow one without the other — and how to check a firewall isn't undoing robots.txt.
Check your homepage first (free, no account). IndexDoctor (index-doctor.com) live-fetches your page as a normal browser, Googlebot, GPTBot and ClaudeBot, and reads robots.txt for every crawler token in that check, including GPTBot and OAI-SearchBot. It does not live-fetch as OAI-SearchBot, and it does not compare HTTP status for the two OpenAI user-agents. A 401, a 403, or a 5xx on the Googlebot, GPTBot or ClaudeBot fetch is marked blocked; on the normal-browser fetch it is reported as an HTTP error.
The short answer
OpenAI runs more than one crawler. The two that show up in robots.txt most often are:
| User agent | What OpenAI says it's for | If you block it |
|---|---|---|
| OAI-SearchBot | Surfacing sites in ChatGPT search results | Your pages won't appear in ChatGPT search answers. OpenAI says they can still appear as navigational links |
| GPTBot | Crawling content that may be used to train OpenAI's generative AI foundation models | OpenAI treats that as a request not to use this site for training |
OpenAI's crawler overview says each setting is independent. You can allow OAI-SearchBot (so you can show up in ChatGPT search) and disallow GPTBot (so you opt out of training). Blocking GPTBot does not remove you from ChatGPT search. Blocking OAI-SearchBot does.
Changes to robots.txt for search can take about 24 hours to take effect, per OpenAI.
Why people mix them up
- Cloudflare, bot products and "block AI" toggles often talk about "AI bots" as one bucket.
- Older blog posts only mentioned GPTBot, because OAI-SearchBot is newer.
- A firewall can return 403 to a GPTBot user-agent even when robots.txt says
Allow: /. robots.txt is a request, not a guarantee the edge will serve the page.
On 29 Oct 2026 we re-checked several well-known sites from our own server: some returned 200 for OAI-SearchBot and Googlebot, but 403 for GPTBot and ClaudeBot, while robots.txt did not Disallow those agents. That pattern is a WAF/bot rule, not a robots.txt rule.
What to put in robots.txt
To stay eligible for ChatGPT search and opt out of training:
Example
User-agent: GPTBot Disallow: / User-agent: OAI-SearchBot Allow: /
To allow both (search and training):
Example
User-agent: GPTBot Allow: / User-agent: OAI-SearchBot Allow: /
To stay out of ChatGPT search answers as well:
Example
User-agent: OAI-SearchBot Disallow: /
Test the file with the free robots.txt tester. Related: How to allow or block GPTBot.
Don't forget the firewall
After robots.txt looks right, the edge can still block a crawler the file allows.
- In Cloudflare (or your host's bot product), check whether "AI bots", Bot Fight, or a custom WAF rule still challenges or blocks OpenAI. Cloudflare documents this separately as Block AI bots.
- Prefer allowing by published IP ranges where you can. OpenAI publishes gptbot.json and searchbot.json. Anyone can spoof a User-Agent string.
- The free IndexDoctor check live-fetches the homepage as GPTBot, plus a normal browser, Googlebot and ClaudeBot, and reads robots.txt for both GPTBot and OAI-SearchBot. It does not live-fetch OAI-SearchBot, so it does not compare HTTP status for the two OpenAI user-agents. To compare them yourself, fetch the homepage with each user-agent and compare the status code and whether the page text is still in the response.
See also: Cloudflare blocking AI crawlers, Is Cloudflare Bot Fight Mode blocking GPTBot or ChatGPT search?, and Why isn't my website showing up in ChatGPT?.
Other OpenAI agents (brief)
OpenAI also documents ChatGPT-User (a fetch when a person asks ChatGPT to open a page; robots.txt rules may not apply the same way) and OAI-AdsBot (checks landing pages submitted as ads). Those are separate from the search vs training choice above. See OpenAI's crawler overview.
Checklist
- Decide: do you want ChatGPT search citations, training opt-out, both, or neither?
- Set OAI-SearchBot and GPTBot separately in robots.txt.
- Confirm the CDN or WAF isn't returning 403 to those user-agents.
- Re-test in about 24 hours after a robots.txt change aimed at search.
- If search still doesn't cite you, the page may be reachable but not selected. That is ranking and quality, not only crawl access.
FAQ
If I block GPTBot, does ChatGPT search stop citing my site?
No. OpenAI says the two robots.txt settings are independent. Blocking GPTBot is the training opt-out. Blocking OAI-SearchBot is what keeps pages out of ChatGPT search answers. OpenAI says those pages can still appear as navigational links.
Which OpenAI crawler matters for ChatGPT search?
OAI-SearchBot. GPTBot is the crawler for content that may be used to train OpenAI's models. You can allow OAI-SearchBot and disallow GPTBot.
Does the free check fetch my page as OAI-SearchBot?
No. The check live-fetches as a normal browser, Googlebot, GPTBot and ClaudeBot, and reads robots.txt for both tokens. It does not live-fetch OAI-SearchBot, and it does not compare HTTP status for the two OpenAI user-agents. A 401, a 403, or a 5xx on the Googlebot, GPTBot or ClaudeBot fetch is marked blocked; on the normal-browser fetch it is reported as an HTTP error.
Sources
- OpenAI crawler overview: https://developers.openai.com/api/docs/bots
- GPTBot IPs: https://openai.com/gptbot.json
- OAI-SearchBot IPs: https://openai.com/searchbot.json
- Cloudflare Block AI bots: https://developers.cloudflare.com/bots/additional-configurations/block-ai-bots/