Block OpenAI Crawlers robots.txt Template

For the broadest OpenAI robots.txt preference, disallow GPTBot, OAI-SearchBot, and ChatGPT-User separately. Expect loss of ChatGPT search visibility and use server controls for user-requested access.

Website blocking separate OpenAI training, search, and user-request access routes at one policy boundary

Copy-paste robots.txt example

User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Disallow: /

User-agent: ChatGPT-User
Disallow: /

User-agent: *
Allow: /

Strict OpenAI robots.txt preference

OpenAI publishes three relevant user-agent identities with different purposes. The following template expresses the broadest robots.txt preference by disallowing all three while leaving unrelated crawlers open:

User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Disallow: /

User-agent: ChatGPT-User
Disallow: /

User-agent: *
Allow: /

Use this only when you are prepared to give up OpenAI training crawls and ChatGPT search discovery. The ChatGPT-User group records a preference, but user-initiated fetches need additional controls because OpenAI states that robots.txt may not apply to them.

GPTBot: model-training collection

GPTBot is used to crawl content that may contribute to OpenAI's generative AI foundation-model training. Blocking this token is the targeted option when training is your only concern. It does not automatically block ChatGPT search.

OAI-SearchBot: ChatGPT search visibility

OAI-SearchBot is used to surface sites in ChatGPT search features. Disallowing it can prevent pages from being shown in ChatGPT search answers, although navigational links may still appear. OpenAI treats this setting independently from GPTBot, so you can block one and allow the other.

ChatGPT-User: user-initiated access

ChatGPT-User can visit a page because a person asked ChatGPT or a Custom GPT to access it. It is not an automatic search crawler and does not determine search inclusion. OpenAI notes that robots.txt rules may not apply to these user actions. If a page must not be retrieved, require authentication or enforce access at the application, server, CDN, or WAF layer.

Choose a narrower policy when possible

Many public sites do not need the full block. Common alternatives are:

  • Block training only: disallow GPTBot and allow OAI-SearchBot.
  • Block ChatGPT search only: disallow OAI-SearchBot while making a separate decision about GPTBot.
  • Protect selected areas: use path-specific rules and real authorization for private content.

The GPTBot vs OAI-SearchBot comparison explains the trade-off, and the selective template provides a less restrictive configuration.

Merge the rules with the existing file

Do not upload the sample as a blind replacement if the site already has path restrictions, sitemap declarations, or crawler-specific allowances. Merge the three OpenAI groups into the current file, remove duplicate groups, and confirm that the final response still represents the intended policy for Googlebot, Bingbot, images, and other assets.

Publish and verify the file

  1. Merge the groups into the existing robots.txt file at the host root.
  2. Preserve sitemap lines and unrelated crawler rules that are still needed.
  3. Test the homepage and representative paths for each OpenAI token with the checker.
  4. Allow time for OpenAI systems to refresh the policy.
  5. Use official IP-range data when verifying whether logged requests are genuine.

This template does not include OAI-AdsBot, which OpenAI documents for validating landing pages submitted as ChatGPT ads rather than general automatic crawling of a public site.

FAQ

Which OpenAI agents does this template address?

It addresses GPTBot for training-oriented crawling, OAI-SearchBot for ChatGPT search discovery, and ChatGPT-User for certain user-initiated page visits.

Can I block training but stay visible in ChatGPT search?

Yes. Disallow GPTBot and allow OAI-SearchBot. OpenAI documents those controls as independent settings.

Will ChatGPT-User always obey this robots.txt rule?

Not necessarily. OpenAI states that robots.txt may not apply because ChatGPT-User actions are initiated by a user. Use authentication and server-side enforcement for restricted content.

Does blocking OAI-SearchBot remove every link to my site from ChatGPT?

OpenAI says opted-out sites will not be shown in ChatGPT search answers, though they may still appear as navigational links.

Why is OAI-AdsBot not included?

OAI-AdsBot is documented for validating web pages submitted as ChatGPT ad landing pages. It is not part of the normal training, search, or user-request crawler set covered by this template.

Related tools

Related pages