AI crawlers are visiting your website every day. OpenAI’s GPTBot, Anthropic’s ClaudeBot, Meta’s crawler, and dozens of others are scraping content to train large language models or power AI search features.
Unlike traditional search engine crawlers that index your site and send you traffic, many AI crawlers take your content without attribution or a link back. The good news is that most of them respect robots.txt directives, giving you control over what they can access.
Below I’ll cover which AI bots are crawling your site, how to block them selectively, and how to decide which ones to keep. This guide is part of my AEO checklist for WordPress.
Training Crawlers vs. Search and Retrieval Bots
Before blocking anything, understand the three categories of AI crawlers:
Training crawlers collect your content to train AI models. Your text becomes part of the model’s knowledge, but you get no attribution, no link, and no traffic. Examples: GPTBot, Google-Extended, ClaudeBot, Meta-ExternalAgent.
Search and retrieval bots fetch your content in real time to answer a user’s question. They typically cite your page and link back to it. Examples: OAI-SearchBot, Claude-SearchBot, PerplexityBot.
AI assistants and agents browse the web for a specific user. Think ChatGPT-User, Claude-User, and browser agents such as Google-Agent and Claude-Agent. Several vendors say robots.txt may not apply to these fetchers because the request is “user-initiated.”
If you want agents to use your site well rather than block them, the inverse work is the Lighthouse Agentic Browsing audit, which scores how operable your site is for these agents.
Blocking training crawlers protects your content from being absorbed without credit. Blocking search bots means AI assistants won’t reference your site when users ask related questions – which could cost you visibility in the growing generative search landscape (GEO).
Think carefully before blocking search crawlers like OAI-SearchBot and PerplexityBot. These bots drive referral traffic to your site by citing and linking to your pages. Blocking them means your content won’t appear in AI-powered answers, which is an increasingly important traffic source.
For ChatGPT, the control is OAI-SearchBot, not ChatGPT-User. OpenAI’s crawler page says ChatGPT-User “is not used to determine whether content may appear in Search.”
Complete List of AI Crawlers
The ai.robots.txt community list tracked 210 user agents in November 2026. Here are the major AI crawlers worth knowing about:
Training Crawlers
| Company | User-Agent | Purpose |
|---|---|---|
| OpenAI | GPTBot |
Trains GPT models |
| Anthropic | ClaudeBot |
Trains Claude models |
Google-Extended |
Trains Gemini (does not affect Search rankings) | |
| Apple | Applebot-Extended |
Apple Intelligence / Siri |
| Meta | Meta-ExternalAgent |
Trains Meta’s AI models and indexes content for Meta products |
| Amazon | Amazonbot |
Improves Amazon products; may be used to train Amazon AI models |
| ByteDance | Bytespider |
ByteDance AI training |
| Common Crawl | CCBot |
Open dataset used by many AI labs |
| Cohere | cohere-ai |
Enterprise AI models |
| DeepSeek | DeepSeekBot |
LLM training (questionable robots.txt compliance) |
Blocking Google-Extended stops Gemini training, but it doesn’t keep your pages out of AI Overviews or AI Mode. Google controls that with a separate setting in Search Console, called Search generative AI, and its help page draws the line between the two:
“This control doesn’t affect AI training; to limit training of the models used to generate responses in Search generative AI features, use Google-Extended.” – Google Search Console Help
Where the setting lives and what excluding costs you is covered in the Google Search Console guide.
Search and Retrieval Bots
These bots fetch content to answer queries and typically cite your page with a link back:
| Company | User-Agent | Purpose |
|---|---|---|
| OpenAI | OAI-SearchBot |
Powers ChatGPT Search results |
| Anthropic | Claude-SearchBot |
Claude search results |
| Perplexity | PerplexityBot |
AI search engine |
| Amazon | Amzn-SearchBot |
Amazon AI search |
| Meta | Meta-WebIndexer |
Cites and links content in Meta AI answers |
OpenAI also runs OAI-AdsBot, which visits only landing pages submitted as ads on ChatGPT. OpenAI says it doesn’t use data from this bot to train foundation models.
AI Assistants (User-Triggered)
These assistants browse on behalf of a specific user. The idea behind blocking them is to stop the AI from looking up your content when a user asks. But most of these vendors say their user-triggered fetchers may not follow robots.txt:
| Company | User-Agent | Purpose |
|---|---|---|
| OpenAI | ChatGPT-User |
Real-time browsing for ChatGPT |
| Anthropic | Claude-User |
Real-time browsing for Claude |
| Perplexity | Perplexity-User |
User-triggered fetching (generally ignores robots.txt, per Perplexity) |
Google-Agent |
Agents on Google infrastructure that browse and act on user request | |
| Anthropic | Claude-Agent |
Anthropic-hosted browser that completes tasks for a user |
| Meta | Meta-ExternalFetcher |
Fetches links at a user’s request (may bypass robots.txt, per Meta) |
| Amazon | Amzn-User |
Live answers for Alexa queries |
Claude-Agent isn’t a robots.txt crawler. It’s a real browser that includes a Claude-Agent token in its user-agent. Anthropic publishes its IP addresses at claude.com/.well-known/sail, so you can allow or block it at the firewall.
Watch out for ChatGPT-User: OpenAI’s crawler documentation says that because a user initiates these actions, “robots.txt rules may not apply.” So a block for ChatGPT-User in your robots.txt file might not work.
This list evolves as new AI companies launch crawlers. For an up-to-date directory with over 200 entries, check the ai.robots.txt community project on GitHub or Known Agents.
How to Block AI Crawlers in robots.txt
Add User-agent and Disallow directives to your robots.txt file. This file sits at the root of your site (e.g., https://yoursite.com/robots.txt).
Block All AI Training Crawlers
To block the major training crawlers while keeping citation bots allowed:
# Block AI training crawlers
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: Applebot-Extended
Disallow: /
User-agent: Meta-ExternalAgent
Disallow: /
User-agent: Amazonbot
Disallow: /
User-agent: Bytespider
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: cohere-ai
Disallow: /
User-agent: DeepSeekBot
Disallow: /
This is the approach most publishers take: block training crawlers that absorb your content without attribution, but keep search and retrieval bots allowed so your site can appear in AI-powered answers.
Block Specific Paths Only
If you want AI crawlers to access some content but not all of it, block specific directories:
User-agent: GPTBot
Disallow: /premium-content/
Disallow: /members-only/
Allow: /blog/
User-agent: ClaudeBot
Disallow: /premium-content/
Disallow: /members-only/
Allow: /blog/
This lets AI models train on your public blog posts while protecting gated or premium content.
Block All AI Crawlers (Training and Search)
If you want to block every known AI crawler entirely:
# Block all AI crawlers (training + search + assistants)
User-agent: GPTBot
Disallow: /
User-agent: ChatGPT-User
Disallow: /
User-agent: OAI-SearchBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Claude-User
Disallow: /
User-agent: Claude-SearchBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: PerplexityBot
Disallow: /
User-agent: Perplexity-User
Disallow: /
User-agent: Applebot-Extended
Disallow: /
User-agent: Meta-ExternalAgent
Disallow: /
User-agent: Amazonbot
Disallow: /
User-agent: Bytespider
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: cohere-ai
Disallow: /
User-agent: DeepSeekBot
Disallow: /
Treat the ChatGPT-User and Perplexity-User lines as requests, not blocks. Both vendors say their user-triggered fetchers may not follow robots.txt.
Crawlers That Ignore robots.txt
Not every AI crawler plays by the rules. A few major ones are effectively invisible to robots.txt:
User-triggered fetchers fetch a page when someone asks for it. Perplexity says Perplexity-User “generally ignores robots.txt rules.” Google says the same about its user-triggered fetchers (including Google-Agent), and Meta says Meta-ExternalFetcher “may bypass robots.txt rules.”
Grok / xAI doesn’t have a well-documented crawler token that site owners can count on, so writing robots.txt rules for it is guesswork.
Bing Copilot uses the standard Bingbot user-agent, so you can’t block Copilot without also blocking Bing Search.
For these crawlers, the only effective defense is server-level blocking through a WAF (like Cloudflare’s AI Crawl Control), IP-based rules in your web server config, or rate limiting.
Cloudflare’s AI Crawler and Agent access policies let you choose how to handle Search, Agent and Training traffic separately. On new domains, all three start on “Allow (do not block),” so you have to turn on blocking yourself.
How to Edit robots.txt in WordPress
There are several ways to edit your robots.txt file in WordPress:
Option 1: Edit the File Directly
If you have a physical robots.txt file in your site’s root directory, edit it with any text editor and upload via FTP or your hosting file manager. This is the most reliable method.
Option 2: Use an SEO Plugin
Most SEO plugins let you edit robots.txt from the WordPress admin:
- Yoast SEO: Go to Yoast SEO > Tools > File Editor
- Rank Math: Go to Rank Math > General Settings > Edit robots.txt
Option 3: Use a Filter in functions.php
If WordPress generates your robots.txt dynamically (no physical file exists), you can add rules via the robots_txt filter:
add_filter( 'robots_txt', function( $output ) {
$output .= "\n# Block AI training crawlers\n";
$output .= "User-agent: GPTBot\nDisallow: /\n\n";
$output .= "User-agent: ClaudeBot\nDisallow: /\n\n";
$output .= "User-agent: Google-Extended\nDisallow: /\n\n";
$output .= "User-agent: Meta-ExternalAgent\nDisallow: /\n\n";
$output .= "User-agent: Amazonbot\nDisallow: /\n\n";
$output .= "User-agent: Bytespider\nDisallow: /\n\n";
$output .= "User-agent: CCBot\nDisallow: /\n";
return $output;
}, 99 );
robots.txt vs. llms.txt vs. ai.txt
Several standards now exist for managing AI access to your content. They serve different purposes:
robots.txtcontrols crawl access – which bots can visit which pages- llms.txt provides context – a content map so AI systems can understand and cite your site accurately
ai.txt(by Spawning) declares training permissions – specifically for AI model training, with EU TDM opt-out support- Content Signals (Cloudflare) add a
Content-signal:line torobots.txt. You can set each of three uses to yes or no:search,ai-inputandai-train
Vendors are starting to support training-preference signals. Since October 30, 2026, Anthropic has honored a “no AI training” signal based on the IETF aipref working group’s draft. If a robots.txt rule names ClaudeBot, that rule still takes priority over the signal.
A balanced approach I recommend: block training crawlers via robots.txt, provide an llms.txt so citation bots that do access your site represent you accurately, and add structured data markup so your content is easy for AI systems to parse.
How to Verify AI Crawlers Are Blocked
After updating your robots.txt, verify the rules are working:
- Visit
https://yoursite.com/robots.txtin your browser and confirm the new directives appear - Open the robots.txt report in Google Search Console to confirm Google fetched the new file and found no syntax errors. Google’s tools only check Googlebot, so confirm the AI user agents in your server logs.
- Test the live file with NorthDuty’s robots.txt tester. It fetches your site’s
robots.txtand tests URLs against GPTBot, ClaudeBot and other AI crawlers, as well as Googlebot. - Monitor your AI traffic in Google Analytics to see if crawler visits decrease over time
- Check your server access logs for the user-agent strings you blocked
Keep in mind that robots.txt is a voluntary protocol. The training and search crawlers from well-known AI companies (OpenAI, Anthropic, Google, Apple) respect it, but their user-triggered fetchers may not, and smaller or less scrupulous crawlers may ignore it. If you need stronger enforcement, consider server-level blocking through your web server configuration or a WAF (Web Application Firewall).
FAQs
Common questions about blocking AI crawlers with robots.txt:
OAI-SearchBot for search, and says robots.txt rules may not apply to ChatGPT-User.
robots.txt, but user-triggered fetchers such as ChatGPT-User, Perplexity-User and Meta-ExternalFetcher may not. robots.txt is a voluntary protocol with no technical enforcement. Smaller or unknown crawlers may ignore it. For stronger protection, combine robots.txt with server-level blocking using firewall rules or web server configuration.
Disallow: / (which blocks the entire site), you can block specific paths. For example, Disallow: /premium-content/ blocks only that directory. You can also use Allow: to permit access to specific paths within a blocked area. This gives you granular control over what AI systems can and cannot access.
ClaudeBot scrapes content for model training. Claude-User fetches pages in real time when a Claude user triggers web browsing. Claude-SearchBot indexes content for Claude's search results. Each can be blocked independently in robots.txt, and Anthropic states all three respect robots.txt directives. Its hosted browser, Claude-Agent, is separate: you identify it by its user-agent token and published IP addresses.
Perplexity-User, Google's user-triggered fetchers and Meta-ExternalFetcher say they may not follow robots.txt, because a person requested the page. xAI's Grok has no well-documented crawler token. Bing Copilot uses the standard Bingbot user-agent. For these, server-level blocking through a WAF like Cloudflare is the only effective approach.
Summary
AI crawlers now fall into three categories: training crawlers (GPTBot, ClaudeBot, Google-Extended) that absorb your content into models, search bots (OAI-SearchBot, Claude-SearchBot, PerplexityBot) that cite and link back to you, and AI assistants/agents that browse on behalf of users.
Most publishers block training crawlers but let search bots in. That’s what I do on this site. Add the User-agent and Disallow directives to your robots.txt, but keep in mind that user-triggered fetchers and some crawlers (Grok) may bypass it.
For a complete strategy, combine robots.txt with an llms.txt file and structured data. Block what you don’t want, and guide the bots you allow toward accurate citations. To verify your setup, run a free AI Visibility Audit.
