robots.txt for AI: Block Training, Keep AI Search

Most advice about AI and robots.txt gives you two options: block everything, or do nothing. Both are a bit daft for a small business. There's a middle path — say no to AI training, say yes to AI search — and it's about six lines of text. Plus one myth about Google that I want to put to bed, because it's sending people in exactly the wrong direction.

What robots.txt actually does

robots.txt is a plain text file at the root of your site — yourdomain, slash, robots dot t x t. It tells well-behaved crawlers which parts of the site they may visit. Three things to remember.

It's a request, not a lock. Reputable crawlers follow it; bad actors ignore it.

It only works going forward. Blocking a bot today doesn't delete what it collected last year.

And it works by name. Each crawler has a user-agent token, and you write rules for each token. Which means the names matter — a lot.

The split: training vs search

Several AI companies now run separate bots for separate jobs. That's the bit most people miss.

Take OpenAI as the clearest example. GPTBot is described as collecting content that may be used to train models. OAI-SearchBot is for surfacing sites in ChatGPT's search features. And ChatGPT-User is for when a person asks ChatGPT to visit a page. OpenAI says these are controlled independently — so you can block one and allow another.

Other companies follow a similar pattern. Anthropic lists ClaudeBot alongside separate search and user bots.Perplexity has PerplexityBot for its index and a user-triggered fetcher, which it says may not follow robots.txt in the same way.Apple uses Applebot for search features like Siri and Spotlight, and a separate Applebot-Extended token for AI training use.And CCBot is Common Crawl, a public dataset widely used in training.

Names change. New bots appear. So before you copy anything — including from me — check each company's official crawler page. I'll keep a list updated on the site.

Now the myth. Plenty of people add "User-agent: Google-Extended, Disallow: slash" believing it keeps their content out of Google's AI answers. It doesn't, and it was never meant to.

Google-Extended isn't a crawler. Nothing called Google-Extended visits your site. It's a control token: Googlebot still crawls, and Google-Extended tells Google whether that content can be used for things like Gemini model training and some grounding.Google's documentation says it doesn't affect your ranking in Search, and doesn't affect inclusion in AI Overviews.

So if your goal is "stay out of AI Overviews", Google-Extended won't do it. The only real levers are Search-level ones: snippet controls like nosnippet or max-snippet, or noindex — and those affect your normal search listing too.For most small businesses, that trade is terrible. You want to be in those answers.

Two more Google-flavoured mistakes. Never disallow Googlebot to "stop AI" — you'll vanish from Search entirely. And Bing works similarly: Bingbot powers both Bing and Copilot, so blocking it to dodge AI also costs you Bing.

The six-line middle path

Here's the shape of a "no training, yes search" file for a small site. Treat this as a template to verify, not gospel.

User-agent: GPTBot Disallow: /

User-agent: ClaudeBot Disallow: /

User-agent: CCBot Disallow: /

User-agent: Applebot-Extended Disallow: /

User-agent: Google-Extended Disallow: /

User-agent: * Allow: /

Sitemap: https://www.example.co.uk/sitemap.xml

Everything not named — Googlebot, Bingbot, OAI-SearchBot, PerplexityBot, the search-type bots — falls under the star group, which allows everything.

One gotcha that catches people out. A crawler follows the most specific group that names it, and ignores the star group entirely.So if you've got existing rules under the star — say, blocking your basket or admin pages — and then add a separate GPTBot group, fine. But if you ever add a group for Googlebot by name, it will no longer follow your star rules. Copy anything important into it.

And whether to include Google-Extended is your call. Blocking it keeps you in Search and AI Overviews, but opts out of some Gemini uses.If you're unsure, leaving it allowed is perfectly reasonable.

When to choose something else

Some sites should go further. If your product is original content — recipes, guides, photography — you may also want to think about search bots, and accept the visibility hit knowingly.

Others should do less. If you're a local trade with a handful of service pages, training bots probably make little practical difference. Allowing everything is completely legitimate. The important thing is that it's a choice, not an accident.

And a quick note: llms.txt is not a blocking tool. Whatever its merits, it doesn't replace robots.txt, and major assistants haven't confirmed using it.

Own-site checklist

Right. Your checklist, about fifteen minutes.

One: open yourdomain slash robots dot t x t and screenshot it with today's date.

Two: look for any "Disallow: slash" under Googlebot, Bingbot or the star group. If you see one and don't know why, that's urgent — fix it first.

Three: check whether your host or CDN is managing this file or blocking bots at the firewall. We cover host and CDN settings separately. A robots.txt that says "allow" means nothing if a firewall is blocking anyway.

Four: decide your stance in one sentence. Fellside Boots wrote: "Block training crawlers, allow search and assistants, keep Google-Extended allowed."

Five: edit the file. WordPress usually via an SEO plugin or a file on the server; Shopify via a robots template; site builders via a settings panel, if they allow it at all.

Six: check every bot name against the company's official page that day.

Seven: test. Reload the file in a private window. In Search Console, open the robots.txt report and confirm Google's fetched the new version — it can take a day or so.Then run URL Inspection on your homepage to be sure Googlebot's still allowed.

Eight: put a reminder in for three months' time. Re-read the file, re-check bot names, re-check your host dashboard.

Fellside boots worked example

Let's see it in practice. Fellside Boots opened their robots.txt and found a surprise: an old line under the star group saying "Disallow: slash", left over from when the site was being built behind a holding page. Nobody had noticed because the homepage still appeared in Google — from an old crawl — but new product pages weren't showing up at all.

That got fixed first. Then the owner checked the CDN dashboard, found no AI toggle switched on, and wrote the stance sentence. They added the training-crawler groups, kept the star group open, and added the sitemap line. A day later, the Search Console robots.txt report showed the new file, and URL Inspection on a product page came back as crawlable.

Three months on, the reminder pops up. One bot on the official list has been renamed, so they update the file. That's the whole maintenance job — five minutes a quarter.

robots.txt is a polite, forward-only request. AI companies increasingly split training and search bots, so you can block one and keep the other. Google-Extended does not keep you out of AI Overviews — snippet controls and noindex do, at a real cost. Never block Googlebot or Bingbot. And write your choice down, then re-check quarterly.

Frequently asked questions

Does robots.txt remove content already used for training?

No. robots.txt is voluntary and only affects future crawling.

Does Google-Extended stop AI Overviews?

Google says Google-Extended does not affect inclusion in Search, including AI Overviews. Check the current documentation.

Next step: learn this with others