Skip to content

Tools

Block AI Crawlers With robots.txt: Allow, Block or Charge

Not every AI bot is the same. Learn which crawlers train models, which power AI answers and which act for users, then pick a robots.txt policy that fits your business.

Hand on a laptop trackpad with lines of code on screen and reading glasses resting on a wooden desk in low lightBlock AI Crawlers With robots.txt: Allow, Block or Charge

To block AI crawlers with robots.txt, add a User-agent group for each bot's token, such as GPTBot or ClaudeBot, followed by Disallow: /. The harder question is which bots to block. Training crawlers, AI search crawlers and user-triggered fetchers do different jobs, and blocking the wrong one removes you from AI answers.

Key Takeaways

  • AI bots fall into three groups: training crawlers, search and retrieval crawlers, and fetchers triggered by a user's request. Decide per group, not per company.
  • Blocking a search crawler such as OAI-SearchBot or PerplexityBot takes you out of that engine's answers. Blocking a training crawler such as GPTBot does not.
  • Google-Extended controls Gemini training and grounding, not Google Search. To leave AI Overviews and AI Mode while staying in Search, Google now offers a Search Console control, rolled out worldwide by August 31, 2026.
  • Cloudflare changed its defaults on September 15, 2026 for new sites and unchanged free plans. Check your CDN before you assume your robots.txt is the policy in force.
  • robots.txt is a request, not a lock. Enforce at the CDN for bots that ignore it, and use a login for anything private.
  • Ahrefs found that 97% of llms.txt files got zero requests in May 2026. Publish one if it is cheap, but do not count on it.

This guide is for marketing leaders, founders and the developers who keep their sites running. Cyberdunes runs GEO and page speed services for brands that want to be cited by AI engines, and we set our own AI crawler policy in our robots.txt on October 17, 2026. Every user-agent token below was checked against the vendor's own documentation in October 2026.

What Are the Three Kinds of AI Crawlers?

AI crawlers are bots run by AI companies, and they fall into three groups by purpose: training, search and retrieval, and user-triggered fetching. The group, not the company name, tells you what you gain or lose by blocking it.

  • Training crawlers collect pages that may be used to train future models. OpenAI says GPTBot crawls content that "may be used in training our generative AI foundation models" (OpenAI). They send no visitors today.
  • Search and retrieval crawlers build the index an AI engine searches when it writes an answer with citations. OpenAI states that sites opted out of OAI-SearchBot "will not be shown in ChatGPT search answers" (OpenAI).
  • User-triggered fetchers load a single page because a person asked the assistant to. OpenAI notes that for ChatGPT-User, "robots.txt rules may not apply" because a user started the action.

The split matters because traffic flows differently. Cloudflare found that training accounted for nearly 80% of AI bot crawling in mid-2025, and that in the first week of August 2025 Anthropic crawled nearly 50,000 pages for each referral it sent, OpenAI 887 and Perplexity 118 (Cloudflare, August 2025). Cloudflare notes that referrals from native apps may be undercounted, so treat the ratios as directional. The pattern still holds: training takes, search gives something back.

Three-column diagram of AI crawlers by purpose: training crawlers such as GPTBot and ClaudeBot, search crawlers such as OAI-SearchBot and PerplexityBot, and user-triggered fetchers such as ChatGPT-User
Decide by purpose: training, search and user-triggered bots trade off differently.

Which AI Bots Should You Allow or Block?

For most brands, allow every documented search crawler and user-triggered fetcher, decide on training crawlers deliberately, and block bots with no public documentation. The table lists each token as its operator documents it, with our default for a brand that wants AI visibility.

TokenOperatorPurposeWhat the vendor says about robots.txtBrand default
GPTBotOpenAITrainingDisallowing it signals content should not be used for trainingAllow
OAI-SearchBotOpenAIChatGPT searchOpted-out sites are not shown in ChatGPT search answersAllow
ChatGPT-UserOpenAIUser actions in ChatGPT and Custom GPTsRules may not applyAllow
GooglebotGoogleGoogle Search, including AI Overviews and AI ModeBlocking it removes you from SearchAllow
Google-ExtendedGoogleGemini training and grounding (a token, not a crawler)No effect on Search inclusion or rankingAllow
ClaudeBotAnthropicTrainingHonored; excludes future content from trainingAllow
Claude-SearchBotAnthropicSearch indexingBlocking prevents indexing for searchAllow
Claude-UserAnthropicFetches for user questionsBlocking prevents retrieval for user queriesAllow
PerplexityBotPerplexitySearch results; not used for foundation model trainingPerplexity recommends allowing itAllow
Perplexity-UserPerplexityUser actionsGenerally ignores robots.txtAllow
Applebot-ExtendedAppleApple model training (a token, not a crawler)Search results unaffectedAllow
CCBotCommon CrawlOpen web archive used widely for research and AIDisallow to blockAllow
Meta-ExternalAgentMetaTraining AI models or indexing contentDisallow to blockAllow
Meta-ExternalFetcherMetaFetches links at a user's requestMay bypass robots.txtAllow
BytespiderByteDanceNot documentedNo vendor page we could findBlock at CDN

Sources for each row: OpenAI crawlers, Google common crawlers, Anthropic, Perplexity crawlers, About Applebot, Common Crawl CCBot and Meta web crawlers. OpenAI says changes take about 24 hours to reach its search systems, and Perplexity says up to 24 hours.

Why allow training crawlers if you are a brand? Training data shapes what a model "knows" about your category before it searches. If your product pages and guides are absent, the model leans on reviews, competitors and old press. We explain how engines pick sources in How Do LLMs Choose Sources to Cite?

How Does Google-Extended Relate to Googlebot and AI Overviews?

Google-Extended does not control AI Overviews. It controls whether Google can use your content to train Gemini models and to ground answers in Gemini Apps and Vertex AI, and Google states that it "does not impact a site's inclusion in Google Search nor is it used as a ranking signal" (Google).

AI Overviews and AI Mode are part of Google Search, which Googlebot crawls. Blocking Googlebot to escape AI Overviews would remove you from Search entirely. Until 2026 the only finer controls were snippet rules such as nosnippet, which also trim your regular listing.

That changed on June 3, 2026. Google announced a Search Console toggle that lets a site decide whether it appears in, and helps ground, AI Overviews, AI Mode and AI Overviews in Discover. Google says opted-out sites "will not receive traffic or impressions from our generative AI features," and that the control is not a ranking signal for regular results. Google's note says the control reached all websites worldwide as of August 31, 2026 (Google, June 2026).

For most brands the right setting is to stay in. AI Overviews and AI Mode are where many buyers now meet your category. If you want more of those citations, start with our guide to getting into Google AI Mode answers.

What Changed With Cloudflare's AI Crawler Defaults?

If your site sits behind Cloudflare, your CDN settings may be blocking AI bots that your robots.txt allows. Check the dashboard before you edit anything else.

  • July 1, 2025. Cloudflare began to "block AI crawlers accessing content without permission or compensation, by default," and asked every new domain whether to allow AI crawlers. It said more than one million customers had already turned on its one-click AI bot block (Cloudflare).
  • Pay per crawl. Launched in private beta the same day. A site sets a price, and AI crawlers receive an HTTP 402 Payment Required response with the price, then choose to pay or leave. Owners can allow, charge or block each crawler (Cloudflare).
  • July 1, 2026. Cloudflare split AI access into search, agent and training controls, and turned pay per crawl into pay per use, which pays publishers when their content appears in AI answers. Launch partners are Ceramic.ai and You.com (Cloudflare).
  • September 15, 2026. New customers, new sites and free customers who have not changed their settings get defaults that "allow for search but block training and agent use for pages with ads." Mixed crawlers that do not offer separate choices are blocked on all pages with ads (Cloudflare).

Two practical points. First, if you are on the free plan and never touched these settings, your defaults changed on September 15 for pages that carry ads. Second, "agent use" covers some user-triggered fetchers. If you want AI assistants to read your pages on a buyer's behalf, allow agent use explicitly. Our guide to designing sites AI agents can use covers the rest of that work.

How Do You Decide: Allow, Block or Charge?

Decide with three questions: how you make money from a visit, whether AI answers can substitute for your content, and whether you have the bargaining power to be paid. Most brands should allow almost everything. Publishers and SaaS companies need more nuance.

  1. Does your revenue come from what the visitor does after reading, or from the reading itself? A brand, retailer or service firm earns money when someone buys, books or calls. An AI answer that names you helps. A publisher earns from ads and subscriptions on the page, so an answer that replaces the visit costs money.
  2. Can an AI answer substitute for your page? Recipes, news summaries and reference data are easy to substitute. A product page, a booking engine or a software trial is not.
  3. Do you have the bargaining power to charge? Pay per crawl and licensing deals suit sites with unique, frequently updated content in demand. A small brand that blocks training crawlers to get paid will mostly get ignored.
Policy matrix showing allow, block or charge decisions for six AI bot groups across three business types: a brand seeking AI visibility, a publisher and a SaaS company with gated documentation
A starting policy: brands allow, publishers block training, SaaS opens only public pages.

We recommend writing the decision down with an owner and a review date. That is what we did: the comment at the top of our own robots.txt records that all three AI categories were deliberately allowed on October 17, 2026, and asks for a quarterly review against vendor documentation.

Copy-Paste robots.txt Policies for Three Business Types

Each policy below lists named bots in groups and repeats the private paths in every group. Replace the example paths and sitemap URL with your own, then test before you publish.

The repetition is deliberate. Under RFC 9309, a crawler obeys the group that names it and only falls back to the User-agent: * group "if no matching group exists" (Rfc 9309). A GPTBot group with only Allow: / lets GPTBot into your cart and account pages, even if the * group blocks them. This is the most common mistake we see in AI bot policies.

Policy A: A Brand That Wants AI Visibility

Allow search, user-triggered and training bots; keep thin and private paths out; ask Bytespider to stay away and enforce that at the CDN.

# Policy A: brand that wants AI visibility
# Search engines, AI search, user-triggered fetchers and training crawlers
User-agent: Googlebot
User-agent: Bingbot
User-agent: Applebot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: Meta-ExternalAgent
Disallow: /cart/
Disallow: /account/
Disallow: /search/
Allow: /

# No public vendor documentation: ask it to stay out, then enforce at the CDN
User-agent: Bytespider
Disallow: /

# Everyone else
User-agent: *
Disallow: /cart/
Disallow: /account/
Disallow: /search/

Sitemap: https://www.example.com/sitemap.xml

Policy B: A Publisher

Stay in search and AI answers, which still send readers, and refuse training. Blocking Google-Extended also stops Gemini Apps from grounding answers in your pages, and does not touch Google Search. To leave AI Overviews too, use the Search Console control, not robots.txt. Consider pay per crawl or pay per use if your content is unique.

# Policy B: publisher
# Stay in search and AI answers; refuse model training
User-agent: Googlebot
User-agent: Bingbot
User-agent: Applebot
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
User-agent: ChatGPT-User
User-agent: Claude-User
User-agent: Perplexity-User
Disallow: /account/
Allow: /

# Training crawlers and training opt-out tokens
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: Meta-ExternalAgent
User-agent: Bytespider
Disallow: /

# Everyone else
User-agent: *
Disallow: /account/

Sitemap: https://www.example.com/sitemap.xml

Policy C: A SaaS Company With Gated Docs

Open the marketing site and public documentation to every documented bot. Developers increasingly ask assistants how to use a product, and answers drawn from your own docs are more accurate than answers drawn from forum threads. Customer-only documentation belongs behind a login.

# Policy C: SaaS with gated documentation
# Marketing site and public docs open to every named bot.
# The app, API and customer docs sit behind a login, not just this file.
User-agent: Googlebot
User-agent: Bingbot
User-agent: Applebot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: Meta-ExternalAgent
Disallow: /app/
Disallow: /api/
Disallow: /account/
Allow: /

User-agent: Bytespider
Disallow: /

# Everyone else
User-agent: *
Disallow: /app/
Disallow: /api/
Disallow: /account/

Sitemap: https://www.example.com/sitemap.xml

Never list secret paths in robots.txt. The file is public, so a line such as Disallow: /internal-pricing/ advertises the page to anyone who reads it. Protect those pages with authentication and leave them out of the file.

What Can't robots.txt Do?

robots.txt cannot stop a bot that chooses to ignore it. The standard says plainly: "These rules are not a form of access authorization" (RFC 9309, September 2022).

  • Compliance is selective. A study of 130 self-declared bots over 40 days found bots were less likely to comply with stricter directives, and that some categories, including AI search crawlers, rarely check robots.txt at all (Kim et al., arXiv, 2025).
  • User-triggered fetchers are exempt by design. OpenAI says robots.txt rules may not apply to ChatGPT-User. Perplexity says Perplexity-User "generally ignores robots.txt rules," and Meta says Meta-ExternalFetcher "may bypass robots.txt rules."
  • Names can be faked. Common Crawl warns that some crawlers falsely claim to be CCBot and suggests reverse DNS checks (Common Crawl). Perplexity publishes IP lists for its bots so you can verify them in firewall rules (Perplexity).
  • It is not retroactive. Blocking a training crawler today affects future crawls. Anthropic, for example, says a block signals that "future materials" should be excluded (Anthropic).
Five AI bot control layers: robots.txt as a voluntary request, CDN or WAF rules that enforce, pay per crawl that charges, the Search Console AI toggle and a login
robots.txt asks. CDN rules, payment, Google's toggle and logins do the enforcing.

A sound setup uses robots.txt to state the policy, CDN or firewall rules to enforce it for bots that misbehave, and authentication for anything private. Our website security checklist covers the firewall basics.

Does llms.txt Help? What the Evidence Says

llms.txt is a Markdown file at your site root that points language models to your most important pages. It is a community proposal, not a standard, and current evidence shows AI bots rarely request it.

Ahrefs studied 137,210 domains in its web analytics product. In June 2026 it reported that 28% of them publish an llms.txt file, and that 97% of those files received zero requests in May 2026. Among the few files that were fetched, about 19.5% of requests came from named AI tools, led by GPTBot (Ahrefs, June 2026). Ahrefs treats its numbers as a ceiling: its customers skew technical, and a fetch is not proof that a model used the file.

Our view: llms.txt costs little to publish and maintain if your platform generates it, so keep one, but spend your effort on crawlable pages, clear answers and structured data. Our support guide explains how to set up llms.txt, IndexNow and Schema, and the GEO checklist lists the work that moves citations.

How Do You Roll Out an AI Crawler Policy?

Treat the policy as a small project with an owner, a test and a review date. Most teams can finish in two weeks.

  1. Audit what is already in force (day 1 to 2, developer). Read your live robots.txt, your CDN bot settings and any WordPress or SEO plugin rules. On WordPress, check both your SEO plugin's robots.txt editor and whether a physical robots.txt file sits in the site root, because the two can disagree.
  2. Check your logs (day 2 to 4, developer). List which AI user agents hit the site in the last 30 days, which pages they fetch and whether any blocked bot still arrives.
  3. Decide per group (day 5, marketing lead with legal for publishers). Use the matrix above. Write down the reasons.
  4. Write and test the file (day 6 to 7, developer). Start from the template, repeat private paths in each group and validate the syntax before deploying.
  5. Align the CDN (day 8, developer). Make Cloudflare or your WAF match the policy, and add hard blocks for bots you refuse.
  6. Measure (week 2 onward, marketing). Track AI referral visits and citations. Our guide to tracking AI traffic in GA4 shows the setup, and an AI visibility checker shows whether engines cite you.
  7. Review quarterly (owner named in the file). Vendors add and rename bots. Recheck each vendor page against your file.

How Cyberdunes and Apex® Help

Apex®, the AI-native digital experience platform (DXP) we build, publishes your XML sitemaps, Schema.org JSON-LD and llms.txt, pings IndexNow when pages change, and tracks prompts, citations and sentiment across ChatGPT, Gemini, Claude, Perplexity and Google AI Overviews. That lets you see whether a robots.txt or CDN change moved your AI visibility, instead of guessing.

If you want a second pair of eyes on your policy, our GEO services team reviews robots.txt, CDN rules and crawl logs, and maps the pages AI engines should read first. No setting can guarantee a citation, but the wrong setting can guarantee you never get one.

Book an AI crawler policy review

Sources

FAQs

Questions, Answered

Can’t find what you’re looking for? Our team is happy to help.

How do I block AI crawlers with robots.txt?

Add a group for each bot in the robots.txt file at your site root, for example "User-agent: GPTBot" followed by "Disallow: /". Use the exact token the vendor documents. Repeat any private paths inside every named group, because a bot that finds its own group ignores the "User-agent: *" rules. Then enforce at your CDN for bots that ignore the file.

Should I block AI crawlers on my website?

Most brands should not block AI search crawlers, because blocking them removes you from AI answers that name products and suppliers. Decide on training crawlers separately. Publishers whose pages can be replaced by an AI summary have the strongest case to block training or charge for access. Bots with no public documentation, such as Bytespider, are reasonable to block.

What is the difference between GPTBot, OAI-SearchBot and ChatGPT-User?

GPTBot crawls content that may be used to train OpenAI's models. OAI-SearchBot indexes pages for ChatGPT search, and OpenAI says opted-out sites are not shown in ChatGPT search answers. ChatGPT-User fetches pages when a user asks ChatGPT or a Custom GPT to, and OpenAI says robots.txt rules may not apply to it. Each setting is independent.

Does blocking Google-Extended remove my site from AI Overviews?

No. Google-Extended controls whether Google uses your content to train Gemini models and ground answers in Gemini Apps and Vertex AI. Google says it does not affect inclusion or ranking in Google Search. AI Overviews and AI Mode are part of Search. To opt out of those features, use the Search Console control Google announced in June 2026.

How do I opt out of Google AI Overviews without leaving Google Search?

Use the Search Console control Google announced on June 3, 2026. It lets a site choose whether it appears in and helps ground AI Overviews, AI Mode and AI Overviews in Discover. Google says it reached all websites worldwide by August 31, 2026. Opted-out sites get no traffic from those features, and the setting is not a ranking signal for regular results.

What did Cloudflare change about blocking AI crawlers by default?

On July 1, 2025, Cloudflare began blocking AI crawlers by default unless they had permission and asked new domains whether to allow them. From September 15, 2026, new sites and unchanged free plans default to allowing search but blocking training and agent use on pages with ads. Check your dashboard, because these settings can override what your robots.txt allows.

What is Cloudflare pay per crawl?

Pay per crawl is a Cloudflare feature, launched in private beta in July 2025, that lets a site charge AI crawlers per request. Crawlers get an HTTP 402 Payment Required response with the price and can pay or leave. In July 2026 Cloudflare began moving to pay per use, which pays publishers when their content appears in partner AI answers.

Do AI crawlers obey robots.txt?

The major documented crawlers from OpenAI, Anthropic, Google, Apple and Common Crawl describe robots.txt as their opt-out. User-triggered fetchers are different: OpenAI, Perplexity and Meta say their user-initiated fetchers may not follow it. A 2025 study of 130 bots also found compliance falls as rules get stricter. Treat robots.txt as a request and enforce at the CDN.

How do I block AI crawlers on WordPress?

Edit robots.txt through your SEO plugin's file editor or upload a robots.txt file to the site root, then add a group for each AI bot you want to block. Confirm the live file at yoursite.com/robots.txt matches what you wrote, since plugins and physical files can conflict. Check your CDN bot settings too, because Cloudflare can block AI bots before WordPress sees them.

Does llms.txt help AI search visibility?

There is little evidence that it does yet. Ahrefs found that 97% of llms.txt files across the 137,210 domains it studied received zero requests in May 2026, and a request does not prove a model used the file. It costs little to publish, so keeping one is reasonable, but crawlable pages and clear answers matter far more.

Should a SaaS company let AI crawlers read its documentation?

Yes, for public documentation. Developers ask AI assistants how to use products, and answers grounded in your own docs are more accurate than answers built from forum posts. Disallow the app, API and account paths in robots.txt, and put customer-only documentation behind a login, because robots.txt is public and is not an access control.

How often should I review my AI crawler policy?

Review it at least quarterly. Vendors add, rename and repurpose bots, and CDN providers change defaults, as Cloudflare did in July 2025 and again in September 2026. Name an owner and a review date in a comment at the top of robots.txt, recheck each vendor's crawler page and compare your logs against the policy.

Put It Into Practice

Want Help Putting These Ideas to Work in Your Business?