🤖
SEO & marketing

robots.txt for AI Crawlers: GPTBot, ClaudeBot, Google-Extended

30.11.2026
← All articles

A few years ago, robots.txt rules were written mainly for Googlebot and YandexBot. Today, server logs increasingly show crawlers from artificial intelligence companies that download pages to train models, to build AI search results, or to answer a specific user request. The question is which bots should get your content. This article covers the names of the best-known AI bots, the robots.txt syntax for controlling them, and practical examples.

Three kinds of AI crawlers

AI bots do different jobs. Training crawlers collect text from the web to train future language models. AI search bots index pages so that services such as ChatGPT or Claude can cite them with a link in an answer. User-triggered agents fetch a page at the moment a person in a chat asks to open it. That is why "block every AI bot" often causes unnecessary losses: you can opt out of training while staying visible in AI search.

Main bots and their user-agent tokens

The table lists the main names companies publish in their documentation. The list changes, so check official pages before writing rules.

TokenCompanyPurpose
GPTBotOpenAICollecting content for model training
OAI-SearchBotOpenAIShowing pages in ChatGPT search
ChatGPT-UserOpenAIFetching a page at a user's request
ClaudeBotAnthropicCollecting content for model training
Claude-SearchBotAnthropicImproving search result quality
Claude-UserAnthropicFetching a page at a user's request
Google-ExtendedGoogleControlling use in Gemini models
Applebot-ExtendedAppleUse in training Apple models
CCBotCommon CrawlOpen web archive used by many models
PerplexityBotPerplexityIndexing for AI search

Google-Extended is not a separate bot

Many people assume Google-Extended is its own crawler, but it is only a control token for robots.txt. Pages are still fetched by the regular Googlebot; Google-Extended tells Google whether that content may be used to train Gemini models and ground their answers. According to Google's documentation, blocking it does not affect your ranking or inclusion in Google Search. AI answers on the results page are part of Search itself, so you cannot fully switch them off with Google-Extended.

robots.txt syntax with examples

The file must sit at the site root, at https://example.uz/robots.txt. Each group starts with a User-agent line followed by Disallow and Allow rules. The example below blocks training crawlers from the whole site but allows AI search bots and regular search engines:

# Training crawlers: no access
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
Disallow: /

# AI search bots: allowed
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Disallow: /admin/
Allow: /

# Everyone else
User-agent: *
Disallow: /admin/
Disallow: /cabinet/

Sitemap: https://example.uz/sitemap.xml

Consecutive User-agent lines form one group, which keeps the file short. A bot with its own named group ignores the User-agent: * group, so private sections such as /admin/ must be repeated in the AI search group, as in the example, otherwise only Allow: / applies to those bots.

You can also protect only part of a site. A private clinic in Tashkent might keep its service pages open while keeping in-depth articles written by its doctors out of training data:

User-agent: GPTBot
User-agent: ClaudeBot
Disallow: /maqolalar/
Allow: /

The limits of robots.txt

robots.txt is a request, not a technical barrier. Major companies state that their bots respect it, but unknown crawlers or bots spoofing other names may ignore it, and some companies note that user-triggered agents may be treated differently, so check the official documentation. If you truly need to block, refuse requests by user-agent at the server level. On Apache hosting this works in .htaccess:

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (GPTBot|ClaudeBot|CCBot) [NC]
RewriteRule .* - [F,L]

Matching bots receive a 403 response. User-agent strings are easy to fake, so serious cases also need IP lists or rate limiting.

Testing rules and watching logs

After editing, confirm that the file opens in a browser. Access logs show which bots really visit; on sayt.uz hosting they are available in the ISPmanager panel, and with SSH these commands help:

curl -s https://example.uz/robots.txt
grep -ciE "gptbot|claudebot|ccbot" access.log
curl -I -A "GPTBot" https://example.uz/

The first shows what the server returns, the second counts AI bot requests, and the third checks the .htaccess rule, which should answer 403.

Choosing a policy

There is no single right answer. A site built for brand awareness or lead generation may benefit from being cited in AI answers; a hotel in Samarkand wants AI assistants to quote its prices and address correctly. A subscription publication or a site with original research may block training crawlers and allow only search bots. Make the decision deliberately and review robots.txt every few months as new bots appear.

Related articles

🧭 Yandex SEO in 2026: Does It Still Matter in Uzbekistan? 🎟️ Event Schema: showing your events in Google with date and venue 📶 Site Speed on Slow Mobile Internet: Optimizing for 3G 💼 JobPosting Schema: showing your job openings properly in Google Search
🌐 Language
🇺🇿 O⁠'zbek 🇺🇿 Özbek (yangi) 🇺🇿 Ўзбек 🇷🇺 Русский 🇬🇧 English ✓