How to Block AI Bots Without Hurting SEO
Before you block AI bots, decide what you want to stop: the use of your content for training, your appearance in AI search answers, or visits that an assistant makes for a user. These are three different goals, and each has its own control. One broad rule in robots.txt can hit more systems than you expect, and robots.txt does not protect private content.
This guide lists the AI crawlers that OpenAI, Anthropic, Google, Perplexity, Apple, Common Crawl and Meta document, and what each one does. It shows robots.txt rules you can adapt, the traps in how crawlers read the file, how a firewall such as Cloudflare can overrule it, and how to test a change. Every fact about a bot comes from that company’s own page, checked on November 25, 2026.
What are the three kinds of AI bots?
Most AI companies now run separate bots for separate jobs. Sort them into three groups before you write a single rule:
- Training crawlers collect pages that may be used to train AI models. Examples are GPTBot, ClaudeBot, CCBot and meta-externalagent. Blocking them affects only what is collected from now on.
- Search crawlers build the index that an AI search product cites and links to. Examples are OAI-SearchBot, Claude-SearchBot and PerplexityBot. Blocking them can take your pages and their links out of those answers.
- User fetchers open a page because a person asked the assistant to. Examples are ChatGPT-User, Claude-User, Perplexity-User and Google-Agent. Several companies say robots.txt may not apply to these, because a person started the visit.
Two names on most lists are not crawlers at all. Google-Extended and Applebot-Extended are tokens: names you put in robots.txt to say how content may be used. Google says Google-Extended has no user agent string of its own in HTTP requests, and Apple says Applebot-Extended does not crawl web pages. You will not see either one in your server logs, and a firewall rule that blocks them by name does nothing.
Which AI bots and controls do what?
Check the exact bot and its official documentation. The name in a user agent string proves nothing on its own: anyone can send a request that says “GPTBot”. Automatic crawlers, visits a user starts and product settings can follow different rules.
| Bot or token | Company | What it is for | robots.txt |
|---|---|---|---|
| GPTBot | OpenAI | Crawls content that may be used to train OpenAI’s models | Follows a group that names it |
| OAI-SearchBot | OpenAI | Shows sites in ChatGPT search results | Follows a group that names it |
| ChatGPT-User | OpenAI | Opens pages when a user asks ChatGPT | OpenAI says robots.txt rules may not apply |
| ClaudeBot | Anthropic | Collects content that may be used to train Anthropic’s models | Follows robots.txt, including Crawl-delay |
| Claude-SearchBot | Anthropic | Indexes content to improve Claude’s search results | Anthropic says its bots follow robots.txt |
| Claude-User | Anthropic | Fetches pages for a Claude user’s question | Anthropic says its bots follow robots.txt |
| PerplexityBot | Perplexity | Shows and links sites in Perplexity search. Perplexity says it is not used to train AI models | Has its own robots.txt name |
| Perplexity-User | Perplexity | Fetches pages for a user’s request | Perplexity says it generally ignores robots.txt |
| Googlebot | Crawls for Google Search. AI Overviews and AI Mode use the same index | Follows a group that names it, or the * group | |
| Google-Extended | Token for Gemini training and for grounding in Gemini Apps and Vertex AI. Not a crawler | Token only | |
| Google-Agent | Agents on Google’s systems that browse and act for a user | Listed with Google’s user-triggered fetchers, which Google says generally ignore robots.txt | |
| Applebot-Extended | Apple | Token for whether Applebot’s data may train Apple’s models. Not a crawler | Token only |
| CCBot | Common Crawl | Builds an open archive of web crawl data that anyone can use | Common Crawl gives a robots.txt rule to block it |
| meta-externalagent | Meta | Crawls for uses such as training AI models or indexing content for Meta products | Meta gives a robots.txt rule to block it |
| Meta-ExternalFetcher | Meta | Fetches links that a user asks for | Meta says it may bypass robots.txt |
The sources are OpenAI’s page on its bots, Anthropic’s crawler help article, Perplexity’s bots guide, Google’s pages on common crawlers and user-triggered fetchers, Apple’s Applebot page, Common Crawl’s CCBot page and Meta’s web crawlers page. Bots change often, so check these pages again before a big change.
OpenAI describes GPTBot and OAI-SearchBot as independent settings. According to OpenAI, a site that blocks OAI-SearchBot will not be shown in ChatGPT search answers, though it can still appear as a navigational link. OpenAI also says robots.txt rules may not apply to ChatGPT-User, because a person starts those visits, and that a robots.txt change can take about 24 hours to reach search. Perplexity and Meta give the same 24 hours for their bots.
Google says Google-Extended does not affect whether a site is included in Google Search and is not a ranking signal there. It does control grounding in Gemini Apps, so blocking it can also keep your content out of answers in the Gemini app.
Anthropic says that blocking Claude-User stops Claude from fetching your pages when a user asks, which may make your site less visible in searches that users start. Apple says Applebot’s data may also be used to train its models, and Applebot-Extended is how you opt out of that. Pages that block Applebot-Extended can still show in Apple’s search features in Spotlight, Siri and Safari.
How do crawlers read robots.txt?
A few rules in Google’s robots.txt documentation catch many site owners out. These are Google’s rules. Other crawlers may read the file in other ways, so check their pages too.
- A crawler obeys one group only: the group with the most specific user agent that matches it. Google says named groups and the
*group are not combined. If you add a group for OAI-SearchBot, it stops reading yourUser-agent: *rules. - When an Allow rule and a Disallow rule both match a URL, Google uses the one with the longer path. If they are equally specific, it uses the less restrictive one.
- Google reads only the first 500 KiB of the file.
- Google usually caches robots.txt for up to 24 hours, so a change is not seen at once.
- If robots.txt returns a 4xx error (except 429), Google acts as if there were no file and may crawl everything.
- If robots.txt returns a 5xx server error, Google stops crawling the whole site for the first 12 hours. After that it uses the last good copy it has, for up to 30 days. A firewall or host that answers robots.txt with a server error can stop Google from crawling your site.
The first rule causes the most damage. Here is a file that looks harmless:
User-agent: *
Disallow: /wp-admin/
Disallow: /checkout/
User-agent: OAI-SearchBot
Allow: /
The owner wanted to welcome ChatGPT’s search crawler. But OAI-SearchBot now reads only its own group, so it may crawl /checkout/ and /wp-admin/ too. If a bot needs a group of its own, copy into it the rules from the * group that should still apply.
What can robots.txt do, and what can’t it?
robots.txt tells crawlers that follow it which paths they may crawl. It is not a login. It does not delete data that was already copied, and it does not take a page out of an index. A public URL can still be found through links on other sites.
- For private material, use real access control, such as a login.
- To keep a page out of Google Search, use noindex, and let Google crawl the page so it can read the tag. If robots.txt blocks the page, Google never sees the noindex.
- For duplicate pages, a canonical tag points to the preferred version. For a page that moved for good, use a 301 redirect.
These tools do different jobs and you can’t swap one for another. Google explains each of them in its guide to controlling what you share with Google. A canonical tag does not stop AI use.
What does a rule for one AI bot look like?
This group blocks GPTBot from the whole site:
User-agent: GPTBot
Disallow: /
It does nothing to OAI-SearchBot, Googlebot or other crawlers, because a crawler follows the group that names it. Keep the rest of your file. Don’t paste an example over your existing configuration without reading it first. A broad rule such as User-agent: * with Disallow: / blocks every crawler that follows robots.txt, including the search engines you want.
How do you block AI training but stay in AI search?
Here is a setup that blocks the main training crawlers and keeps AI search open, for a WordPress site:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: Applebot-Extended
Disallow: /
Sitemap: https://www.example.com/sitemap_index.xml
The first group is the usual WordPress default. The training crawlers and the two tokens get Disallow: /. OAI-SearchBot, Claude-SearchBot, PerplexityBot, Googlebot and Bingbot are not named, so they follow the * group: they may crawl everything except the admin area. You don’t need to name a bot just to allow it.
Know what this costs. Google-Extended also covers grounding in Gemini Apps, so the Gemini app may stop using your pages in its answers. Google Search, AI Overviews and AI Mode are not affected, because they rely on Googlebot. If you also want to stop Meta, add a group for meta-externalagent, but Meta says it uses that crawler for indexing content as well as training, so the block may reach more than training.
How do you limit Google’s AI features in Search?
Use the Search generative AI control in Search Console. Open Settings > Search generative AI and choose one of three options: include your site, exclude it, or inherit the setting from the parent property. The control covers AI Overviews, AI Mode and generative AI features in Google Discover.
Google says this control is not a ranking or inclusion signal for the rest of Search and does not affect AI training. For training, Google points to Google-Extended. You don’t need to block Googlebot to use the control. If you have both a domain property and a URL-prefix property, check which one sets the value and which one inherits it.
For single pages, Google’s robots meta tag rules work as well. Google says nosnippet also stops a page’s content from being used as a direct input for AI Overviews and AI Mode, and max-snippet limits how much of it can be used. Both also change the snippet in normal results, so use them only on pages where you accept that.
Excluding your site has a cost: it removes the chance of impressions and visits from these features.
How do you tell a real AI bot from a fake one?
Anyone can put “GPTBot” in a request. Before you act on log data, or let a bot past your firewall, check its IP address against the list its company publishes.
| Company | Bots | How to check |
|---|---|---|
| OpenAI | GPTBot, OAI-SearchBot, ChatGPT-User | IP lists at openai.com/gptbot.json, openai.com/searchbot.json and openai.com/chatgpt-user.json |
| Anthropic | ClaudeBot, Claude-SearchBot, Claude-User | IP list at claude.com/crawling/bots.json |
| Perplexity | PerplexityBot, Perplexity-User | IP lists at www.perplexity.ai/perplexitybot.json and www.perplexity.ai/perplexity-user.json |
| Googlebot and other crawlers | Reverse DNS lookup, or the IP lists named on Google’s verification page | |
| Google-Agent | The IP list user-triggered-agents.json | |
| Apple | Applebot | IP list at search.developer.apple.com/applebot.json, or reverse DNS in applebot.apple.com |
| Common Crawl | CCBot | IP list at index.commoncrawl.org/ccbot.json |
To check Googlebot by hand, run a reverse DNS lookup on the IP address with the host command. The name must end in googlebot.com, google.com or googleusercontent.com. Then run host on that name and check that it gives back the same IP address.
On a Linux server with the usual Apache or Nginx log format, this command counts requests from a few AI bots by IP address:
grep -E "GPTBot|OAI-SearchBot|ClaudeBot|PerplexityBot" access.log | awk '{print $1}' | sort | uniq -c | sort -rn | head -20
Compare the busiest addresses with the lists above. Requests that use a bot’s name from an address outside its list are not that bot, and blocking them does not touch the real one.
What about Cloudflare and other firewalls?
robots.txt is only one layer. A CDN or a firewall can block a bot before it ever reads your robots.txt, and the robots.txt file will still look fine.
We saw this on a client site behind Cloudflare. In October and November 2026 its robots.txt allowed every AI crawler. Cloudflare still answered GPTBot, ClaudeBot and CCBot with a 403 error, and by mid-November it did the same for OAI-SearchBot and PerplexityBot. Googlebot and Bingbot got through. We tested with each bot’s user agent from a normal IP address, and Cloudflare may treat the real bots in a different way. So the next step was to read the bot settings in the Cloudflare dashboard, where the decision is actually made.
In Cloudflare, that setting is now called AI Crawler and Agent access policies. It used to be called Configure AI bot policies. It sorts AI traffic by behavior: Search, Agent and Training. For each one you can block, block only on pages with ads, or allow. For Training you can also choose disallow. Cloudflare’s page, updated November 2, 2026, says new domains start with all three set to allow. An older zone may have other values, so read yours.
Cloudflare can also write robots.txt for you. When one of those policies blocks, its managed robots.txt puts Disallow rules for known AI crawlers in front of your own file and serves both as one response. The managed list names Amazonbot, Applebot-Extended, Bytespider, CCBot, ClaudeBot, Google-Extended, GPTBot and meta-externalagent. If your live robots.txt has lines you never wrote, this is a likely cause. Cloudflare’s AI Crawl Control, on all plans, shows which AI services visit your site and lets you allow or block each crawler.
Google also documents Google-Agent, the fetcher that Google’s agents use when they browse and act for a user. In November 2026 Google published a guide on letting it past bot challenges: check the request’s IP address against Google’s published list of user-triggered agents. If your firewall challenges unknown bots, look for Google-Agent in its logs.
How do you test a change to robots.txt?
- Save the old file or setting, and write down what you want to achieve.
- Check the syntax and which group applies to each bot. Our robots.txt validator shows blocked bots and paths.
- Test an important service page, an article, an image and the CSS and JavaScript files your pages need.
- Check whether your CDN, firewall or CMS adds blocks or lines of its own.
- After publishing, open the live robots.txt and check that it returns the new rules with a 200 status.
- Watch server logs, crawl stats and indexing for the bots you changed.
The free GEO check also reads your robots.txt and reports which AI search bots it lets in.
Don’t expect every system to react at once. Caches and the next crawl can delay the effect by a day or more. A visit in your logs does not prove that a page was used for training or cited in an answer.
What must stay open for SEO?
If you want to stay in Google Search, Googlebot needs access to your important pages and to the resources that render them. A correct robots.txt does not undo a block by your host or firewall.
If pages drop out of the index, check crawl errors, server responses, noindex and canonical tags first. Don’t blame an AI rule just because it changed at the same time.
Should you block AI bots at all?
There is no answer that fits every business. Blocking a bot can reduce the chance that your site is shown, linked and visited from that system. This table is where we would start for four common types of site:
| Type of site | Training crawlers | AI search crawlers | User fetchers |
|---|---|---|---|
| Service business that wants new clients | Your choice. Blocking them does not touch search | Allow | Allow |
| Publisher whose articles are the product | Blocking is often a fair trade | Allow if you want links and visits from AI search | Decide per platform |
| Online shop | Your choice | Allow | Allow, so assistants can open product pages for buyers |
| Paid or members-only content | Block, and keep the content behind a login | Allow the public pages only | Use a login. robots.txt is not protection |
tororank.com itself allows all 13 AI search bots that our free check looks for, because we want to be recommended.
To see the effect on Google, use the Generative AI performance report in Search Console, which shows impressions from Google’s AI features. For other systems, log what you actually observe. Don’t use total organic traffic as proof of what one bot rule did.
Frequently asked questions
Does blocking GPTBot block Googlebot?
No. A rule for GPTBot applies only to GPTBot. Check the whole file and your CDN rules as well.
Does blocking Google-Extended remove my site from Google Search?
No. Google says Google-Extended does not affect inclusion in Google Search and is not a ranking signal there. It does affect Gemini training and grounding in Gemini Apps.
Why can’t I find Google-Extended in my server logs?
Because it is not a crawler. Google says Google-Extended has no user agent string of its own. Google crawls with its usual crawlers and reads the token to decide how the content may be used.
Can robots.txt stop ChatGPT-User or Perplexity-User?
Not reliably. OpenAI says robots.txt rules may not apply to ChatGPT-User, and Perplexity says Perplexity-User generally ignores them. A firewall rule can block them by IP address, but then the assistants can’t open your pages for people who ask about you.
Does noindex merge duplicate pages?
No. noindex keeps a page out of the index once Google has read it. Canonical tags and redirects do different jobs.
Is there a separate control for AI in Google Search?
Yes. The Search generative AI control in Search Console covers AI Overviews, AI Mode and generative AI features in Discover. It is separate from Google-Extended and from robots.txt.
When should you ask for help?
On a small site with a clear setup, your team can change one specific rule on its own. With many restrictions, international sections or indexing problems, a technical SEO and GEO audit is the safer route. We start from the goal and the full current setup: robots.txt, product settings, CMS, CDN and indexing. Then we make each change separately, check it, and keep the old version so it can be restored.
