How to Block AI Crawlers in WordPress (GPTBot, Claude)

Stop ChatGPT, Gemini or Claude training on your content: how AI crawlers work, what robots.txt can and can't do, and how to block them in WordPress.

“Can I stop ChatGPT from training on my articles?” is one of the most common questions I get now, and the answer has two halves: yes, you can tell the major AI crawlers to stay out—and no, a text file can’t physically stop a bot that’s decided to lie. Let me show you exactly what’s in your control, what isn’t, and how to set your policy in WordPress in about a minute.

The essentials

  • Five distinct names let you address the big AI crawlers in robots.txt—GPTBot, Google-Extended, ClaudeBot, PerplexityBot, CCBot. Four are user-agents (the name a bot gives when it asks for a page); Google-Extended is a token, as the next point explains. OpenAI, Google and Perplexity document robots.txt rules for their bots; Anthropic and Common Crawl state explicitly that they honor them. One caveat for Perplexity: Cloudflare reported that it still reached sites that had blocked its declared bots, through undeclared crawlers.
  • Google-Extended is a separate robots.txt token, not a separate crawler: blocking it stops Google from using your content to train or ground Gemini without touching your normal search rankings (AI Overviews are not among the products Google lists for it).
  • robots.txt is a request, not a wall—Cloudflare found Bytespider the most active AI crawler and the one most often blocked on its network, and saw bots spoofing browser user agents, so it’s a signal to honest bots, not enforcement.
  • Blaminhor Essentials offers two layers: robots.txt blocking (stops the fetch or, for Google-Extended, Gemini’s use of the page) and noai / noimageai meta tags (asks engines not to train on what they did fetch). Use either or both.
  • Every toggle has a WP-CLI mirror (wp blaminhor seo set --ai-block-chatgpt=true), and all controls are off by default—you opt in deliberately.

What are AI crawlers, and which ones matter?

AI crawlers are automated bots that fetch web pages to train language models or to answer questions in AI products—each with a published name (a user-agent or, for Google, a robots.txt token) so you can allow or block it selectively. They’re not one faceless swarm; they’re a handful of named agents from specific companies, and knowing the names is the whole game.

Here are the five that matter most in 2026, and what each one feeds:

NameCompanyWhat it feedsHonored in robots.txt?
GPTBotOpenAIModel training (ChatGPT search fetches pages with a separate bot, OAI-SearchBot)Yes
Google-ExtendedGoogleGemini training and grounding (not classic Search)Yes
ClaudeBotAnthropicTraining Claude models (Claude’s answers and search fetch pages with Claude-User and Claude-SearchBot instead)Yes
PerplexityBotPerplexityPerplexity search results and citations—not model training, per PerplexityDocumented, but Cloudflare reported undeclared crawlers
CCBotCommon CrawlAn open dataset many AI firms train onYes

That last one is worth a beat: CCBot belongs to Common Crawl, a nonprofit whose public dataset is used to train a huge range of models. Block CCBot and you cut off an indirect training pipeline you’d otherwise never see in your logs.

Each company documents its bots: OpenAI, Google, Anthropic, Perplexity and Common Crawl. Read those pages and a second family appears, which the five boxes in the module do not cover. OAI-SearchBot (ChatGPT search), Claude-SearchBot and Claude-User follow robots.txt: to refuse them, copy what yoursite.com/robots.txt already shows (your ticked boxes are in it, along with a sitemap line if there is one) into a physical robots.txt file at the root of your server and add their lines by hand, since that file replaces the one WordPress generates. From then on, the module’s five robots.txt checkboxes change nothing, because WordPress no longer generates a robots.txt for the module to add lines to: edit the file itself. ChatGPT-User and Perplexity-User fetch a page because one user asked for it: OpenAI writes that robots.txt rules “may not apply” to the first, Perplexity that the second “generally ignores robots.txt rules”. For those two, the decision is made at the server or firewall, as the box further down explains.

Does blocking in robots.txt actually stop them?

For the named, well-behaved bots—yes (with Google-Extended, Googlebot keeps visiting and only Gemini’s use of your pages stops); for a bot that’s decided to ignore the rules—no. robots.txt is a politeness protocol. It works because reputable companies choose to honor it and publish the names your rules can target. GPTBot, ClaudeBot, Google-Extended and CCBot fall in that camp; PerplexityBot is documented the same way, with the caveat Cloudflare reported, just below.

But the protocol has no teeth. Cloudflare’s July 2024 analysis found Bytespider (ByteDance) the most active AI crawler and the one most often blocked on Cloudflare’s network, observed bot operators spoofing browser user agents to pass as humans, and noted that a robots.txt block only works if the operator chooses to respect it (Cloudflare). In August 2025, Cloudflare also reported that, on sites that had blocked Perplexity’s declared bots, the company still reached the content through undeclared crawlers (Cloudflare). So the right mental model is a “please keep out” sign, not a locked gate. It stops the honest majority cold and does nothing to a determined bad actor—for those, the defense lives at the server or firewall layer, not in a text file.

Won’t blocking Google hurt my search rankings?

No—and this is the misunderstanding that stops people from acting. Google runs one crawl with two separate controls. Googlebot crawls your site for classic Search. Google-Extended is not a second crawler but a robots.txt token, read during that same crawl, that governs only whether your content may be used to train Gemini models or ground their answers. Google’s documentation states it “does not impact a site’s inclusion in Google Search nor is it used as a ranking signal”, and does not list AI Overviews among the products it affects.

Blocking Google-Extended tells Google “don’t use my content for Gemini” while Googlebot keeps crawling your site and Google keeps ranking it exactly as before. You lose nothing in the blue links. That clean separation is precisely why blocking AI training is a low-risk decision for most site owners—you’re not choosing between Google and privacy, you’re declining one specific use.

How do you block AI crawlers in WordPress?

In WordPress, you tick which of the five names you want out, and the SEO/GEO module of Blaminhor Essentials appends the right rules to the robots.txt WordPress generates, one checkbox per name, with an optional noai tag as a second layer. Here’s the flow:

  1. Open the SEO/GEO module’s GEO/AEO tab. It groups the site-wide AI controls in one place (the per-page noai box sits in the editor’s SEO box), alongside llms.txt (structured data lives in its own Schema tab).
  2. Under “Block via robots.txt,” tick the names you want to refuse—GPTBot, Google-Extended, ClaudeBot, PerplexityBot, CCBot. Each is an independent checkbox, so you can block training bots while allowing citation-friendly ones.
  3. Optionally enable the noai meta tags. This adds noai and noimageai to your pages, asking engines not to use content they did fetch for training—a second layer behind the block (Google, for instance, still fetches your pages with Google-Extended ticked; only Gemini’s use stops).
  4. Save. The module adds a clearly labeled block to the robots.txt WordPress generates (User-agent: GPTBot / Disallow: /, one per chosen bot). Visit yoursite.com/robots.txt to see it. If a physical robots.txt file sits at the root of your server, WordPress never generates its own and nothing is added: copy the lines into that file instead.

The AI Crawlers section of the SEO/GEO module: a checkbox per name to block via robots.txt, plus the noai meta-tag toggle. One checkbox per name. Block training bots, allow citation engines, or refuse them all—your call, name by name.

Prefer the command line? Every toggle has a WP-CLI twin, so you can set policy across a fleet of sites in one script:

wp blaminhor seo set --ai-block-chatgpt=true --ai-block-claude=true --ai-block-common-crawl=true

The same validation runs whether you click or type—the CLI isn’t a second-class citizen bolted on afterward.

Block them or invite them—how do you decide?

Decide per engine, based on whether you’d rather protect your content or be cited by AI: block the pure training bots if your writing is your product, allow the search and answer agents if discovery matters more. There’s no universally correct answer, and it’s rarely all-or-nothing.

Block them if your writing is your product—a paid publication, original research, a portfolio you don’t want reworded into an answer with no click back. Allow them if discovery matters more than protection and you’d happily trade a crawl for a citation in ChatGPT or Perplexity. Many sites split the difference: block the pure training bots like CCBot, allow the ones that send referral traffic.

So what do you actually control?

You have control over the honest majority of AI crawlers, and blocking them costs you nothing in normal search. What you don’t have is a magic wall against bots that ignore the rules—for those, the fight moves to your server. Set your robots.txt policy, add the noai tags as a backstop, and revisit it as new crawlers appear.

Then make it consistent with the other half of the AI-SEO question: if you want to be cited, pair an open policy with a clean llms.txt map of your content. AI-crawler control is part of the SEO/GEO module, one of the 26 modules in Blaminhor Essentials—free and open-source on WordPress.org.

FAQ

Does blocking a crawler in robots.txt actually stop it?

For the named, well-behaved bots—GPTBot, ClaudeBot, Google-Extended, CCBot—yes: OpenAI and Google document robots.txt rules for their bots, and Anthropic and Common Crawl state explicitly that they honor them (for Google-Extended, what stops is Gemini's use of your pages, not Googlebot's visits). But robots.txt is a request, not a wall: Cloudflare's 2024 analysis found Bytespider the most active AI crawler and the one most often blocked on Cloudflare's network, observed bots spoofing browser user agents, and noted that a block only works if the operator respects it; in August 2025 it reported that Perplexity, which documents the same rules for PerplexityBot, still reached content on sites that had blocked its declared bots, through undeclared crawlers. Treat it as a clear signal to honest bots, not enforcement against dishonest ones.

Will blocking Google-Extended hurt my normal Google rankings?

No. Google-Extended controls only whether the content Google crawls may be used to train Gemini models or ground their answers. It is a robots.txt token, not a separate crawler: Google reads it during Google's normal crawl, and its documentation states it does not affect inclusion or ranking in Search (AI Overviews are not among the products it lists for the token). Blocking Google-Extended keeps you out of Gemini training while leaving your ordinary search rankings untouched.

What's the difference between the noai meta tag and robots.txt blocking?

The noai and noimageai meta tags ask AI engines not to use content they've already fetched for training—a polite request applied per page. robots.txt blocking stops the crawler from fetching the page at all (with Google-Extended, Google still fetches it and only Gemini's use stops). They work at different stages, so you can use both: block the bot, and tag the pages as a backstop.

Should I block AI crawlers or not?

It depends on your goal. Block them if your content is your product and you don't want it training models or answered without a click. Allow them if you want to be cited in AI answers and grow that way. It's rarely all-or-nothing—many sites block training bots like CCBot while allowing citation-friendly ones.

Can I block AI bots from the command line?

Yes. In Blaminhor Essentials each toggle has a WP-CLI mirror—for example `wp blaminhor seo set --ai-block-chatgpt=true`—so you can script the policy across many sites or bake it into a deployment. The same validation runs whether you click the box or run the command.

Does blocking AI crawlers slow down or break my site?

No. The block is just a few lines appended to the robots.txt WordPress generates; it adds no runtime cost and touches nothing a human visitor sees. It only changes what automated AI bots are told when they check your robots.txt before crawling. One caveat: if a physical robots.txt file sits at the root of your server, WordPress never generates its own and the module adds nothing—copy the lines into that file instead.

blaminhor Building what's missing.

Comments