OAI-SearchBot in robots.txt: how to allow or block it, and the CCBot confusion
OAI-SearchBot is the token that decides whether your site appears in ChatGPT search answers. How to allow or block it by name, and why CCBot is a different operator.
OAI-SearchBot is the only OpenAI token that controls whether your site appears in ChatGPT search answers. To block it, add User-agent: OAI-SearchBot with Disallow: / to robots.txt. To allow it, give it its own group with Allow: / whenever your star group disallows anything, because a named group always overrides the star group. OpenAI states that “sites that are opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though can still appear as navigational links”, and that it “can take ~24 hours from a site’s robots.txt update for our systems to adjust”. Blocking GPTBot does not block OAI-SearchBot and never did: OpenAI documents the settings as independent.
The named-group trap, in one example
The most common mistake looks like this:
User-agent: *
Disallow: /private/
User-agent: GPTBot
Disallow: /
User-agent: OAI-SearchBot
Allow: /
This file is correct: OAI-SearchBot has its own group, so the star group’s rules do not apply to it, and it can crawl everything except nothing. Now delete the OAI-SearchBot group. It falls back to the star group, which only disallows /private/, and it is still mostly allowed. But reverse the preset, and the same structure blocks OAI-SearchBot while the star group looks friendly. The verdict for a bot comes from the most specific group that matches it, which is why how AI crawlers see your site ends up reading differently from the file you thought you wrote.
The CCBot confusion
CCBot shows up next to OAI-SearchBot in almost every “AI crawler” list, which makes people treat them as interchangeable. They are not the same operator and not the same job. CCBot is Common Crawl’s crawler, building an open, public archive of the web that many model trainers draw from. OpenAI does not run it, and blocking CCBot has no documented effect on ChatGPT search. The practical differences:
- Blocking CCBot keeps your pages out of future Common Crawl archives, which limits third-party training sets built on that data.
- Blocking OAI-SearchBot removes you from ChatGPT search answers.
- Blocking both is a coherent choice, but it is two decisions about two different operators, not one switch.
Presets that write a single “AI bots” group with all the tokens lumped together obscure exactly this. If you want search visibility but not archive inclusion, allow OAI-SearchBot and disallow CCBot in separate groups.
Verifying the live verdict
The AI crawler checker resolves the robots.txt verdict for a URL per bot, OAI-SearchBot and CCBot included, and probes the edge with each search bot’s real user agent to catch CDN-level blocks that never touch your files. The robots.txt tester shows the exact rule that decided each verdict and diffs a proposed file against the live one before you ship it.
Copy-paste rule sets for the common combinations live in ai-crawler-robots-txt-recipes, and gptbot-is-not-chatgpt-search covers the training-versus-search split across all 13 tokens.
Stillindexed watches the OAI-SearchBot verdict for every monitored URL and warns when a bot that was allowed is newly disallowed, so a preset toggle or plugin update does not quietly remove you from ChatGPT search. The 14 day trial covers it.
Fix it on your platform
An AI search crawler blocked from a site, with the exact setting named on each one.
Questions
- How do I block OAI-SearchBot in robots.txt?
- Add a group with the exact token "User-agent: OAI-SearchBot" and "Disallow: /". OpenAI states that sites opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though they can still appear as navigational links. Changes take about 24 hours to apply, per OpenAI.
- How do I allow OAI-SearchBot?
- Give it its own group with "Allow: /" if your star group disallows anything, because a named group overrides the star group. OpenAI recommends allowing OAI-SearchBot in robots.txt and allowing requests from its published IP ranges to make sure your site appears in search results.
- Is CCBot the same as OAI-SearchBot?
- No. CCBot is Common Crawl's crawler, run by a nonprofit that builds an open archive of the web which AI training datasets draw on. Blocking CCBot does nothing to ChatGPT search, and blocking OAI-SearchBot does nothing to the Common Crawl archive. They are different operators with different jobs.
- Does blocking GPTBot also block OAI-SearchBot?
- No. OpenAI documents the settings as independent: a webmaster can allow OAI-SearchBot while disallowing GPTBot. Each token needs its own line, and blocking one never blocks the other.
- What is ChatGPT-User for?
- ChatGPT-User acts when a ChatGPT user asks for a specific page, not on an automatic crawl. OpenAI notes that because these actions are user-initiated, robots.txt rules may not apply, and says to use OAI-SearchBot in robots.txt for managing search opt-outs.