How to Allow OAI-SearchBot but Block GPTBot Training

OpenAI runs two separate crawlers: OAI-SearchBot feeds ChatGPT search, and GPTBot feeds model training. Two robots.txt rules let you allow the first and block the second, because OpenAI treats each setting as independent.
Quick answer: Allow OAI-SearchBot and block GPTBot with two separate robots.txt groups: one that allows OAI-SearchBot, and one that disallows GPTBot. OpenAI says each setting is independent, so allowing search does not allow training, and blocking training does not remove you from ChatGPT search answers.
TL;DR: Two tokens, two jobs, two rules. Allow the search crawler, block the training crawler, and test the file before you trust it.
Key takeaways
- ChatGPT citations come from OAI-SearchBot, not from GPTBot, so blocking training does not block your search visibility.
- AI Overviews work the same way: search crawlers and training crawlers are separate settings.
- Tracking AI citations tells you whether the search crawler is reaching your pages after you change robots.txt.
- The ChatGPT-User crawler fetches pages when a user asks, and it is a third token with its own behavior.
- How ChatGPT chooses sources starts with access, so a blocked search crawler means no citation at all.
- Why ChatGPT cites some pages often comes down to crawl access, and robots.txt is the first place to check.
The four OpenAI crawlers and what each one does
OpenAI runs four user agents, and each one does a different job. Confusing them is the most common mistake in AI crawler control, because blocking the wrong token costs you search visibility for no benefit.
OAI-SearchBot is the search crawler. According to OpenAI's crawler documentation, OAI-SearchBot is used to surface websites in search results in ChatGPT's search features, and sites that opt out of it will not be shown in ChatGPT search answers, though they can still appear as navigational links.
GPTBot is the training crawler. According to the same OpenAI documentation, GPTBot is used to crawl content that may be used in training generative AI foundation models, and disallowing it indicates that a site's content should not be used for that training.
ChatGPT-User is a fetcher, not a crawler. According to OpenAI, it visits pages when a request in ChatGPT or a Custom GPT needs a page, and robots.txt rules may not apply to it in the same way. Blocking GPTBot will not stop a ChatGPT user from pulling your page into a chat.
OAI-AdsBot only visits pages submitted as ads on ChatGPT, and its data is not used to train models, according to OpenAI's documentation.
| User agent | Job | Training use | Blocks ChatGPT search? |
|---|---|---|---|
| OAI-SearchBot | ChatGPT search index | No | Yes, if disallowed |
| GPTBot | Model training data | Yes | No |
| ChatGPT-User | Fetches a page on user request | No | No |
| OAI-AdsBot | Checks ad landing pages | No | No |
The key sentence in OpenAI's documentation is that each setting is independent of the others. A webmaster can allow OAI-SearchBot in order to appear in search results while disallowing GPTBot to indicate that crawled content should not be used for training. That independence is what makes the two-rule file possible.
The exact robots.txt file
This file allows AI search and user fetches, keeps private paths private for every crawler, and opts out of training. Paste it into your robots.txt and replace the example paths with your own private paths.
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Disallow: /admin/
Disallow: /account/
User-agent: *
Disallow: /admin/
Disallow: /account/
Sitemap: https://example.com/sitemap.xml
The training group comes first, and it lists every training token you want to opt out of: GPTBot for OpenAI, ClaudeBot for Anthropic, Google-Extended for Google, and CCBot for Common Crawl. Each one gets a full disallow.
The search group comes second, and it allows the search crawlers and fetchers while repeating the private paths. That repetition matters, and the next section explains why.
The wildcard group comes last, and it repeats the same private paths for every other crawler. Replace the example sitemap URL with your real one.
The mistakes that break the file
Three errors break most robots.txt files for AI crawlers, and all three are silent: the file looks right, but the crawlers do something else.
First, a named group does not inherit anything from the wildcard group. According to the robots.txt standard, RFC 9309, a crawler obeys the group that names its product token, and the wildcard group applies only when no group names it. If OAI-SearchBot has its own group that allows everything, your wildcard rule that blocks the admin area does not apply to it. Every named group must repeat the private paths.
Second, a disallow under the wildcard group blocks every crawler without its own group, including AI bots you have never heard of. A file that starts with a blanket disallow and adds exceptions later is backwards. Write the file from the most specific token to the wildcard, not the other way around.
Third, an old GPTBot block copied from a 2024 post may use the wrong token or the wrong assumption. OpenAI documents GPTBot as the training crawler and OAI-SearchBot as the search crawler, and each setting is independent. Blocking GPTBot leaves ChatGPT search alone, while blocking OAI-SearchBot keeps your pages out of its answers.
Test the file after every change. Fetch it with a simple command and check that each group contains what you expect, because a single misplaced line changes which crawlers can reach your site.
What blocking GPTBot does and does not do
Blocking GPTBot keeps your content out of future model training, as OpenAI documents. It does not remove you from live ChatGPT answers, because those come from the search crawler and the user fetcher, which keep working.
Blocking GPTBot also does not stop a ChatGPT user from opening your page. According to OpenAI's documentation, ChatGPT-User fetches pages when a user asks, and robots.txt rules may not apply to that fetcher. If your goal is to keep a page out of every AI product, robots.txt alone will not do it.
The trade-off is real. If you allow training, future models learn your name, what you do, and where to find you, which shows when an assistant answers from memory without searching. If you block it, future models learn less about your business.
The scale of training crawling is large and growing. According to Cloudflare's July 2025 report, GPTBot requests increased by 305% from May 2024 to May 2025. According to a Cloudflare post from August 2025, about 80% of AI crawler traffic in the prior 12 months was training, about 18% was search, and about 2% was user actions. That split is why the decision matters: most AI crawler traffic is training, not search.
OpenAI says a robots.txt change can take about 24 hours to take effect for search results, so recheck after a day. A change that looks wrong an hour later may simply not have propagated yet.
Verify it works: logs, curl, and the 24-hour wait
A robots.txt file is a request, not a lock, and the only proof it works is in your server logs. Check the logs for the user-agent strings and the response codes.
Look for OAI-SearchBot requests returning 200 on your public pages, and for GPTBot requests returning 403 or being absent entirely. If GPTBot still fetches pages a week after your change, check that the group names the token exactly, with the right case and spelling.
Use curl to fetch your robots.txt from outside your network, and read the whole file. A caching layer or a CDN can serve an old copy, and the crawlers read whatever is served, not whatever is on your disk.
Check your sitemap too. A sitemap declared in robots.txt tells the search crawlers which pages exist, and it works alongside the allow rules. If the search crawler can reach your pages but cannot find them, it will not cite them.
Keep a note of the date you changed the file. OpenAI says search changes take about 24 hours, and training changes take longer to show up in any measurable way, because training data feeds models that ship months later.
According to OpenAI's crawler documentation, each robots.txt setting is independent, so a site can allow OAI-SearchBot in order to appear in search results while disallowing GPTBot to indicate that crawled content should not be used for training. According to Cloudflare's July 2025 report, GPTBot requests increased by 305% from May 2024 to May 2025. Source: OpenAI, Overview of OpenAI Crawlers, and Cloudflare, July 2025.
Frequently Asked Questions
Does blocking GPTBot remove my site from ChatGPT?
No. GPTBot collects training data, while OAI-SearchBot feeds ChatGPT search. Blocking GPTBot leaves search alone. Blocking OAI-SearchBot is what removes your pages from ChatGPT search answers.
How long does a robots.txt change take to work?
OpenAI says search changes can take about 24 hours. Training changes take longer to show any effect, because training data feeds models that ship months later.
Can I block GPTBot but allow ChatGPT-User?
Yes. ChatGPT-User is a separate token that fetches a page when a user asks for it. Allow it in its own group, and disallow GPTBot in a different group.
Do I need to block other training crawlers too?
If your goal is to opt out of training, yes. ClaudeBot, Google-Extended, Applebot-Extended, CCBot, and Meta's training agent each need their own disallow, because each operator reads only its own token.
Will robots.txt stop AI companies from using my content?
No. Robots.txt is a request that polite crawlers honor, not a lock. It signals your preference, and major operators document that they honor it, but it cannot physically stop a crawler that ignores it.
What happens if I block OAI-SearchBot by mistake?
Your pages stop appearing in ChatGPT search answers, though they can still appear as navigational links. Remove the disallow, wait about 24 hours, and check that the search crawler is fetching your pages again.
Expert verdict
Best for: sites that want ChatGPT search visibility without contributing content to model training.
Not for: sites that want to keep pages out of every AI product, because robots.txt cannot stop user-triggered fetches.
Pros: two rules solve the whole problem; OpenAI documents the independence clearly; search visibility stays intact.
Cons: each vendor needs its own token; changes take about 24 hours; robots.txt is a request, not a lock.
Bottom line
Allow OAI-SearchBot, disallow GPTBot, repeat your private paths in every named group, and verify the result in your server logs after a day. That is the whole job, and it keeps search open while training stays out.
Sources
The BacklinkPrice Team researches backlink prices, publisher sites and link building tools. We check prices and plans against each provider's own pages and date them, so you know how current the numbers are.
More from BacklinkPrice TeamRelated guides





