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.

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.

User-agent: GPTBot Disallow: / User-agent: OAI-SearchBot Disallow: / User-agent: ChatGPT-User Disallow: / User-agent: * Allow: /
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 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 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 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.
Many public sites do not need the full block. Common alternatives are:
The GPTBot vs OAI-SearchBot comparison explains the trade-off, and the selective template provides a less restrictive configuration.
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.
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.
It addresses GPTBot for training-oriented crawling, OAI-SearchBot for ChatGPT search discovery, and ChatGPT-User for certain user-initiated page visits.
Yes. Disallow GPTBot and allow OAI-SearchBot. OpenAI documents those controls as independent settings.
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.
OpenAI says opted-out sites will not be shown in ChatGPT search answers, though they may still appear as navigational links.
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.
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.
OAI-SearchBot robots.txt GuideOAI-SearchBot is OpenAI’s crawler for surfacing websites in ChatGPT search features. Allowing it helps OpenAI discover and cite your public pages. Its robots.txt setting is independent from GPTBot, so a site can allow search crawling while opting out of training crawling.
ChatGPT-User robots.txt GuideChatGPT-User identifies certain web requests initiated by a person using ChatGPT, a Custom GPT, or an external action. It is not OpenAI’s automatic search or training crawler. OpenAI notes that robots.txt rules may not apply to these user-triggered requests, so private content requires real access controls.
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.
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.