GPTBot: What It Is, How to Block It, and How to Stay in ChatGPT Search
If you have looked at your server logs recently, you have probably seen a user agent called GPTBot. It is OpenAI's crawler, and a lot of site owners block it on reflex. That can be the right call, but many people block the wrong bot, or block all of OpenAI's bots at once, and then wonder why their site never shows up as a source in ChatGPT search.
This guide explains what GPTBot does, how it differs from OpenAI's other crawlers, and how to write robots.txt rules that match what you actually want. All crawler details below come from OpenAI's crawler documentation as published at the time of writing, so check the source before you change production rules.
What GPTBot is
GPTBot is the crawler OpenAI uses to collect content that may be used to train its generative AI foundation models. That is its only job. According to OpenAI, disallowing GPTBot in robots.txt signals that your site's content should not be used for training.
Its user agent string currently looks like this:
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot
The version number can change, so match on the token GPTBot rather than the full string. OpenAI also publishes the IP ranges GPTBot uses at https://openai.com/gptbot.json, which is useful if you want to verify that a request claiming to be GPTBot really comes from OpenAI.
GPTBot is not the bot that puts you in ChatGPT search
This is the part most robots.txt guides skip. OpenAI runs several crawlers, and each one is controlled separately:
| Crawler | What it does | Does robots.txt control it? |
|---|---|---|
| GPTBot | Collects content that may be used to train OpenAI's foundation models | Yes, for training use |
| OAI-SearchBot | Surfaces websites in ChatGPT's search features | Yes, for search appearance |
| ChatGPT-User | Fetches pages when a user's request in ChatGPT or a Custom GPT needs it | Rules may not apply, because a user triggers the visit |
| OAI-AdsBot | Checks landing pages submitted as ads on ChatGPT | Visits only pages submitted as ads |
OpenAI states that each setting is independent. You can allow OAI-SearchBot so your pages can appear in ChatGPT search answers while disallowing GPTBot so your content is not used for training. If you allow both, OpenAI says it may use a single crawl for both purposes.
So the decision is really two decisions:
- Do you want your content used to train OpenAI's models? That is GPTBot.
- Do you want your pages to appear as sources in ChatGPT search? That is OAI-SearchBot.
If you block OAI-SearchBot, OpenAI says your site will not appear in ChatGPT search answers, although it can still show up as a navigational link. For most businesses that want traffic and citations from AI search, blocking OAI-SearchBot is the expensive mistake, not allowing GPTBot.
Should you block GPTBot?
There is no universal answer. Here is a practical way to decide.
Reasons to allow GPTBot
- You publish marketing content, documentation or guides whose whole purpose is to spread your brand and explain your product.
- You want the broadest possible presence in AI systems and are comfortable with training use.
- You prefer one simple rule set with fewer exceptions to maintain.
Reasons to block GPTBot
- Your content is the product: paid research, premium courses, original datasets, journalism or anything you license.
- You have legal, contractual or client obligations about how content is reused.
- Your organization has a policy against AI training on its material.
A common middle ground is to block GPTBot on premium or gated sections while allowing it on public marketing pages, and to allow OAI-SearchBot everywhere you want to be found.
Whatever you choose, write the decision down. Robots.txt files get edited by developers, plugins and CMS migrations, and a policy that only lives in one person's head tends to drift.
Robots.txt examples
Robots.txt rules are grouped by user agent. A crawler follows the most specific group that names it, so a group for GPTBot overrides your User-agent: * rules for GPTBot.
Block GPTBot, keep ChatGPT search
User-agent: GPTBot
Disallow: /
User-agent: OAI-SearchBot
Allow: /
Block GPTBot only on premium sections
User-agent: GPTBot
Disallow: /members/
Disallow: /research/
Allow: /
Allow everything from OpenAI
You do not need special rules for this. If your User-agent: * group allows the paths you care about and nothing blocks GPTBot or OAI-SearchBot by name, they can crawl. Adding explicit groups can still help, because it makes the intent obvious to the next person who edits the file.
What to avoid
User-agent: *
Disallow: /
This blocks every crawler that respects robots.txt, including search engines, OAI-SearchBot and GPTBot. It sometimes ships to production by accident when a staging site's robots.txt is copied over.
How to check what is happening today
Before you change anything, find out what your site currently does.
Step 1: Read your live robots.txt
Open yourdomain.com/robots.txt in a browser. Look for groups that name GPTBot, OAI-SearchBot or ChatGPT-User, and for a wildcard group that blocks everything. If you use WordPress, Shopify, Wix or another platform, some of these rules may be generated by a plugin or a platform setting rather than a file you edited.
Step 2: Check your server or CDN logs
Search your access logs for the GPTBot and OAI-SearchBot tokens. Note which URLs they request and what status codes they get. A bot that only ever receives 403 responses is being blocked somewhere, often by a firewall or bot-protection rule rather than robots.txt.
Step 3: Verify the IPs
Anyone can put "GPTBot" in a user agent. Compare the requesting IPs with the ranges OpenAI publishes at https://openai.com/gptbot.json and https://openai.com/searchbot.json. If they do not match, the traffic is not from OpenAI, and you can treat it like any other unknown bot.
Step 4: Check firewall and CDN bot settings
Many CDNs and security tools have one-click options to block AI crawlers. These work independently of robots.txt and often group several companies' bots together. If you want to appear in ChatGPT search, make sure such a setting is not silently blocking OAI-SearchBot.
Step 5: Make the change and wait
OpenAI notes that search changes can take about 24 hours to take effect after you update robots.txt. Do not judge the result the same afternoon.
GPTBot, AI visibility and your wider SEO work
Robots.txt only controls access. Being allowed to crawl does not mean ChatGPT will cite you. Citations depend on whether your pages answer the questions people ask, whether they are easy to parse, and whether other sources reinforce what you say.
A sensible order of work looks like this:
- Make sure crawlers can reach your important pages. A technical audit catches indexability problems, broken canonicals and missing titles that hurt both Google and AI search. The VibeSEO site audit surfaces indexability and on-page issues ranked for action.
- Decide your GPTBot and OAI-SearchBot policy using the questions above, then write the robots.txt rules.
- Publish pages that answer real questions in clear sections with direct answers near the top.
- Measure whether AI answers mention you. Without tracking, you cannot tell whether a crawler change or a new article made any difference. VibeSEO's generative engine optimization tracking checks AI answers across ChatGPT, Gemini, AI Overviews and AI Mode, including which competitors and sources get cited.
If you already work inside ChatGPT, the VibeSEO ChatGPT app lets you run the same research and tracking from there, with the same approval gate: nothing publishes until you approve it.
Common mistakes
- Blocking "all AI bots" with one rule. Training crawlers, search crawlers and user-triggered fetchers do different jobs. Treat them separately.
- Assuming robots.txt removes content already collected. A disallow rule signals your preference going forward. It is not a deletion request.
- Relying on robots.txt for private content. Robots.txt is public and voluntary. Anything confidential needs authentication, not a disallow line.
- Forgetting ChatGPT-User. OpenAI says this agent is used for actions a user initiates and that robots.txt rules may not apply to it. If you need to restrict those visits, that is a job for access controls.
- Never revisiting the decision. Crawler names, versions and policies change. Put a reminder in your calendar to recheck OpenAI's documentation and your logs every few months.
The short version
GPTBot is OpenAI's training crawler. Blocking it tells OpenAI not to use your content for training, and it does not by itself remove you from ChatGPT search. OAI-SearchBot is the crawler that decides whether your pages can appear in ChatGPT search answers, so most businesses that want AI visibility should keep it allowed. Check your robots.txt, your logs and your CDN settings, make a written decision, and then measure whether AI answers actually mention you.
Want to see where your site stands in Google and AI search? Start free with VibeSEO and get a personalized growth plan before checkout, no card required to view it.
Frequently asked questions
What is GPTBot?
GPTBot is the web crawler OpenAI uses to collect content that may be used to train its generative AI foundation models. Its user agent contains the token GPTBot, and OpenAI publishes its IP ranges at openai.com/gptbot.json.
Does blocking GPTBot remove my site from ChatGPT search?
Not by itself. OpenAI says ChatGPT search appearance is controlled by OAI-SearchBot, and each robots.txt setting is independent. You can disallow GPTBot and still allow OAI-SearchBot.
How do I block GPTBot in robots.txt?
Add a group with User-agent: GPTBot followed by Disallow: / to block it site-wide, or Disallow lines for specific folders. Keep a separate group allowing OAI-SearchBot if you want to appear in ChatGPT search.
How long do robots.txt changes take to apply to OpenAI crawlers?
OpenAI notes that search changes can take about 24 hours to take effect after you update robots.txt.
How can I tell if a request really comes from GPTBot?
Compare the requesting IP address with the ranges OpenAI publishes at openai.com/gptbot.json. Anyone can fake the user agent string, but not the published IP ranges.