# GPTBot robots.txt rules and what blocking it does

> A GPTBot Disallow rule in robots.txt opts a site out of OpenAI model training. It does not block OAI-SearchBot or ChatGPT-User.

Canonical: https://promptlyfound.com/crawlers/gptbot
Updated: 2026-11-23

## Short answer

Blocking GPTBot is the training decision for OpenAI, and it can be made without touching ChatGPT search. **Disallow GPTBot in robots.txt to indicate that a site's content should not be used to train OpenAI's foundation models.** The rule is independent of OAI-SearchBot, so a site can opt out of training and stay available to ChatGPT search. OpenAI publishes the IP addresses that GPTBot uses.

## Key findings

- Disallowing GPTBot indicates that a site's content should not be used in training OpenAI's generative AI foundation models. [1]
- GPTBot and OAI-SearchBot are independent robots.txt settings. A site can allow OAI-SearchBot and disallow GPTBot. [1]
- If a site allows both GPTBot and OAI-SearchBot, OpenAI may use the results of one crawl for both uses. [1]
- OpenAI publishes the IP addresses that GPTBot uses. [2]
- GPTBot follows a User-agent: * group only when no group in the file names GPTBot. A crawler that finds a group with its own token obeys that group. [3]

This robots.txt group disallows GPTBot on the whole site:[1]

```
User-agent: GPTBot
Disallow: /
```

## What blocking it does

A GPTBot rule covers model training. According to [OpenAI's crawler documentation](https://developers.openai.com/api/docs/bots), a robots.txt rule that disallows GPTBot indicates that the site's content should not be used to train OpenAI's generative AI foundation models.[1] OpenAI states no effect on search for this rule, so the decision can rest on the training question alone. The guide to [LLM training data](https://promptlyfound.com/llms/training-data) shows what a crawled web page looks like in a training set.

Other OpenAI bots handle search visibility. OAI-SearchBot surfaces sites in ChatGPT's search features, and ChatGPT-User visits a page when a person asks ChatGPT a question. OpenAI says each robots.txt setting is independent of the others.[1] If a site allows both GPTBot and OAI-SearchBot, OpenAI may use the results of one crawl for both uses.[1]

## robots.txt rules

To keep content out of training and stay available to ChatGPT search, block GPTBot and allow OAI-SearchBot:

```
User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Allow: /
```

To keep GPTBot out of some folders only, list each path in the GPTBot group:

```
User-agent: GPTBot
Disallow: /members/
Disallow: /drafts/
```

GPTBot follows the `User-agent: *` group only when no group names GPTBot. A crawler that finds a group with its own token obeys that group and ignores the `*` group, according to [RFC 9309, the Robots Exclusion Protocol](https://www.rfc-editor.org/rfc/rfc9309.html).[3] A GPTBot group therefore needs its own copy of any `*` rules that should also apply to GPTBot. Within the group, the longest matching path wins.[3] [How to block AI crawlers](https://promptlyfound.com/crawlers/block-ai-crawlers) gives the rules for other AI bots and the CDN rules for bots that ignore robots.txt.

OpenAI's page does not mention Crawl-delay.

## Verify a request

Any client can send "GPTBot" in its user agent, so the IP address is the check. OpenAI publishes an example user agent string and says the version number may change. When GPTBot fetches robots.txt, it may add a "robots.txt" marker to the string.[1] OpenAI also publishes [the IP addresses that GPTBot uses](https://openai.com/gptbot.json), so compare the request's address with that list.[2]

## Sources

1. Overview of OpenAI Crawlers. OpenAI. https://developers.openai.com/api/docs/bots
2. GPTBot IP addresses. OpenAI. https://openai.com/gptbot.json
3. RFC 9309: Robots Exclusion Protocol. IETF, 2022-09-01. https://www.rfc-editor.org/rfc/rfc9309.html

---

This is a plain-text copy of https://promptlyfound.com/crawlers/gptbot from Promptly Found. The web page is the canonical version and includes the charts.
