GPTBot is probably the best-known AI crawler, and it is often confused with the other bots OpenAI runs. It is worth getting the difference right, because blocking the wrong one can take you out of ChatGPT search without you meaning to.
GPTBot and OpenAI's other bots
OpenAI documents several user agents on its crawler page (opens in a new tab). Each has its own robots.txt token, so you can treat them separately:
| Bot | Purpose | Started by |
|---|---|---|
| GPTBot | Crawls content that may be used to train OpenAI's foundation models | OpenAI's schedule |
| OAI-SearchBot | Finds pages so they can be shown and linked in ChatGPT search | OpenAI's schedule |
| ChatGPT-User | Opens a page when a ChatGPT user or a custom GPT needs it to answer | A person |
Blocking GPTBot does not remove you from ChatGPT search; that is OAI-SearchBot's job. It signals that your pages should not be used for training.
How to allow or block GPTBot
Add a group for it to the robots.txt file at the root of your site:
User-agent: GPTBot
Disallow: /
User-agent: OAI-SearchBot
Allow: /This example refuses training and allows search. To block only part of the site, disallow a path instead, such as Disallow: /members/. Robots.txt is a request, not a lock: well-behaved crawlers follow it, and the Robots Exclusion Protocol (opens in a new tab) itself says the rules are not a form of access authorisation. Read more in What is robots.txt?.
How to tell whether a GPTBot request is genuine
Anyone can send a request whose user agent says GPTBot. OpenAI publishes the IP ranges GPTBot uses (gptbot.json). Reveata downloads that list once a day and checks each GPTBot request against it:
- Verified: the address is inside OpenAI's published ranges.
- Spoofed: the address is outside them, so something is pretending to be GPTBot.
- Unverifiable: no usable address was available, for example a forwarded request without its
ip.
The IP address is compared in memory and never stored. See Crawler verification.
Seeing GPTBot in Reveata
GPTBot fetches HTML and does not run your tracking script, so the script alone will rarely see it. Forward requests from your server with Forward crawler requests, and GPTBot appears on the Bot traffic page with how many pages it read, which pages, and when it was last seen. It is stored as a bot hit, never as a visitor. On the same page you can mark it as blocked and copy the robots.txt lines Reveata writes for you.
Common mistakes
- Blocking
User-agent: *to stop GPTBot, which also blocks search engines. - Assuming that blocking GPTBot removes content OpenAI already collected. Robots.txt applies to future crawling.
- Treating every request named GPTBot as OpenAI. Check the verified and spoofed counts first.