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.

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

User-agent: GPTBot Disallow: /
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.
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.
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.
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.
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.
User-agent: * group has not accidentally blocked ordinary search crawlers.For a full policy rather than a one-bot rule, see the GPTBot vs OAI-SearchBot guide and the selective template.
No. OpenAI documents OAI-SearchBot as an independent search crawler. Keep OAI-SearchBot allowed if you want your pages eligible for ChatGPT search discovery.
The robots.txt rule controls future compliant crawling. It does not by itself remove content collected before the rule was published.
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.
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.
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.
GPTBot robots.txt GuideGPTBot 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.
GPTBot vs OAI-SearchBot: Training vs SearchGPTBot 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.
How to Block AI Crawlers with robots.txtTo 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.
How to Allow AI Search but Block AI TrainingUse 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 for AI CrawlersEnter 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.