Guide
GPTBot: what it does, and how to allow or block it in robots.txt
Updated
GPTBot is OpenAI's training crawler: it collects pages that may be used to train OpenAI's generative AI models. To keep a site out of that training, add a User-agent: GPTBot group with Disallow: / to robots.txt. Blocking GPTBot does not remove a site from ChatGPT search, which relies on a different crawler, OAI-SearchBot.
Written by Mattéo Springmann, who makes Lumi GEO, the Chrome extension mentioned at the end. Everything below works without it. Facts checked on November 12, 2026 in OpenAI's crawler documentation and RFC 9309 (sources at the bottom).
What does GPTBot do?
OpenAI's documentation says GPTBot is used to crawl content that may be used in training its generative AI foundation models, and that disallowing GPTBot "indicates a site's content should not be used in training". OpenAI runs other robots for other jobs, and each one is set separately:
| Robot (user agent) | Its job | Where to read more |
|---|---|---|
GPTBot | Collects content that may train OpenAI's models | This page |
OAI-SearchBot | Finds pages for ChatGPT's search answers | The OAI-SearchBot guide |
ChatGPT-User | Opens a page when someone asks ChatGPT about it | The ChatGPT-User guide |
When a site allows both GPTBot and OAI-SearchBot, OpenAI says it may use the results of one crawl for both uses, to avoid crawling twice.
How to block GPTBot
Add this group to the robots.txt file at the root of the site, for example https://example.com/robots.txt:
User-agent: GPTBot
Disallow: /To block only part of the site, list the folders instead of /:
User-agent: GPTBot
Disallow: /blog/
Disallow: /docs/To stay out of training but keep appearing in ChatGPT search, which is a choice OpenAI documents, name both robots:
User-agent: GPTBot
Disallow: /
User-agent: OAI-SearchBot
Allow: /OpenAI's documentation does not say what happens to content collected before you change the file. Read the rule as a signal for what GPTBot collects from now on.
How to allow GPTBot
A site with no robots.txt, or with no rule that applies to GPTBot, already lets it in. You only need a group if something else blocks it, typically a Disallow: / under User-agent: *:
User-agent: GPTBot
Allow: /The traps that make a GPTBot rule fail
Naming a robot cancels the * group for it
This is the most common mistake. When robots.txt has a group for GPTBot, GPTBot follows that group only. Nothing from the User-agent: * group carries over (RFC 9309, section 2.2.1). So this file opens the private folder to GPTBot:
User-agent: *
Disallow: /private/
User-agent: GPTBot
Allow: /If a folder must stay closed, repeat its Disallow line in the GPTBot group.
A misspelled name matches nothing
Robots match their group by name, without caring about upper or lower case (RFC 9309). gptbot works; GPT-Bot or GPTBot/1.4 do not, and GPTBot then falls back to the * group.
Two groups for the same robot are merged
If GPTBot is named in two places, its rules are combined into one group (RFC 9309). A forgotten Allow in an old block can still apply.
A broken robots.txt blocks everything
If robots.txt answers with a server error (500 to 599), RFC 9309 tells crawlers to treat the whole site as disallowed. A missing file (404) means everything is allowed.
robots.txt is a request, not a lock
It tells well-behaved robots what you prefer. A firewall, a CDN setting or a security plugin is what actually refuses a visit. On Cloudflare, as of November 7, 2026, the AI crawler policies have a Training setting, and Cloudflare notes that it applies to crawlers used for both search and training: a strict setting there can reach further than GPTBot alone.
How to check that your rule works
- Open
https://your-domain/robots.txtand find the group that applies to GPTBot: aUser-agent: GPTBotline, otherwise the*group. - In that group, the longest matching path wins; if an
Allowand aDisalloware equally long,Allowwins (RFC 9309). - In your server logs, search for
GPTBot. Anyone can fake a user agent, so compare the visiting IP addresses with OpenAI's published list athttps://openai.com/gptbot.json. OpenAI says it may add arobots.txtmarker to the user agent when it fetches that file.
How many websites block GPTBot?
The share of popular websites that block GPTBot, and how many of them name it in a rule, is measured in the Lumi GEO AI Crawler Access Index, with the method and the raw data.
Checking every AI crawler at once (the tool I make)
Lumi GEO, the free Chrome extension I make, reads the robots.txt rules that apply to GPTBot and 13 other AI crawlers on the page you are on, and shows the line that decides. Like a robots.txt reader, it cannot see firewall or CDN blocks. Get it on the Chrome Web Store.
Frequently asked questions
Does blocking GPTBot remove my site from ChatGPT?
No. ChatGPT search relies on OAI-SearchBot, and OpenAI says the two settings are independent. You can block GPTBot and still allow OAI-SearchBot.
What is the robots.txt rule to block GPTBot?
A group with User-agent: GPTBot followed by Disallow: /. To block only some folders, write one Disallow line per folder instead.
Does GPTBot respect robots.txt?
OpenAI documents GPTBot as a robots.txt user agent and says disallowing it signals that a site's content should not be used for training. A robots.txt file cannot enforce that: only server or CDN rules can refuse a request.
How can I tell a real GPTBot visit from a fake one?
Compare the IP address of the visit with the list OpenAI publishes at https://openai.com/gptbot.json. The user agent alone proves nothing.
Sources (checked on November 12, 2026)
- OpenAI, Overview of OpenAI Crawlers: the user agents, what each one does, the independent settings, the user-agent strings and the IP lists.
- IETF, RFC 9309, Robots Exclusion Protocol, September 2022: group matching, the
*group, combined groups, server errors and the 24-hour cache. - Cloudflare, AI Crawler and Agent access policies, updated November 2, 2026, checked on November 7, 2026: the Training setting.