October 18, 2026 ·

Robots.txt Rules for AI Crawlers: What to Allow, Block and Enforce

robots.txt rules for ai search engines in 2025, an illustration for CiteTrack AI

⚡ Key takeaways

  • → Robots.txt is a request, not a lock. Every major AI company honors it. Scrapers that ignore it need enforcement at the server or CDN, not another line in a text file.
  • → Sort bots by job, not by company. Training crawlers feed future models. Answer fetchers read your page to answer a question right now. Search indexers build the index those answers come from. Blocking the first costs you nothing. Blocking the other two makes you invisible.
  • → Every vendor now runs several bots. One "Disallow: ClaudeBot" line blocks training and leaves Claude-User and Claude-SearchBot untouched, which is usually what you want.
  • → Blocking Google-Extended stops your content feeding Gemini training and grounding. It does not affect your Google Search ranking, which runs on Googlebot.
  • → Verify before you trust. Check your access logs for 200 and 403 responses by user agent, and confirm a bot is real with reverse DNS before you act on its traffic.

Most robots.txt advice for AI crawlers is written as if there were one decision to make: let them in or keep them out. There isn't. There are three different kinds of bot arriving at your site for three different reasons, and the right answer is usually different for each.

This guide covers what each bot does, what to write for the outcome you want, and what to do about the crawlers that ignore the file entirely.

What robots.txt actually controls

Robots.txt is a plain text file at the root of your domain that tells automated visitors which paths they may request. It is published, voluntary and unauthenticated. There is no enforcement in the protocol itself.

OpenAI, Anthropic, Google, Perplexity, Apple and Microsoft all honor it. They publish their user agent strings precisely so you can write rules for them. Anthropic's documentation states that its crawlers respect robots.txt directives and will not attempt to bypass CAPTCHAs.

Two consequences follow. A compliant company will do what your file says, so a careless line can cost you real visibility. And a bad actor will do whatever it wants, so robots.txt is the wrong tool for stopping theft. Those are separate problems with separate fixes, and the second half of this guide covers the second one.

The three jobs AI bots do

Sorting bots by company leads to bad decisions. Sorting them by job leads to good ones.

Training crawlers collect text that may be used to train future models. Allowing them is a long-term bet on being represented in what models know. Blocking them costs you nothing today.

Answer fetchers arrive when a person asks a question right now. The assistant retrieves your page, reads it, answers, and usually links you. These are the bots that produce citations and referral traffic. Blocking them removes you from live answers.

Search indexers build the index the assistant searches before it fetches anything. Block one and you are not in the candidate pool at all, which is a quieter and more complete form of invisibility.

User agentCompanyJobUsual call
GPTBotOpenAITrainingYour call
OAI-SearchBotOpenAISearch indexingAllow
ChatGPT-UserOpenAIAnswer fetchingAllow
ClaudeBotAnthropicTrainingYour call
Claude-SearchBotAnthropicSearch indexingAllow
Claude-UserAnthropicAnswer fetchingAllow
Google-ExtendedGoogleGemini training and groundingYour call
GooglebotGoogleSearch and AI OverviewsAlways allow
PerplexityBotPerplexitySearch indexingAllow
Perplexity-UserPerplexityAnswer fetchingAllow
ApplebotAppleSearch and SiriAllow
Applebot-ExtendedAppleTrainingYour call
BingbotMicrosoftSearch index behind CopilotAllow
Meta-ExternalAgentMetaTrainingYour call
CCBotCommon CrawlOpen dataset used for trainingYour call
BytespiderByteDanceTrainingYour call

Why one Claude line is not enough

Anthropic runs three separate crawlers, and this is where most published robots.txt advice is now wrong. ClaudeBot collects training data. Claude-SearchBot builds the search index. Claude-User fetches pages when someone asks Claude a question.

Each needs its own directive. Disallowing ClaudeBot does nothing to the other two, which is exactly the outcome most sites want: stay out of training, stay inside answers. Anthropic warns that blocking Claude-SearchBot prevents its system from indexing your content, which may reduce your visibility and accuracy in user search results.

OpenAI works the same way. GPTBot is training. OAI-SearchBot is the index. ChatGPT-User is the live fetch. Treat any vendor as a set of bots, never as one name.

The expensive mistake. A blanket block on every AI user agent you can find keeps you out of training data you were never paid for, and also out of every citation, every answer and every referral click. Teams usually discover this months later, when a competitor is quoted for their own brand query.

Three rules you can paste

Pick the one that matches your goal. Each belongs in the file at https://yourdomain.com/robots.txt.

1. Maximum visibility. Everything in, training included. Best for publishers, SaaS, and anyone who wants to be the brand models know.

User-agent: *
Allow: /

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

2. Stay visible, skip training. The setting most businesses want. Answer fetchers and search indexers in, training crawlers out.

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: CCBot
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: Claude-User
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Perplexity-User
Allow: /

User-agent: Googlebot
Allow: /

User-agent: Bingbot
Allow: /

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

3. Protect specific sections only. Keep the public site open and fence off what should never appear in an answer.

User-agent: *
Disallow: /members/
Disallow: /checkout/
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

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

Paths are case sensitive. A rule for /Members/ does not cover /members/. And robots.txt only governs crawling, so a page already indexed can still appear in results after you disallow it. Use a noindex meta tag for that job.

Does blocking Google-Extended hurt your rankings?

No. Google-Extended controls whether your content is used for Gemini training and grounding. Google Search crawling and ranking run on Googlebot, which is a separate agent and is unaffected by a Google-Extended rule.

The real trade-off is narrower and worth stating plainly. Blocking Google-Extended reduces the chance of your content being used to ground Gemini answers. It does not remove you from AI Overviews, which draw on Google's main search index through Googlebot. If you want to be in AI Overviews and out of Gemini training, a Google-Extended block is exactly the right instrument.

Never disallow Googlebot to control AI exposure. That removes you from Google Search entirely.

When robots.txt is not enough

Compliant companies follow the file. Scrapers do not, and some disguise themselves as browsers while they work. If your concern is content theft rather than model training, the file is the wrong layer.

Verify the bot before you act on it. A user agent string is self-reported and trivial to fake. The reliable check is forward-confirmed reverse DNS: take the IP, run a reverse lookup, confirm it resolves to the vendor's domain, then resolve that hostname forward and confirm it returns the same IP. OpenAI and Anthropic also publish their crawler IP ranges as JSON files you can match against, and Anthropic notes that IP-based blocking alone is unreliable because ranges change.

Enforce at the edge, not in the text file. A Cloudflare rule, an Nginx or Apache deny rule, or an edge function returning 401 will actually stop a request. Robots.txt only asks.

Watch for behavior, not names. Cloaked scrapers announce a normal browser user agent, then request hundreds of pages a minute, ignore your sitemap ordering, never load CSS or images, and arrive from a hosting ASN rather than a consumer network. That pattern is the signal, not the string.

When blocking costs more than the scraping does

Aggressive blocking has a price that shows up later. Three cases where it is usually the wrong call.

Your content is marketing. If the page exists to win customers, being read by an assistant and quoted to a buyer is the point, not the threat.

You cannot tell the bots apart yet. Blanket rules written in a hurry take out answer fetchers along with training crawlers. Measure first, then decide.

The enforcement burden lands on your team. Edge rules need maintenance, and false positives block real users and real search bots. A rule that silently 403s Googlebot is a far more expensive mistake than a scraper copying a blog post.

Blocking makes clear sense for paywalled articles, proprietary research you sell, member-only material and anything you are contractually obliged to protect.

Confirm your file is doing what you think

Writing the rule is half the job. Confirming the bots can act on it is the other half.

  1. Load the file. Open yourdomain.com/robots.txt in a browser. If your SEO plugin generates it virtually, the file on disk may not be what gets served.
  2. Read your access logs by user agent. A 200 means the bot was served. A 403 means something blocked it before robots.txt was ever consulted. A 429 means you are rate limiting it.
  3. Check the layers above the file. Security plugins and CDN bot-fighting modes block AI crawlers by default in some configurations, which is the most common reason an allow rule appears to do nothing.
  4. Run the page through a checker. CiteTrack's free AI Crawlability Checker tests whether the major AI agents can actually reach a given URL, and the AI Crawler Log Analyzer reads an exported log file and tells you who came and what they got.

For the full five-step version of this audit, including the plugin and CDN settings that cause most silent blocks, see is your website crawlable by AI.

Frequently asked questions

Does blocking GPTBot remove me from ChatGPT answers?

No. GPTBot is OpenAI's training crawler. ChatGPT answers that cite live web pages come from OAI-SearchBot and ChatGPT-User. Block GPTBot and allow those two to stay out of training while remaining citable.

Will a Google-Extended block hurt my Google rankings?

No. Ranking runs on Googlebot, a different agent. Google-Extended only governs Gemini training and grounding. Disallowing Googlebot, on the other hand, removes you from Google Search.

How do I block training without losing citations?

Disallow the training agents (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, Meta-ExternalAgent, CCBot, Bytespider) and explicitly allow the answer and search agents (OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot, Perplexity-User, Googlebot, Bingbot).

How long until a robots.txt change takes effect?

Crawlers cache the file, so expect up to about a day for most vendors to act on a change. If nothing changes after several days, check whether a firewall or CDN rule is overriding your file.

Can I stop AI companies from using content they already took?

Robots.txt is forward-looking only. It governs future requests and does nothing about data already collected or models already trained. Treat it as a going-forward policy, not a recall.

Is an llms.txt file a substitute for robots.txt?

No. Robots.txt is an established standard that major crawlers obey. llms.txt is a proposed convention with limited adoption. Write robots.txt first, and treat llms.txt as optional.

Where to go from here

Once your rules are right, the next question is whether the bots that can reach you actually cite you. AI crawler analytics shows which bots hit which pages from your own server logs, with reverse DNS verification and spoofed agents flagged. For crawl timing after you change a page, see how often AI crawlers revisit a page. For OpenAI's three agents in detail, see ChatGPT robots.txt rules. And if you have allowed the bots and they still are not arriving, see how to whitelist AI crawlers in WordPress.

Guides · , ,

Want to see if AI cites pages like this?

CiteTrack AI tracks your AI crawlers, citations, and the revenue they drive, inside WordPress.

Get CiteTrack AI

Explore: Features · Crawl Academy · Glossary · Compare · Pricing