GPTBot

GPTBot is OpenAI's AI training crawler. Collects content that may train OpenAI models. Blocking it does not affect ChatGPT search.

robots.txt token
GPTBot
Operator
OpenAI
Type
Training
Follows robots.txt
Yes, according to OpenAI.

Should I block GPTBot?

Blocking GPTBot is a reasonable choice either way: it opts your content out of OpenAI's model training and nothing else. It does not affect OAI-SearchBot, which OpenAI uses for search, so your pages can still be found and cited.

Deciding which AI bots to allow? Our guide robots.txt for AI crawlers compares them and has ready-made rules.

How do I block GPTBot?

To block GPTBot, add a group for it to the robots.txt file at the root of your site, as shown below. Disallow: / covers every page; use a path such as /private/ instead to block only part of the site.

User-agent: GPTBot
Disallow: /

How do I allow GPTBot?

GPTBot is allowed by default: with no group for GPTBot in your robots.txt, it follows the User-agent: * group and may fetch any page that group doesn't disallow. To allow it explicitly, add the group below. A group that names GPTBot replaces the * rules for it entirely, so copy into it any Disallow lines you still want it to follow. Also check your CDN: Cloudflare, for example, blocks many AI crawlers by default on new sites, whatever robots.txt says.

User-agent: GPTBot
Allow: /

How can I tell a request is really GPTBot?

Check the IP address, not the user agent: anyone can send a user agent that says GPTBot. OpenAI publishes the IP addresses GPTBot requests come from, so compare each request's IP against that list (linked below) and refresh your copy regularly, because the list changes.

OpenAI's IP list for GPTBot (opens in a new tab)

How does robots.txt decide whether GPTBot may fetch a page?

A crawler that follows the standard picks the group whose User-agent line matches its token, GPTBot, ignoring case, and uses the * group only when no group names it. Within that group, the rule with the longest matching path wins, and when an Allow and a Disallow rule match equally, the Allow rule wins. Crawlers must read at least 500 KiB of the file and follow at least 5 redirects to reach it.

According to RFC 9309 (opens in a new tab), the robots.txt standard published by the IETF in September 2022.

When does a robots.txt change take effect for GPTBot?

Not instantly, because crawlers keep a cached copy of robots.txt. The standard says a cached copy should not be used for more than 24 hours, so allow at least a day before checking your logs for GPTBot. If robots.txt returns a 4xx error such as 404, crawlers may fetch anything; if it returns a 5xx server error, they must treat the whole site as disallowed, for up to 30 days.

According to RFC 9309 (opens in a new tab), the robots.txt standard published by the IETF in September 2022.

Does your site block GPTBot?

Robots.txt is only half the answer: a firewall, CDN or bot-protection rule can turn GPTBot away even when robots.txt allows it, and a rule written for another bot can catch it by accident. Scan a page to see what your robots.txt says to GPTBot and 27 other crawlers for that exact page, with the line that decides it. The report also sends one request that identifies as OAI-SearchBot (when robots.txt allows it), to show whether your CDN treats AI crawlers differently.

Other OpenAI crawlers

More AI training crawlers

Sources

The details on this page were checked on 12 November 2026 against the documentation published by OpenAI (opens in a new tab). The robots.txt rules follow RFC 9309 (opens in a new tab).