AI Crawlers robots.txt Rules: Allow or Block?
checked against each company’s own pageA careful hello to you.
Your AI crawlers robots.txt rules decide which AI bots may read your site. Some bots collect training data, some build search indexes, and some only fetch a page when a person asks.
This guide lists the official bot names from OpenAI, Google, Anthropic, Perplexity and Common Crawl, then helps you pick what to allow and what to block.
- bot names from official pages
- copy-ready robots.txt examples
- no ranking or citation promises
| bot | job | robots.txt |
|---|---|---|
| GPTBot | training | your choice |
| OAI-SearchBot | ChatGPT search | allow to appear |
| ClaudeBot | training | your choice |
| PerplexityBot | search results | allow to appear |
| Google-Extended | AI control token | token only |
// summary of the vendor pages listed in Sources. Settings are your choice, not a recommendation.
Allow, Block or Split?
Most small sites do best with a split: allow the bots that send people to you, and decide on the training bots based on how you feel about your content being used.
Blocking every AI bot sounds safe. It is not free, though. If a search bot cannot read your page, that page may never appear in the answers that bot writes. OpenAI says sites that opt out of its search bot will not show up in ChatGPT search answers.
So the real question is not “AI or no AI”. It is “which job do I allow?” Each company now runs separate bots for training, search and user requests, and you can set each one on its own. That is the whole game, and the rest of this guide shows you how to play it.
One honest note first. No robots.txt setting can promise that an AI product will cite you, and none can promise your content stays out of every dataset. Google says robots.txt compliance is voluntary. I only report what the companies publish.
What robots.txt Can and Cannot Do
A robots.txt file tells crawlers which URLs they may request. Google says it is mainly for managing crawl traffic, and it is not a way to keep a page out of Google.
The file is plain text. It must be named robots.txt and sit at the root of the host it covers, such as example.com/robots.txt. Google says a subdirectory will not work, and each subdomain can have its own file. It also must be UTF-8 text.
Each group starts with a User-agent line, followed by Disallow or Allow lines. Crawling is allowed by default, so you only write rules for what you want to stop. Rules are case-sensitive, and an asterisk matches any sequence of characters.
There are limits you should know. Google says it reads only the first 500 KiB of the file, and it caches the file for up to 24 hours. It also does not support the crawl-delay field. Other crawlers may read the same syntax differently.
Robots.txt controls crawling, not indexing. A blocked URL can still appear in results if other sites link to it, just without a description. If you need a page kept out of search, read my guide to noindex vs robots.txt.
Training, Search and User Fetches
Every AI bot does one of three jobs. Knowing the job tells you what blocking it will cost you.
An AI bot visits your page
what is its job?
Training
collects content for models, for example GPTBot and ClaudeBot
Search
builds an index for answers, for example OAI-SearchBot and PerplexityBot
User request
fetches a page when a person asks, for example ChatGPT-User
Your choice
block training, allow search, expect user fetches
// built from the OpenAI, Anthropic and Perplexity bot pages listed in Sources. The layout is mine.
Blocking a training bot signals that you do not want future content used in training. Blocking a search bot can cost you visibility in that product’s answers. User fetchers are the odd ones, because several companies say robots.txt may not apply to them.
The Official Bot List
These are the user agents the companies document on their own pages, checked on 2 Dec 2026. Names can change, so recheck before you edit your file.
| Bot | Company | What it does | robots.txt note |
|---|---|---|---|
| GPTBot | OpenAI | Crawls content that may be used to train models | Disallow signals no training use |
| OAI-SearchBot | OpenAI | Surfaces sites in ChatGPT search | Allow it to appear in results |
| ChatGPT-User | OpenAI | Acts when a user asks, including GPT Actions | Rules may not apply |
| ClaudeBot | Anthropic | Collects content for model training | Honors robots.txt |
| Claude-SearchBot | Anthropic | Improves search result quality | Blocking may reduce visibility |
| Claude-User | Anthropic | Fetches when a person asks Claude | Blocking stops those lookups |
| PerplexityBot | Perplexity | Surfaces and links sites in search results | Allow it to appear |
| Perplexity-User | Perplexity | Visits pages when a user asks | Generally ignores robots.txt |
| CCBot | Common Crawl | Builds an open web archive | Disallow to block |
| Google-Extended | Control token, no separate user agent | Used only in robots.txt |
// from the OpenAI bots page, Anthropic’s crawler help article, Perplexity’s bots guide, Common Crawl’s CCBot page and Google’s common crawlers page, all checked 2 Dec 2026.
What Each Company Says
The rules differ a little by company, so here is each one in plain words.
OpenAI
OpenAI documents separate bots and says each setting is independent. You can allow OAI-SearchBot and disallow GPTBot at the same time. If both are allowed, it says it may use one crawl for both purposes.
OpenAI also says that for search, a robots.txt update can take about 24 hours to take effect. It recommends allowing its published IP ranges too, if your firewall might block them. It lists a fourth bot, OAI-AdsBot, that checks pages submitted as ads, and gives no robots.txt advice for it.
Anthropic
Anthropic names three bots: ClaudeBot for training, Claude-SearchBot for search quality and Claude-User for user requests. It says its bots honor robots.txt. It also supports the non-standard crawl-delay field if you want to slow a bot instead of blocking it.
Anthropic advises against blocking its IP addresses. Its reason is that this would stop the bot from reading your robots.txt at all, so your rules would never be seen.
Perplexity
Perplexity says PerplexityBot surfaces and links sites in its search results, and that it is not used to crawl content for AI foundation models. It tells site owners to allow it if they want to appear. Perplexity-User generally ignores robots.txt, because a person asked for the fetch.
Common Crawl
CCBot builds a public web archive that other projects can use. Common Crawl says you block it with a rule that targets CCBot and disallows the site. It warns that other crawlers sometimes fake its name, so verify the IP before you trust a visit.
Google-Extended is a robots.txt token, not a bot you will see in your logs. Google says it has no separate HTTP user agent, because it crawls with its existing user agent strings. Googlebot remains the token for Search.
Google’s page I fetched does not describe how Google-Extended affects Search, and I would not guess. Google also says it plans to support a shared AI training signal, written as user-agent: __usage_ai-training, in early 2027. Watch for that.
AI Crawlers robots.txt Policies to Choose From
Most sites fit one of these three. Pick by what you sell and what you worry about.
Allow everything
- Do nothing, since crawling is allowed by default
- Fits sites that want the widest reach
- Your content may be used for training
Block training, allow search
- Disallow GPTBot, ClaudeBot, CCBot and Google-Extended
- Allow OAI-SearchBot, PerplexityBot and Claude-SearchBot
- Fits most publishers and small businesses
Block everything
- Disallow every AI bot
- Fits paid content and strict licensing needs
- You may vanish from AI answers
// example policies for illustration, not advice for every site.
My opinion: policy B is the sensible default for a business that wants customers to find it. A local plumber in Austin gains little from keeping search bots out, while a paid research publisher in London may want policy C. Neither is wrong. They have different goals.
Also think about what AI answers do for you. If people ask an assistant for “a dentist in Toronto”, being readable to that assistant’s search bot is the only way to be considered. My guide to ranking in AI Overviews covers what Google says about its own AI features.
A Sample robots.txt File
This example implements policy B. Change the bot names to match your choices, and test the file before you upload it.
User-agent: GPTBot Disallow: / User-agent: ClaudeBot Disallow: / User-agent: CCBot Disallow: / User-agent: Google-Extended Disallow: / User-agent: OAI-SearchBot Allow: / User-agent: PerplexityBot Allow: / User-agent: Claude-SearchBot Allow: / User-agent: * Disallow: /wp-admin/ Sitemap: https://www.example.com/sitemap.xml
// example data. Replace example.com with your own domain. Syntax follows Google’s robots.txt guide and each company’s page.
Two details trip people up. First, Google says a crawler follows only the most specific group that matches it and does not merge that group with the asterisk group. So if a bot has its own group, the asterisk rules no longer apply to it. Second, the Sitemap line needs a full URL.
Anthropic says to repeat the rule on each subdomain, because robots.txt covers one host at a time. If your blog lives on blog.example.com, it needs its own file.
How to Update Your File Safely
Follow these six steps. They take about twenty minutes on most sites.
- Open your current file. Visit yourdomain.com/robots.txt in a browser and copy what is there. Many WordPress sites and SEO plugins create it for you.
- Decide your policy. Choose A, B or C from the section above, then list the bots you will name.
- Add one group per bot. Start each group with User-agent, then add Allow or Disallow. Leave a blank line between groups.
- Keep your existing rules. Do not delete lines that protect admin or search pages unless you know why they exist.
- Upload to the root. Save as robots.txt in UTF-8 and place it at the top of the host. Use your plugin’s editor if your site does not allow file access.
- Test it. Reload the file in a browser, then check a few URLs with a robots.txt tester.
A wrong rule can block your whole site from Google. Google says rules apply to its crawler by token, so a stray Disallow under the asterisk group affects Googlebot too. Read the file out loud before you save it.
When Robots.txt Is Not Enough
Robots.txt is a polite request. It cannot stop a bot that chooses to ignore it.
Google says compliance is voluntary and that reputable crawlers follow the rules while others may not. For private content, use a password. Google names password protection as the right tool for sensitive files.
You can also block at the firewall. Perplexity and OpenAI publish IP lists in JSON files so you can verify a visit. Perplexity says to match both the user agent and the IP range, because user agent names are easy to fake. Common Crawl says the same about CCBot.
Be careful with firewall rules and bot protection tools. Perplexity notes that Cloudflare’s Bot Fight Mode can still challenge its bots even when a rule allows them. So if you allowed a search bot in robots.txt and it still cannot reach you, a firewall may be the cause. My technical SEO guide covers server and crawl checks.
Mistakes That Cost Visibility
These five mistakes show up again and again. Each has a simple fix.
Blocking search bots by accident
A blanket Disallow for all AI bots includes the search ones. Name each bot on purpose.
Mixing up GPTBot and OAI-SearchBot
They do different jobs. Blocking one does not block the other.
Expecting robots.txt to deindex pages
It controls crawling only. Use noindex or a password for removal.
Blocking by IP instead of by rule
Anthropic warns this can stop the bot from ever reading your robots.txt.
Forgetting subdomains
Each host needs its own file. Check shop, blog and app subdomains.
Trusting crawl-delay everywhere
Google does not support it. Anthropic does, so use it only for bots that read it.
How to Check It Worked
Check your server logs first. They show which bots visited and what status they got.
- Open yourdomain.com/robots.txt and confirm the new groups show up.
- Search your access logs for each user agent name, for example GPTBot or ClaudeBot.
- Check the IP of any suspicious visit against the company’s published list.
- Wait at least a day. OpenAI says about 24 hours for search, and Google caches the file for up to 24 hours.
Google also says what happens when the file breaks. A 4xx error, except 429, is treated as no robots.txt, so nothing is blocked. A 5xx error makes Google pause crawling for up to 12 hours, then use the last good copy for up to 30 days. Keep the file reachable.
To see whether you are named in AI answers at all, try my free method in tracking AI answer mentions. It also helps to know that an llms.txt file is not a substitute for robots.txt, because it is a different file with a different job.
When to Ask for Help
You can do this alone in an afternoon. Ask for help if the file is large, a plugin keeps rewriting it, or a firewall may be blocking bots.
I look at the crawl side of answer engine optimization as a small part of the job. Content, clear answers and trust matter more than any bot rule. Still, a clean robots.txt file removes one risk. Google’s own crawler guide lists the common tokens, and my Google crawlers and user agents guide explains them.
Be wary of anyone who promises AI citations. No company publishes a way to buy or force one.
AI Crawler Questions
Should I block GPTBot?
Only if you do not want your content used to train OpenAI’s models. OpenAI says disallowing GPTBot signals that your content should not be used for training. It does not remove you from ChatGPT search, because that uses a different bot called OAI-SearchBot.
Does blocking Google-Extended hurt my Google rankings?
Google’s crawler page that I fetched does not describe any effect on Search, so I cannot confirm either way from that page. It does say Google-Extended is a robots.txt token only, with no separate user agent, and that Googlebot is the token for Search. Check Google’s own Google-Extended page before you decide.
Do AI bots always obey robots.txt?
No. Reputable crawlers follow it, but Google says compliance is voluntary. OpenAI says robots.txt rules may not apply to ChatGPT-User, and Perplexity says Perplexity-User generally ignores them because a person asked for the page.
Can I block AI crawlers and still appear in AI answers?
Partly. You can block the training bots and allow the search bots, for example GPTBot blocked and OAI-SearchBot allowed. Each OpenAI setting is independent. No setting guarantees a citation, though, and nobody can promise one.
Where does the robots.txt file go?
At the root of the host it governs, such as example.com/robots.txt. Google says it cannot sit in a subdirectory, and each subdomain can have its own file. The file name must be exactly robots.txt.
How long until a robots.txt change takes effect?
OpenAI says its search systems can take about 24 hours to adjust. Google says it generally caches robots.txt for up to 24 hours. Other companies publish no figure that I found, so check your server logs over a few days.
Send Me Your robots.txt. I’ll Tell You What I’d Check.
If you are unsure which bots to allow, I can review the file with you. My cheap SEO services start from one WhatsApp message.
Sources and Last Check
- OpenAI: Overview of OpenAI crawlers (GPTBot, OAI-SearchBot, ChatGPT-User)
- Anthropic Help: Does Anthropic crawl data from the web? (ClaudeBot, Claude-User, Claude-SearchBot)
- Google Search Central: Google’s common crawlers (Googlebot, Google-Extended)
- Google Search Central: Introduction to robots.txt (what it is and is not)
- Google Search Central: How Google interprets robots.txt (caching, size, status codes)
- Perplexity: Crawlers guide (PerplexityBot, Perplexity-User)
- Common Crawl: CCBot (user agent, blocking, IP verification)
// last checked 2 Dec 2026. Bot names and policies change, so read the current company page before you edit your file. Examples are made up.