ChatGPT search reads your site through OAI-SearchBot. Here are the robots.txt lines, how long a change takes and how to check that the crawler gets through.
To let ChatGPT search read your site, allow OAI-SearchBot in robots.txt and make sure your firewall or CDN does not turn it away. OAI-SearchBot is the crawler OpenAI uses for ChatGPT's search features. It is separate from GPTBot, which collects pages for AI training, so you can allow one and block the other. OpenAI says a robots.txt change takes about 24 hours to reach its search systems. Everything below was checked against OpenAI's crawler documentation on December 1, 2026.
robots.txt is only half the job. A site can welcome the crawler in that file and still refuse it at the firewall, so the second half of this post is about checking.
What OAI-SearchBot, GPTBot and ChatGPT-User each do
| User agent | Job | What OpenAI's page says |
|---|---|---|
| OAI-SearchBot | Search | Used to surface websites in ChatGPT's search features. A site that opts out is not shown in ChatGPT search answers, "though can still appear as navigational links" |
| GPTBot | Training | Crawls content that may be used to train OpenAI's generative AI models. Disallowing it signals that your content should not be used for that |
| ChatGPT-User | A person's request | Visits a page when someone asks ChatGPT or a custom GPT about it. It does not crawl the web automatically, robots.txt rules may not apply to it, and it plays no part in whether you appear in search |
| OAI-AdsBot | Ad checks | Visits only the landing pages submitted as ads on ChatGPT. OpenAI says the data is not used for training |
OpenAI describes the OAI-SearchBot and GPTBot settings as independent of each other. It adds one detail worth knowing: if you allow both, it may use a single crawl for both purposes to avoid fetching your pages twice.
Other companies run the same three kinds of crawler under their own names. Our guide to robots.txt for AI crawlers lists them all. This post stays with OpenAI.
The robots.txt lines for OAI-SearchBot
Allow ChatGPT search and block AI training
This is the setup most businesses ask for: stay visible in ChatGPT search, keep your pages out of model training. Add these four lines, with a blank line between the two groups:
| Line | What it does |
|---|---|
User-agent: OAI-SearchBot | Starts a group of rules for ChatGPT's search crawler |
Allow: / | Lets it read the whole public site |
User-agent: GPTBot | Starts a second group for the training crawler |
Disallow: / | Asks it to stay out of every page |
The reverse: allow training and block search
Swap the two rules. Put Allow: / under User-agent: GPTBot and Disallow: / under User-agent: OAI-SearchBot. By OpenAI's description, your pages then stay out of ChatGPT search answers and may still show as a bare navigational link.
Details that are easy to miss
- No mention means the general rules apply. Under the robots.txt standard, RFC 9309, a crawler with no group of its own follows the
User-agent: *group. If that group allows your site, OAI-SearchBot is already welcome and the two lines above only make it explicit. - A named group replaces the general one. Once OAI-SearchBot has its own group, it stops reading the
*group. If you disallow a private folder for everyone, repeat that line inside the OAI-SearchBot group. - A broken robots.txt can count as a block. The same standard tells crawlers to treat a robots.txt that answers with a server error as a full disallow. Open
/robots.txtin a browser and confirm that you get the text file. - ChatGPT-User is different. You can write a rule for it, but OpenAI says robots.txt rules may not apply to visits a person starts. If such a block has to hold, enforce it in your firewall.
How we set this up on groveoo.com
Our own robots.txt names GPTBot, OAI-SearchBot and ChatGPT-User in one group, together with thirteen other AI crawlers, and that group ends with Allow: /. So all three OpenAI agents are welcome on the public site, training included. The group repeats the Disallow lines from our general group, which cover application folders such as /backend/, decorative image and video files, and paginated blog listings, because a named group replaces the general one.
A comment at the top of the file records how we would close training later: move GPTBot into its own group with Disallow: / and leave OAI-SearchBot and ChatGPT-User where they are. The same comment reminds us to look at Cloudflare when a crawler does not show up, which is the subject of the checks below.
How long a robots.txt change takes
OpenAI's page says it can take about 24 hours from a robots.txt update for its search systems to adjust. That is the time for the new rule to be respected. It is not a promise about when, or whether, a page appears in an answer. OpenAI's crawler page gives no way to request a crawl or submit a page, so after the change the only thing to do is confirm that the crawler can get in.
How to check that ChatGPT can reach your site
Check your CDN and firewall
If your site sits behind Cloudflare, open Security, then Settings, filter by Bot traffic and select AI Crawler and Agent access policies. Cloudflare sorts AI traffic into three behaviors, Search, Agent and Training, and each one can be set to Block, Block on pages with ads or Allow. Search is the behavior that matches OAI-SearchBot's job. Cloudflare's own example of an Agent is ChatGPT-User.
Do not assume a default. Cloudflare's documentation page, last modified on November 2, 2026, says new domains start with all three set to Allow. Its changelog of July 1, 2026, said that from September 15 new domains would block Training and Agent traffic on pages that display ads, with Search still allowed. The two do not agree, so read what your own zone says.
Cloudflare's AI Crawl Control works crawler by crawler. Its table shows each AI crawler that has asked for your pages, the allowed and unsuccessful requests, the robots.txt violations, and an Allow or Block action. Cloudflare notes that unsuccessful requests can come from any rule, so a crawler set to Allow there can still be stopped by another firewall rule. On other hosts, look for settings named bot protection or AI bots in the hosting panel and in any security plugin.
Look for the crawler in your server logs
Search your access log for OAI-SearchBot. OpenAI's example user agent string ends with OAI-SearchBot/1.4; +https://openai.com/searchbot, and it warns that the version number may change. When the crawler fetches robots.txt it may add a robots.txt marker to that string. A 200 status on your pages means it got through. A run of 403, 429 or 503 answers means something in front of your site is refusing it.
Confirm the visitor is really OpenAI
A user agent string is easy to fake. OpenAI publishes the IP ranges its crawlers use: https://openai.com/searchbot.json for OAI-SearchBot, https://openai.com/gptbot.json for GPTBot and https://openai.com/chatgpt-user.json for ChatGPT-User. Compare the IP address in the log line with the ranges in the file. OpenAI also recommends allowing requests from those ranges, which matters if your firewall blocks data center traffic by default.
Run a quick test yourself
From a terminal, ask for your home page while using the crawler's name: curl -I -A "Mozilla/5.0; compatible; OAI-SearchBot/1.4; +https://openai.com/searchbot" https://www.example.com/. A 200 answer means no rule blocks that name. A 403 means one does. This is our own rough test and it has a limit: the request comes from your address and not OpenAI's, so a firewall that checks IP ranges may answer you differently from the real crawler. The server log is the stronger evidence.
Keeping a record of the check
Some teams have to show that the check was done, for example a company that wants proof its public announcements can be read by AI search. A workable record has four parts:
- A dated copy of your robots.txt file.
- The log lines for the page in question, with the date, the status code and the IP address, next to the matching range from OpenAI's file.
- A dated note or screenshot of the firewall or CDN setting.
- The answer ChatGPT search gives when asked about the page, saved with the link it cites.
A log line proves that the crawler fetched the page. It does not prove what ChatGPT will say about it, so keep both. This is general information and not compliance advice.
How to see ChatGPT referrals in analytics
Analytics will not show you the crawler, because it is built to count people. What it can show is the people who click a link inside ChatGPT. Google Analytics 4 has grouped these visits since May 13, 2026, according to Google's release notes: when the referrer matches a recognized AI assistant, the medium is set to ai-assistant and the session lands in a default channel called AI Assistant. Open the Traffic acquisition report and look for that channel, then switch to source and medium to see ChatGPT separately from the other assistants.
ChatGPT also tags the links it sends out with utm_source=chatgpt.com, according to industry coverage. TechWyse reported on October 16, 2026, that the tag went missing for several days that month and came back after an analyst said OpenAI had confirmed a bug. OpenAI's publisher FAQ, which described the tag, redirected to an unrelated help article when we tried to open it on December 1, 2026, so we are relying on that coverage.
Expect gaps. A visit that arrives with no referrer and no tag is counted as Direct, so the AI Assistant channel is a floor and not a full count.
Google's AI Mode and AI Overviews are measured differently, and our guide to tracking Google AI Mode in Search Console covers them. For what makes a page worth citing once the crawler can read it, see our post on generative engine optimization. If you would like us to check your robots.txt, firewall and logs for you, our SEO service includes it, and you can reach us through the contact page.
Sources
- OpenAI: overview of OpenAI crawlers (OAI-SearchBot, GPTBot, ChatGPT-User, OAI-AdsBot, the IP range files and the 24-hour note)
- RFC 9309: Robots Exclusion Protocol (how a crawler picks its group, and what an unreachable robots.txt means)
- Cloudflare: AI Crawler and Agent access policies (last modified November 2, 2026)
- Cloudflare changelog: new options to manage AI traffic (July 1, 2026)
- Cloudflare blog: new AI traffic options for all customers (July 1, 2026), which names ChatGPT-User as an Agent
- Cloudflare: manage AI crawlers in AI Crawl Control
- Google Analytics Help: default channel group (the AI Assistant channel)
- Google Analytics Help: what's new (release note of May 13, 2026)
- TechWyse: ChatGPT UTM bug shifted visits into direct traffic (October 16, 2026)
Last checked: December 1, 2026.
Frequently asked questions
How do I allow OAI-SearchBot in robots.txt?
Add a group with the line User-agent: OAI-SearchBot followed by Allow: / on the next line. If your robots.txt does not name OAI-SearchBot at all, it follows your general User-agent: * rules, so a site that is open to all crawlers is already open to it.
Can I block GPTBot and still appear in ChatGPT search?
Yes. OpenAI says the two settings are independent. GPTBot collects content that may be used for training, and OAI-SearchBot is the crawler for ChatGPT search. Disallow GPTBot and allow OAI-SearchBot to stay in search while opting out of training.
How long does a robots.txt change take to reach ChatGPT search?
OpenAI says it can take about 24 hours from a robots.txt update for its search systems to adjust. That is the time for the rule to be respected, not a promise about when a page appears in an answer.
Does ChatGPT-User follow robots.txt?
Not reliably. OpenAI says ChatGPT-User visits are started by a person, so robots.txt rules may not apply. It also says ChatGPT-User is not used to decide whether content appears in search. To block it for certain, use your firewall or CDN.
How do I know if Cloudflare is blocking OAI-SearchBot?
In Cloudflare, open Security, then Settings, filter by Bot traffic and read the AI Crawler and Agent access policies, where Search should be set to Allow. Then check your server logs for OAI-SearchBot requests that received a 200 status, and compare the IP address with the ranges OpenAI publishes.