Technology

AI bots in robots.txt: which to allow and whether to block training bots (2026)

Piotr Wysocki7-minute read

A single line in the robots.txt file can prevent ChatGPT from ever quoting your website. More often than not, this wasn’t done deliberately — someone blocked AI bots ‘just in case’, a plugin added a rule, or a firewall mistook unknown traffic for an attack.

Try it for freeFirst payment after 7 days — you can cancel at any time.
Table of contents
  1. Two types of AI bots
  2. Bots that search for answers
  3. Bots that collect data for training
  4. Bots you need to let in
  5. Should training bots be blocked?
  6. What you’re missing out on by blocking training bots
  7. When a lockdown makes sense
  8. Pitfall: Google-Extended
  9. What about Grok and the others?
  10. Grok (xAI)
  11. Other bots you might come across
  12. Sample robots.txt file
  13. Please note the ‘for everyone’ rule
  14. Not just robots.txt: firewall and CDN
  15. How to check that everything is working
  16. Common mistakes

In this article, you’ll find a list of the most important AI bots, an answer to the question of whether to block training bots, a ready-to-use file and the errors we see most frequently.

Two types of AI bots

AI bots fall into two groups, and the decision regarding each has different consequences.

Bots that search for answers

They appear on your website when someone asks a question or when the search engine builds an index. It is thanks to them that AI can quote you and provide a link. Blocking them means disappearing from the answers.

Bots that collect data for training

They gather the content from which future models learn. They do not determine whether you will be quoted today in a search result — but they do determine what the model will know about your company ‘from memory’.

Bots you need to let in

If you want AI to recommend your company, these bots must have access to the website:

BotCompanyWhat is it used for?
OAI-SearchBotOpenAISearching in ChatGPT — pages that ChatGPT can display and quote
ChatGPT UserOpenAIAppears on the page when a ChatGPT user requests it
Claude-SearchBotAnthropicSearching in Claude
Claude-UserAnthropicVisits the website at the request of the user Claude
PerplexityBotPerplexityIndex of pages used by Perplexity
Perplexity-UserPerplexityVisits the website at the user’s request
GooglebotGoogleThe standard Google index — this is also used by AI answers in the search engine and the Gemini app
BingbotMicrosoftThe Bing index, used by Copilot, amongst others

Should training bots be blocked?

BotCompanyWhat is it used for?
GPTBotOpenAIData for training models
ClaudeBotAnthropicData for training models
CCBotCommon CrawlAn open web archive used by many AI companies
Applebot-ExtendedAppleConsent to use content for training Apple models
BytespiderByteDanceData for training models
meta-externalagentMetaData for training models

In short: if you care about visibility in AI, let them in. Blocking them won’t cut you off from being cited in search results, but it comes at a cost.

What you’re missing out on by blocking training bots

Some AI answers are generated without a search, based on knowledge the model has acquired during training. If your content was not included in the data, the future model will know less about your company — and will be less likely to mention it from memory.

When a lockdown makes sense

When your content is a product — paid analyses, reports, courses — and you don’t want it to end up in models for free. That’s a fair business decision, just make sure you’re fully aware of it. At brandalyze.pl, we allow all bots, including training bots.

Pitfall: Google-Extended

This is the most common mistake. Google-Extended is not a separate bot — it is a ‘switch’ in robots.txt that tells Google whether it can use your content in Gemini.

  • The Google-Extended block does not affect Google search results or AI answers in the search engine (AI Overviews, AI mode).
  • Blocking excludes your content from Gemini’s training, but also from Gemini app answers that are based on web pages.

So this isn’t ‘just a test’. If you want to be visible in the Gemini app, don’t block it.

What about Grok and the others?

Grok (xAI)

xAI does not publish the official name of its bot. Names such as ‘GrokBot’ or ‘xAI-Grok’ are circulating online, but these come from unofficial lists, and tests show that Grok often fetches pages just like a normal browser. Conclusion: a robots.txt rule for Grok may not change anything — and if you aren’t blocking anything, you don’t need to do anything.

Other bots you might come across

BotCompanyWhat is it used for?
ApplebotAppleSearching in Siri and Spotlight
Meta-ExternalFetcherMetaFetches a page at the request of a Meta AI user
DuckAssistBotDuckDuckGoAI answers on the DuckDuckGo search engine
MistralAI-UserMistralFetches a page at the request of the user Le Chat
AmazonbotAmazonAmazon services, including AI models

New bots appear every few months. That’s why the safest rule is: let everyone in and block only what you deliberately want to block — rather than the other way round.

Sample robots.txt file

If you want to allow all bots, including AI bots, this is all you need to do. Change the paths and the sitemap address to your own.

# Allow all bots, including AI (search and training)
User-agent: *
Allow: /
Disallow: /cart/
Disallow: /panel/

Sitemap: https://yourdomain.com/sitemap.xml

If you deliberately wish to block training bots, add a separate group for them:

# Training bots — blocking them is a decision about your data
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
Disallow: /

# Everyone else, including AI search bots
User-agent: *
Allow: /
Disallow: /cart/
Disallow: /panel/

Sitemap: https://yourdomain.com/sitemap.xml

Please note the ‘for everyone’ rule

A bot that has its own group in the file (e.g. ‘User-agent: OAI-SearchBot’) is subject only to that group. Rules from the ‘User-agent: *’ group do not apply to it.

For example: if you have blocked /panel/ only in the ‘*’ group, but have specified ‘Allow: /’ separately for OAI-SearchBot, then the ChatGPT bot may access /panel/. Private paths must be repeated in each group.

Not just robots.txt: firewall and CDN

Even a perfect robots.txt file won’t help if bots are blocked by a firewall. Services such as Cloudflare have separate settings for AI bots, and your hosting provider may automatically block unknown traffic. If you use such a service, check the bot settings in its control panel and ensure that AI bots are not being blocked.

How to check that everything is working

  1. Open twojadomena.pl/robots.txt in your browser and read what’s there. Look for the words ‘Disallow: /’ next to the bots in the first table.
  2. Check your website with our free website audit — it will show you which AI bots have access and which are blocked.
  3. If you have access to server logs, search them for the names of the bots listed in the tables. A lack of entries for several weeks is a sign that something is blocking them.

Common mistakes

  • ‘Disallow: /’ for all AI bots at once — this blocks both training bots and search bots.
  • A firewall block that nobody knows about — the robots.txt file looks fine, yet bots are still being denied access.
  • Google-Extended blocked ‘because it’s training’ — and the company wants to be visible on Gemini.
  • Private paths only in the ‘*’ group — bots with their own group ignore them.
  • Copying lists of bots from the web without checking — bot names change, and some of the names in circulation (e.g. for Grok) are not official.

Access for bots is just the foundation. We describe what to do next to ensure that AI actually recommends your company in our guide on how to be visible in ChatGPT and other AI systems.

AuthorPiotr WysockiFounder of Brandalyze

Founder of Brandalyze. On a day-to-day basis, he measures which companies are recommended by ChatGPT, Perplexity, Gemini and AI answers on Google, and carries out activities for clients to influence this. He writes about what actually works in AI visibility and what is merely a buzzword.

Start measuring your company’s visibility in AI

Track responses to customer queries on a daily basis.

Try it for freeFirst payment after 7 days — you can cancel at any time.Or check the site first with a free website audit →

Read more

Book a Brandalyze presentation

30 minutes online, no obligation

We’ll show you live whether ChatGPT, Gemini and Perplexity recommend your company, who they suggest instead, and where to start.

  • Measuring visibility in ChatGPT, Gemini, Perplexity and Google AI
  • A ranking of companies that AI recommends instead of you
  • List of tasks, in order of priority
  • AI Traffic from Google Analytics
  • AI Agent for queries about results
They’ve put their trust in us
Tygodnik PowszechnyZevioCalendiVantaro
They’ve put their trust in us
Tygodnik PowszechnyZevioCalendiVantaro