Block GPTBot robots.txt Template

Add a dedicated GPTBot group with Disallow: /. This blocks OpenAI's training-oriented crawler without automatically blocking OAI-SearchBot or ordinary search engines.

Training crawler route blocked at a website while a separate AI search discovery route remains open

Copy-paste robots.txt example

User-agent: GPTBot
Disallow: /

Copy the minimal GPTBot block

Use this group when you want to tell OpenAI that your site's content should not be collected by GPTBot for possible use in training generative AI foundation models:

User-agent: GPTBot
Disallow: /

Publish the rule in the robots.txt file at the root of the exact host, such as https://example.com/robots.txt. Add the same policy separately to any subdomain that serves content.

What blocking GPTBot changes

OpenAI documents GPTBot as its training-oriented crawler. Disallowing it expresses that future crawls of the affected URLs should not be used for training OpenAI's generative AI foundation models. The rule applies to compliant GPTBot requests after OpenAI has refreshed its robots.txt policy.

This setting does not remove material that was collected previously, resolve contractual questions, or stop a requester that ignores robots.txt. It also does not protect confidential content. Keep anything private behind authentication and server-side authorization.

GPTBot is independent from ChatGPT search

OAI-SearchBot is a separate OpenAI token used to surface websites in ChatGPT search features. Blocking GPTBot does not require blocking OAI-SearchBot. If your goal is “allow search, block training,” you can make that intent explicit:

User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Allow: /

ChatGPT-User is different again. It can fetch a page because a ChatGPT user or Custom GPT requested it, and OpenAI states that robots.txt rules may not apply to those user-initiated actions.

Block only part of the site

Replace the root slash with stable path rules when only certain areas should be excluded:

User-agent: GPTBot
Disallow: /members/
Disallow: /licensed-archive/
Allow: /public/

Do not list a sensitive path merely to hide it. Robots.txt is public and can reveal the path name. Enforce access restrictions at the server before relying on crawler instructions.

Avoid common configuration mistakes

Do not combine GPTBot and OAI-SearchBot on one User-agent: line or assume that a company-wide name will match every OpenAI product. Keep each token in its own group so the intent remains auditable. Also check whether a CDN, hosting panel, or framework generates a virtual robots.txt response that overrides the file you edited. The public response—not the local filename—is what the crawler reads.

Check the published result

  1. Open the public robots.txt URL and confirm it returns plain text successfully.
  2. Test both the homepage and a representative restricted URL with the checker.
  3. Make sure an existing User-agent: * group has not accidentally blocked ordinary search crawlers.
  4. Review logs using the full user-agent string and OpenAI's published IP ranges when you need to verify real GPTBot traffic.

For a full policy rather than a one-bot rule, see the GPTBot vs OAI-SearchBot guide and the selective template.

FAQ

Does blocking GPTBot block ChatGPT search?

No. OpenAI documents OAI-SearchBot as an independent search crawler. Keep OAI-SearchBot allowed if you want your pages eligible for ChatGPT search discovery.

Does blocking GPTBot remove previously collected content?

The robots.txt rule controls future compliant crawling. It does not by itself remove content collected before the rule was published.

How long does a GPTBot robots.txt change take to apply?

Provider systems need time to refresh robots.txt. OpenAI notes an adjustment period for crawler settings, so verify the public file and allow time for the change to propagate.

Can I block GPTBot only from selected directories?

Yes. Use path-specific Disallow rules for stable content areas, but protect genuinely private material with authentication rather than relying on a public path list.

Does GPTBot obey a wildcard group?

A wildcard group can apply when there is no more specific matching GPTBot group, but a dedicated GPTBot group is clearer and prevents accidental policy changes when other rules are edited.

Related tools

Related pages

Website blocking an AI training crawler while keeping a separate search discovery route open GPTBot robots.txt Guide

GPTBot is OpenAI’s automated crawler for content that may be used to improve and train generative AI foundation models. To opt a site out of future GPTBot crawling, add a specific GPTBot group to robots.txt. This setting is separate from OAI-SearchBot and ChatGPT-User.

Separate GPTBot training and OAI-SearchBot search routes with independent website access controls GPTBot vs OAI-SearchBot: Training vs Search

GPTBot and OAI-SearchBot are separate OpenAI crawler controls. GPTBot crawls content that may be used to improve and train OpenAI’s generative AI foundation models; OAI-SearchBot discovers pages for ChatGPT search results. You can block one and allow the other.

Website selectively blocking AI training crawler routes while keeping search discovery routes open How to Block AI Crawlers with robots.txt

To block an AI crawler, add a group for its exact User-agent token and use Disallow: /. Block only the crawler purposes you intend to restrict, keep ordinary search crawlers open when visibility matters, and remember that robots.txt is a request to compliant bots rather than a security control.

Website allowing an AI search discovery route while blocking a separate model-training route How to Allow AI Search but Block AI Training

Use separate User-agent groups for each purpose: allow AI search crawlers such as OAI-SearchBot and Claude-SearchBot, while disallowing training-oriented crawlers such as GPTBot and ClaudeBot. These controls are independent, so do not block an entire provider when your goal is only to opt out of training.

Robots.txt checker inspecting a website and reporting allowed and blocked crawler access Robots.txt Checker for AI Crawlers

Enter a domain, choose a crawler, and test a path. The checker downloads the live robots.txt file, finds the applicable User-agent group and most specific rule, then explains whether access is allowed or blocked.