robots.txt and AI crawlers: which to allow, which to block

Last updated: 14 November 2026

Request a free draft

What happens next?

  1. Free draft
  2. Fixed-price quote
  3. Review and approve
Contents (8)
  1. Which crawlers must I allow to appear in Google and ChatGPT?
  2. Will blocking GPTBot remove me from ChatGPT?
  3. What does Google-Extended do, and should I block it?
  4. How do I write a robots.txt for AI crawlers?
  5. What changes in 2027 for AI training?
  6. Common mistakes
  7. Frequently asked questions
  8. How Sharpsoft does it

In short: robots.txt tells crawlers which pages they may fetch. To be named by Google, Bing, ChatGPT, Claude and Perplexity, allow their search crawlers. You can block the training crawlers GPTBot and ClaudeBot without dropping out of those searches; at Google, however, training and the Gemini app share one switch. Why this matters is explained in Get found in AI answers.

Which crawlers must I allow to appear in Google and ChatGPT?

The search crawlers: Googlebot for Google Search including AI Overviews, Bingbot for Bing and Copilot, OAI-SearchBot for ChatGPT search, Claude-SearchBot for Claude and PerplexityBot for Perplexity. One rule that allows everyone is simplest. If your file says Disallow: / under User-agent: *, every crawler is locked out, Google included.

Name in robots.txtPurposeIf blocked
GooglebotGoogle Search, including AI Overviews and AI Modemissing from Google Search; the URL may appear without a description
Google-Extendedno crawler of its own: Gemini training, source for the Gemini app and Vertex AIthe Gemini app stops using your pages as a source; Search and ranking unchanged
BingbotBing search, the basis for CopilotBing can't read your pages
OAI-SearchBotChatGPT searchnot shown in ChatGPT search answers, at most as a navigational link
GPTBotOpenAI trainingcontent should not be used for training
Claude-SearchBotsearch in Claudeless visible in search results, says Anthropic
ClaudeBotAnthropic trainingfuture content excluded from training
PerplexityBotPerplexity search, no trainingPerplexity advises allowing it to appear in results
Name in robots.txt
Googlebot
Purpose
Google Search, including AI Overviews and AI Mode
If blocked
missing from Google Search; the URL may appear without a description
Name in robots.txt
Google-Extended
Purpose
no crawler of its own: Gemini training, source for the Gemini app and Vertex AI
If blocked
the Gemini app stops using your pages as a source; Search and ranking unchanged
Name in robots.txt
Bingbot
Purpose
Bing search, the basis for Copilot
If blocked
Bing can't read your pages
Name in robots.txt
OAI-SearchBot
Purpose
ChatGPT search
If blocked
not shown in ChatGPT search answers, at most as a navigational link
Name in robots.txt
GPTBot
Purpose
OpenAI training
If blocked
content should not be used for training
Name in robots.txt
Claude-SearchBot
Purpose
search in Claude
If blocked
less visible in search results, says Anthropic
Name in robots.txt
ClaudeBot
Purpose
Anthropic training
If blocked
future content excluded from training
Name in robots.txt
PerplexityBot
Purpose
Perplexity search, no training
If blocked
Perplexity advises allowing it to appear in results

Sources: Google, Google on robots.txt, Bing, OpenAI, Anthropic, Perplexity.

Will blocking GPTBot remove me from ChatGPT?

No. GPTBot collects content for OpenAI's training, while ChatGPT search uses OAI-SearchBot. OpenAI says the two settings are independent: you can allow OAI-SearchBot and block GPTBot. Anthropic works the same way, with ClaudeBot for training and Claude-SearchBot for search. Blocking OAI-SearchBot, on the other hand, keeps you out of ChatGPT's search answers.

What does Google-Extended do, and should I block it?

Google-Extended is not a crawler but a switch: blocking it rules out Gemini training, and also the Gemini app and Vertex AI as a source. Google Search, including AI Overviews and AI Mode, is governed by Googlebot alone. To be named by Gemini, keep Google-Extended allowed; training and the Gemini app can't be separated.

To stay out of AI Overviews, use the setting in Search Console, not Google-Extended (Google).

How do I write a robots.txt for AI crawlers?

The file is called robots.txt and sits at the root, one per host. Start with a rule that lets every crawler fetch everything, then add groups for single crawlers such as GPTBot, and end with your sitemap. A crawler follows only the most specific group that names it. OpenAI and Perplexity say changes take effect after about 24 hours.

Step 1: Look at your file

Open your-domain.ch/robots.txt. Paths are case-sensitive (Google).

Step 2: Write the file

An example for a small business that wants to be named and declines training at OpenAI and Anthropic:

# All crawlers may fetch everything
User-agent: *
Allow: /

# Gemini app: explicitly allowed
User-agent: Google-Extended
Allow: /

# Optional: no training at OpenAI and Anthropic
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

Sitemap: https://www.your-domain.ch/sitemap.xml

If you allow training, drop the last two groups. Disallow doesn't make anything private: Google says robots.txt doesn't keep a page out of Search; use noindex or a password.

Step 3: Check

Search Console's Page indexing report flags blocked pages as "URL blocked by robots.txt"; in Bing Webmaster Tools, the "robots.txt tester" checks single URLs.

What changes in 2027 for AI training?

A shared signal against AI training is in the works: the line User-agent: __usage_ai-training from an IETF draft. Anthropic has recognised it since 30 October 2026, Microsoft will from 1 February 2027, and Google aims to support it in 2027. If a site declines training this way without naming Google-Extended, Google treats it as if Google-Extended were blocked.

Sources: IETF draft and Google. That is why the example names Google-Extended. The standard is still a draft.

Common mistakes

  • A leftover Disallow: / from staging: blocks everything, Google included.
  • Blocking OAI-SearchBot instead of GPTBot: you vanish from ChatGPT search without declining training.
  • Treating robots.txt as protection: blocked URLs can still appear without a description.
  • Blocking Bingbot: Copilot has no crawler of its own; Bing loses your content.

Frequently asked questions

Does robots.txt apply when a user asks an AI to open a page?

Not always. OpenAI and Perplexity say ChatGPT-User and Perplexity-User may not follow it; Anthropic says Claude-User does.

Does Copilot have its own crawler?

No, Copilot uses Bing. From 1 February 2027, Microsoft honours the shared training signal; use in Copilot answers is then set per page with a meta tag or HTTP header, not in robots.txt (Bing).

How Sharpsoft does it

Every Sharpsoft website gets a robots.txt that lets all crawlers in and names the sitemap; blocking single crawlers isn't offered for now. sharpsoft.ch itself blocks none of the crawlers above either. See How Sharpsoft works and Services.

Contents