---
title: "Blocking AI crawlers: what works and what doesn’t"
url: https://www.devjpt.com/en/blog/block-ai-crawlers/
site: "Jean-Philippe Thériault"
type: post
language: en
published: 2026-12-01T00:37:56+00:00
updated: 2026-12-01T00:37:56+00:00
author: "Jean-Philippe Thériault"
description: "Robots.txt, server rules, firewalls, WordPress plugins: how to block AI crawlers, how to handle impostors, and what it costs you in AI answers."
translations:
  ca: https://www.devjpt.com/ca/blog/bloquejar-robots-ia/
  es: https://www.devjpt.com/es/blog/bloquear-robots-ia/
  fr: https://www.devjpt.com/blog/bloquer-robots-ia/
agent:
  instructions: "This site offers a search endpoint for AI agents. Results are returned in Markdown."
  endpoint: "https://www.devjpt.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://www.devjpt.com/.well-known/agent-skills/lire-devjpt/SKILL.md"
---

# Blocking AI crawlers: what works and what doesn’t

*Updated November 30, 2026.*

Yes, you can block AI crawlers, at several levels, but none of them is perfect. Robots.txt obliges no one, a crawler’s name can be imitated, a block only applies going forward, and a setting that is too broad can remove you from Google or from assistants’ answers. Blocking, letting through or charging: all three choices are legitimate.

This article is about intentional blocking. If you are instead worried that you blocked ChatGPT without meaning to, for example with an overzealous firewall, see [GPTBot and OAI-SearchBot: robots.txt rules for ChatGPT](https://www.devjpt.com/en/blog/robots-txt-for-chatgpt/).

## Before blocking: decide what you are refusing

The major providers often have one crawler per use: training, search, and agents that read a page at a user’s request. OpenAI, Anthropic, Google and Apple separate these settings, and Microsoft will do so starting February 1, 2027: you can refuse training while still being cited. This balance is the subject of [Show up in ChatGPT](https://www.devjpt.com/en/blog/show-up-in-chatgpt/); the map of choices is in [AI and your website](https://www.devjpt.com/en/blog/ai-and-your-website/), and each crawler is described in [The list of AI crawlers and what each one does](https://www.devjpt.com/en/blog/ai-crawlers-list/).

Server load is also a valid reason: Read the Docs paid more than US$5,000 in bandwidth for a single crawler in May 2024, before blocking it. That is a very large site; a small site will not necessarily experience the same thing.

## The levels of blocking, from the gentlest to the firmest

| Level | What it blocks | What it doesn’t block |
| --- | --- | --- |
| 1. Robots.txt | Crawlers that choose to respect it, such as those of Anthropic, Google and Common Crawl, according to them. | Those that ignore it, some on-request agents, and what has already been collected. |
| 2. A WordPress plugin | Depending on its type: lines added to robots.txt (a request), or an actual refusal of requests. | Depending on its type, the same as level 1 or level 3. |
| 3. A server rule | Requests that announce themselves under a given name: the server responds with a refusal instead of the page. | A crawler that changes its name; at some web hosts, pages served from the cache. |
| 4. The web host’s setting | Whatever the web host has provided for, sometimes a switch per crawler. | It varies: some deliberately spare search engines and agents. |
| 5. The firewall or CDN | Requests, before they reach the site, by category or crawler by crawler. | Crawlers it does not recognize. A category that is too broad can block Googlebot. |
| 6. A login or paywall | Any visitor without an account, crawlers included: to truly control access, the robots.txt standard points to a real security measure, such as authentication. | Almost nothing. The downside: no one without an account can read the page anymore, search engines included, unless special arrangements are made. |

Robots.txt is a request, not a lock: the RFC 9309 standard states that its rules are not a form of access authorization. The signals that complement it are in [Refusing AI training: opt-out signals beyond robots.txt](https://www.devjpt.com/en/blog/ai-training-opt-out-signals/). Moving up a level adds nothing against a crawler that already respects the file; Anthropic even warns that blocking its IP addresses may not guarantee a lasting refusal, because it prevents Anthropic from reading your robots.txt. The firm levels are mainly useful against crawlers that don’t follow it.

Apache, nginx and LiteSpeed servers can refuse a request based on the user agent, the name the visitor gives itself. Apache’s own documentation warns that this is “an unreliable technique”: that name can be anything.

### Cloudflare: check your own settings

Since 2024, Cloudflare has allowed all its customers, free plan included, to block AI crawlers. Its documentation now describes three categories, Search, Agent and Training, which can be blocked, blocked on pages that display ads, or allowed; for training, “Disallow” also adds a request to robots.txt. AI Crawl Control, available on all plans, also blocks crawler by crawler; on the free plan, it recognizes them by their user agent.

The default settings? Cloudflare has announced several changes, in 2025 and then in 2026, and its own pages do not agree on the current state. Open your dashboard and look at what is actually set for your domain.

**Warning:** according to a Cloudflare blog post (July 2026) and the web host Kinsta, blocking the “Training” category also blocks Googlebot, Bingbot and Applebot, which Cloudflare classifies as both search and training crawlers. Kinsta warns that this can remove your site from search results. Cloudflare’s current documentation confirms that the “Training” category’s actions also apply to these dual-use crawlers, without naming them; only the “Disallow” action, with Bot Preference Sync, excludes them from the block.

Finally, Cloudflare is testing pay per crawl in closed beta: see [Getting paid when AI uses your content](https://www.devjpt.com/en/blog/get-paid-when-ai-uses-your-content/).

### Other CDNs and WordPress web hosts

Vercel offers an “AI Bots” rule on all its plans, turned off by default; Fastly offers similar controls in a paid product, Bot Management, and Akamai in its Bot & Agent Control offering. Among web hosts, Kinsta offers a setting in beta that spares Googlebot, Bingbot, AI search crawlers and on-request agents. Hostinger offers a switch per crawler, and warns that its CDN’s security can block crawlers that robots.txt allows. SiteGround blocked training crawlers by default according to its 2025 page, but its November 2026 version no longer mentions this. In short: ask your web host what it already blocks.

### WordPress plugins: two families

When there is no robots.txt file at the root, WordPress produces a “virtual” one, which plugins can modify. Some simply add lines to it: a request. Others, for example some security plugins, actually refuse requests, notably based on the user agent, with the limits of a server rule. Check which family yours belongs to, then open `yoursite.com/robots.txt` to see what is really being served.

## What doesn’t work, or works poorly

- **Blocking by name only.** The user agent can be imitated: Apache, Google and Cloudflare say so. A crawler that wants to get through changes its name.
- **Relying on a server rule when a cache serves the page.** At some web hosts, a cached page escapes the rules: SiteGround says so for its dynamic cache, which is enabled by default. Robots.txt does not have this limit, since a crawler that respects it reads it before requesting a page.
- **Forgetting Common Crawl.** Blocking GPTBot or ClaudeBot does not affect Common Crawl’s open archives, which others reuse: according to a Mozilla Foundation study (2024), more than 80% of GPT-3’s tokens came from them. Its crawler, CCBot, can be refused in robots.txt.
- **Relying on robots.txt against on-request agents.** According to their providers, its rules may not apply to ChatGPT-User, OpenAI’s agent; Perplexity’s agent generally ignores them, as do Google’s user-triggered fetchers. Against them, only an actual block works, and it also removes you from their answers.
- **Hoping to erase the past.** Anthropic speaks of “future” content; Hostinger writes that a block does not erase what has already been collected. Common Crawl does not modify its published archives: following a removal request, it removes the URLs concerned from its subsequent crawls and its public tools.

## Impostors: verify before drawing conclusions

Some crawlers pose as others: Common Crawl says it knows that fake CCBots are circulating. The principle of verification: a crawler bearing a known name is genuine only if its address really belongs to the provider, according to the list the provider publishes or a double DNS lookup. For a small business, the simplest approach is to let its CDN or web host take care of this; the details are in [How to know if an AI read your website](https://www.devjpt.com/en/blog/how-to-know-if-ai-read-your-site/).

This only applies to crawlers that announce themselves. In August 2025, Cloudflare accused Perplexity of using undeclared crawlers, which Perplexity disputed; as far as we know, no third party has settled the matter. More in [Do AI crawlers respect robots.txt?](https://www.devjpt.com/en/blog/do-ai-crawlers-respect-robots-txt/)

## The price of blocking: disappearing from some answers

- **ChatGPT**: according to OpenAI, a site that refuses OAI-SearchBot is no longer shown in ChatGPT search answers, except as a navigational link. Refusing GPTBot does not have this effect.
- **Google**: according to Google, refusing Google-Extended affects neither inclusion nor ranking in Search. For AI Overviews and AI Mode, the control remains Googlebot: blocking it by mistake would remove you from Google and from its AI Overviews.
- **Microsoft**: answers from Bing, Copilot and Microsoft 365 rely on the content its crawlers collect. Microsoft doesn’t put it this way, but blocking Bingbot would therefore likely deprive Copilot of your pages. Its new preferences, planned for February 1, 2027, will let you refuse training while staying in Bing.

A training crawler takes your content to train a model; according to Cloudflare, it is from search, not training, that a site can expect visits or compensation. Refusing training therefore probably costs little in visits, but Kinsta warns that it can reduce how often some AI tools use or cite your content. According to Cloudflare’s measurements, AI platforms crawl many pages for few visitors sent back. For Google’s AI summaries, the figures come from a single study, by the Pew Research Center: in March 2025, among 900 American adults, people clicked on a traditional link in 8% of visits with a summary, compared with 15% without a summary. Google says these clicks are of higher quality.

## How many sites block AI crawlers?

These figures cover different sites, years and measurements: they cannot be compared or added together.

- **Reuters Institute, Richard Fletcher (February 2024)**: at the end of 2023, 48% of the most-visited news sites in ten countries (15 per country) blocked OpenAI’s crawlers in their robots.txt, based on archived copies of these files.
- **HTTP Archive, Web Almanac 2025 (January 2026)**: GPTBot is named in the robots.txt of about 4.5% of sites measured on desktop, compared with 2.9% in 2024. “Named” doesn’t mean “blocked”: the measurement also counts permissions.
- **Cloudflare Radar, 2025 Year in Review (December 2025)**: among its 10,000 most popular domains, AI crawlers, including GPTBot, ClaudeBot and CCBot, are the agents most often disallowed from the entire site. This is the finding of a single company, with no figures.

## A four-step method for a small business

1. **Decide** what you are refusing: training, search, agents, or nothing.
2. **Choose the gentlest level that does the job.** For crawlers that respect robots.txt, the file is enough. On Cloudflare, don’t block “Training” if you care about Google and Bing.
3. **Check.** Open your robots.txt in the browser, run your site through the free [robots.txt checker](https://www.devjpt.com/en/tools/robots-txt-checker/) and consult the robots.txt report in Search Console. Make sure Googlebot and Bingbot still get through. Then look at the server log (see [How to know if an AI read your website](https://www.devjpt.com/en/blog/how-to-know-if-ai-read-your-site/)).
4. **Review every six months.** Cloudflare changed its settings in 2024, 2025 and 2026; Akamai and Vercel revised their categories in September and October 2026. Six months is my advice, not a rule.

> **Waitlist.** I’m building new tools to help website owners and creators stay in control when it comes to AI. [Get notified at launch.](https://www.devjpt.com/en/waitlist/?source=block-ai-crawlers)

## Frequently asked questions

### Is the robots.txt file enough to block AI crawlers such as GPTBot or ClaudeBot?

No: robots.txt is a request, not a lock; its standard, RFC 9309, states that its rules are not a form of access authorization. The major crawlers, including Anthropic’s and Google’s, state that they respect it, but some agents that act at a user’s request may not follow it, according to OpenAI and Perplexity. For those agents, only a block at the server or the firewall works.

### Can blocking Cloudflare’s “Training” category remove a site from Google?

Yes. According to a Cloudflare blog post (July 2026) and Kinsta, blocking the “Training” category also blocks Googlebot, Bingbot and Applebot, which Cloudflare classifies as dual-use crawlers, for search and training. Kinsta warns that this can remove the site from search results. Cloudflare’s current documentation confirms that the “Training” category’s actions also apply to dual-use crawlers; only the “Disallow” action, with Bot Preference Sync, excludes them from the block.

### Does a WordPress web host already block AI crawlers without being asked?

It depends on the web host. Kinsta and Hostinger offer a setting to block AI crawlers; SiteGround blocked training crawlers by default according to its 2025 page, but its current page no longer mentions this. Hostinger also warns that its CDN’s security settings can block crawlers even when robots.txt allows them: the safest approach is to ask your web host.

### Does a WordPress plugin really block AI crawlers?

Some WordPress plugins only add lines to the virtual robots.txt that WordPress produces when no file exists at the root: that is a request, not a block. Others, for example some security plugins, actually refuse requests, notably based on the user agent. Opening your own robots.txt in the browser shows what is really being served.

### Why is blocking an AI crawler by its user agent unreliable?

The user agent is a name the visitor gives itself: Apache’s and Google’s documentation warn that it can be imitated. A crawler that wants to get through can therefore change its name. Providers publish IP address lists or DNS methods for verifying their genuine crawlers, and a CDN can do this verification for you.

### Does blocking AI crawlers erase content already collected by ChatGPT, Claude or Common Crawl?

No. A block applies going forward: Anthropic speaks of a site’s future content, and Hostinger writes that a block does not erase what has already been collected. Common Crawl does not modify its already published archives; following a removal request, it removes the URLs concerned from its subsequent crawls and its public tools.

### Does blocking AI crawlers make a site disappear from ChatGPT’s answers or Google’s AI Overviews?

It depends on which crawler is blocked. According to OpenAI, refusing OAI-SearchBot removes a site from ChatGPT search answers, whereas refusing GPTBot does not have this effect. According to Google, refusing Google-Extended does not affect Google Search; for AI Overviews and AI Mode, the control is Googlebot, which therefore should not be blocked if you want to appear there.

## Sources

Documents checked on November 30, 2026. Pages that were blocked that day were read in their archived copies, indicated below.

- IETF, [RFC 9309, Robots Exclusion Protocol](https://www.rfc-editor.org/rfc/rfc9309.html), September 2022.
- Cloudflare, “[AI Crawler and Agent access policies](https://developers.cloudflare.com/bots/additional-configurations/block-ai-bots/)” (modified November 2, 2026); “[AI Crawl Control](https://developers.cloudflare.com/ai-crawl-control/)“; “[Manage AI crawlers](https://developers.cloudflare.com/ai-crawl-control/features/manage-ai-crawlers/)“; “[What is Pay Per Crawl?](https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/what-is-pay-per-crawl/)” (modified July 28, 2026); [Bots — Changelog](https://developers.cloudflare.com/bots/changelog/).
- Cloudflare Blog, “[Declare your AIndependence: block AI bots, scrapers and crawlers with a single click](https://blog.cloudflare.com/declaring-your-aindependence-block-ai-bots-scrapers-and-crawlers-with-a-single-click/),” July 3, 2024; press release “[Cloudflare Just Changed How AI Crawlers Scrape the Internet-at-Large; Permission-Based Approach Makes Way for A New Business Model](https://www.cloudflare.com/press-releases/2025/cloudflare-just-changed-how-ai-crawlers-scrape-the-internet-at-large/),” July 1, 2025; “[Your site, your rules: new AI traffic options for all customers](https://blog.cloudflare.com/content-independence-day-ai-options/),” July 1, 2026.
- Cloudflare Blog, “[The crawl-to-click gap: Cloudflare data on AI bots, training, and referrals](https://blog.cloudflare.com/crawlers-click-ai-bots-training/),” August 29, 2025; “[The 2025 Cloudflare Radar Year in Review](https://blog.cloudflare.com/radar-2025-year-in-review/),” December 15, 2025.
- Vercel, “[WAF Managed Rulesets](https://vercel.com/docs/vercel-firewall/vercel-waf/managed-rulesets)” and “[Control AI crawlers and assistants separately in Vercel Firewall](https://vercel.com/changelog/block-ai-crawlers-and-assistants-independently-with-managed-rules),” October 29, 2026.
- Fastly, “[Managing bot traffic](https://www.fastly.com/documentation/guides/security/bot-management/contentguard/managing-bot-traffic/)“; Akamai Blog, “[Introducing More Granular Controls for AI Bot Traffic](https://www.akamai.com/blog/security/2026/sep/introducing-more-granular-controls-ai-bot-traffic),” September 3, 2026.
- Kinsta, “[Bot Protection](https://kinsta.com/docs/wordpress-hosting/mykinsta-tools/wordpress-tools-bot-protection/),” updated June 12, 2026.
- Hostinger, “[How to allow or block AI crawlers on your Hostinger website](https://www.hostinger.com/support/how-to-allow-or-block-ai-crawlers-on-your-hostinger-website/)“; Hostinger Blog, “[Your website, your rules: Track and control AI bots](https://www.hostinger.com/blog/cdn-ai-audit/),” September 4, 2025.
- SiteGround, “[How to block AI crawlers?](https://www.siteground.com/kb/ai-crawlers-siteground-servers/)” (updated November 2, 2026), and the previous version at the same address, “[How We Handle AI Crawlers on SiteGround Servers](https://web.archive.org/web/20260824140333/https://www.siteground.com/kb/ai-crawlers-siteground-servers),” updated September 4, 2025 (archived copy of August 24, 2026).
- WordPress Developer Resources, [do_robots()](https://developer.wordpress.org/reference/functions/do_robots/) and [robots_txt](https://developer.wordpress.org/reference/hooks/robots_txt/); WordPress Core Trac, “[Native UI to Manage robots.txt Content from WordPress Admin](https://web.archive.org/web/20260125042834/https://core.trac.wordpress.org/ticket/63387)” (ticket 63387, archived copy of January 25, 2026).
- Wordfence, “[Blocking](https://web.archive.org/web/20250101214534/https://www.wordfence.com/help/blocking/)” (help page, archived copy of January 1, 2025).
- Apache Software Foundation, “[Access Control](https://httpd.apache.org/docs/2.4/howto/access.html)” (Apache HTTP Server 2.4); nginx, “[Module ngx_http_rewrite_module](https://nginx.org/en/docs/http/ngx_http_rewrite_module.html)“; LiteSpeed Technologies, “[Apache Migration FAQ](https://docs.litespeedtech.com/cp/cpanel/switch-apache/).”
- OpenAI, “[Overview of OpenAI Crawlers](https://developers.openai.com/api/docs/bots).”
- Anthropic, “[Does Anthropic crawl data from the web, and how can site owners block the crawler?](https://support.claude.com/en/articles/8896518)“
- Apple, “[About Applebot](https://support.apple.com/en-us/119829),” September 4, 2026.
- Google, “[List of Google’s common crawlers](https://developers.google.com/crawling/docs/crawlers-fetchers/google-common-crawlers),” “[Verify requests from Google crawlers and fetchers](https://developers.google.com/crawling/docs/crawlers-fetchers/verify-google-requests),” “[List of Google user-triggered fetchers](https://developers.google.com/crawling/docs/crawlers-fetchers/google-user-triggered-fetchers),” “[AI features and your website](https://developers.google.com/search/docs/appearance/ai-features)“; Search Console Help, “[robots.txt report](https://support.google.com/webmasters/answer/6062598?hl=en).”
- Bing Blog (Microsoft), “[Your content, your choice: clearer preferences for training and grounding](https://blogs.bing.com/search/2026/10/your-content-your-choice-clearer-preferences-for-training-and-grounding/),” October 30, 2026; Bing Webmaster Blog, “[How to Verify that Bingbot is Bingbot](https://blogs.bing.com/webmaster/2012/08/31/how-to-verify-that-bingbot-is-bingbot),” August 31, 2012.
- Perplexity, “[Perplexity Crawlers](https://docs.perplexity.ai/guides/bots).”
- Common Crawl, “[FAQ](https://commoncrawl.org/faq)” and “[CCBot](https://commoncrawl.org/ccbot)“; Common Crawl Blog, “[Setting the Record Straight: Common Crawl’s Commitment to Transparency, Fair Use, and the Public Good](https://commoncrawl.org/blog/setting-the-record-straight-common-crawls-commitment-to-transparency-fair-use-and-the-public-good),” November 4, 2025.
- Stefan Baack (Mozilla Foundation), “[A Critical Analysis of the Largest Source for Generative AI Training Data: Common Crawl](https://facctconference.org/static/papers24/facct24-148.pdf),” ACM FAccT ’24, June 2024.
- Read the Docs, “[AI crawlers need to be more respectful](https://about.readthedocs.com/blog/2024/07/ai-crawlers-abuse/),” July 25, 2024.
- Cloudflare Blog, “[Perplexity is using stealth, undeclared crawlers to evade website no-crawl directives](https://blog.cloudflare.com/perplexity-is-using-stealth-undeclared-crawlers-to-evade-website-no-crawl-directives/),” August 4, 2025; Perplexity, “[Agents or bots? Making sense of AI on the open web](https://web.archive.org/web/20261129060031/https://www.perplexity.ai/hub/blog/agents-or-bots-making-sense-of-ai-on-the-open-web),” August 4, 2025 (archived copy of November 29, 2026).
- Pew Research Center, “[Google users are less likely to click on links when an AI summary appears in the results](https://www.pewresearch.org/short-reads/2025/07/22/google-users-are-less-likely-to-click-on-links-when-an-ai-summary-appears-in-the-results/),” July 22, 2025.
- Reuters Institute (University of Oxford), Richard Fletcher, “[How many news websites block AI crawlers?](https://reutersinstitute.politics.ox.ac.uk/how-many-news-websites-block-ai-crawlers)” (February 22, 2024).
- HTTP Archive, “[Web Almanac 2025, SEO chapter](https://almanac.httparchive.org/en/2025/seo),” published January 15, 2026, updated June 9, 2026.

*Spotted an error or a change? Write to me from the [home page](https://www.devjpt.com/en/): every correction is dated at the bottom of the article.*
