Sub topic 6
Deciding what to allow and what to block
This chapter assumes you know how robots.txt files are structured and what the User-Agent header is. It also assumes you can tell training crawlers, AI search crawlers, and user-initiated fetchers apart. The aim here is to turn that knowledge into a policy: a short, explicit statement of which crawlers may fetch which parts of your site, and why.
Start with goals, not with a block list
Many sites copy a list of "AI bots to block" from a blog post. That skips the real question, which is what you want from AI systems. Three goals usually pull in different directions:
- Control over training use. You may not want your text used to train future models, especially if it is paid, licensed, or original work.
- Visibility in AI search. If people ask an AI assistant questions and it cites sources, being fetchable can send you traffic and brand mentions.
- Server cost and load. Every crawler consumes bandwidth and CPU, whatever its purpose.
Because crawlers are separated by purpose, you can answer each goal separately. The common mistake is treating "AI crawler" as one category and blocking everything. That also removes you from AI search results and stops users from asking an assistant to read your page.
The three purposes and their trade-offs
Each purpose has a different cost and benefit for you.
| Purpose | Example tokens | What you gain by allowing | What you lose by blocking |
|---|---|---|---|
| Training | GPTBot, Google-Extended, ClaudeBot, CCBot, Applebot-Extended | Your content may shape future models. No direct, measurable return. | Little visible. Content already collected is not removed. |
| AI search | OAI-SearchBot, PerplexityBot | Your pages can appear and be cited in AI answers. | You may be absent from those answers. |
| User-initiated | ChatGPT-User | A person who pastes your URL into an assistant gets a real summary. | The assistant cannot read the page, and the user sees an error or a guess. |
Two details deserve care.
First, Google-Extended is a control token, not a separate crawler that appears in your logs. Google fetches with its normal Googlebot infrastructure, and Google-Extended is a rule you can address in robots.txt to say whether content may be used for certain Google AI products. Blocking it does not change Google Search crawling, indexing, or ranking. The token controls AI use, not search presence.
Second, purposes can be bundled in ways you do not control. A vendor may run one crawler for several uses, or change what a token covers over time. Treat the vendor's current documentation as the authority and recheck it periodically (the last chapter covers that routine).
Three common policies
Most sites land on one of three policies. The table summarizes them, and the sections after it explain when each fits.
| Policy | Training | AI search | User-initiated | Typical site |
|---|---|---|---|---|
| Open | Allow | Allow | Allow | Documentation, marketing, open-source projects |
| Opt out of training | Block | Allow | Allow | Publishers and businesses that want citations but not training use |
| Closed | Block | Block | Block | Paywalled, licensed, or private content |
Open
Allow everything. This is the default if you write no AI-specific rules. It suits content whose purpose is to be spread, such as product documentation, where being understood by assistants is a benefit. The cost is that you give up control over training use.
Opt out of training
Block the training tokens and allow the search and user-initiated ones. This is the policy in the first code example of the topic's reference material. It is the most common choice for sites that publish original content but still want to be cited. The trade-off is that it relies on each vendor honoring the purpose split, and that the split can change.
Closed
Block every AI-related token. This fits content you license, sell, or must keep private. Be aware that it also gives up AI search visibility, and that a robots.txt-only closed policy is weak against crawlers that ignore the file. The enforcement chapter covers server-side blocking.
Decide per section, not only per site
Policies do not have to be site-wide. Robots.txt rules work on paths, so you can mix approaches:
- Allow public articles and block
/members/and/drafts/for training crawlers. - Allow AI search crawlers everywhere, but block internal search result pages that waste crawl budget.
- Block everything under
/api/for all AI crawlers because machines gain nothing from it.
Path-level policies suit sites with a public layer and a paid layer. They are also easier to defend than all-or-nothing blocking: you can say exactly which content is reserved.
A decision flow
The following diagram walks through the questions in order. Answer them for your own site and you arrive at a policy.
Worked example: a publisher with a members area
Suppose you run a technical newsletter. Free articles live under /articles/, paid issues under /members/, and unfinished posts under /drafts/. Your goals are:
- Get cited when an assistant answers questions about your topics.
- Keep paid content out of training data.
- Not break a reader's request to summarize a free article.
Applying the flow:
- Free articles: not private, training not acceptable, citations wanted, so the opt-out policy.
- Members and drafts: private, so the closed policy for every AI token.
The policy table you would write down before touching the file looks like this:
| Path | Training tokens | AI search tokens | User-initiated tokens |
|---|---|---|---|
| `/articles/` | Block | Allow | Allow |
| `/members/` | Block | Block | Block |
| `/drafts/` | Block | Block | Block |
Writing the table first has a practical benefit. When someone later asks why a bot is blocked, the answer is a row in the table instead of a guess.
Edge cases to plan for
A crawler listed under two purposes. If a vendor documents one token for both training and search, you cannot separate them with robots.txt. You must choose one outcome for that token, or enforce differently on the server.
New tokens appear. A token you have never seen is not covered by a rule for another token. Under the Robots Exclusion Protocol, a crawler uses the group that matches its own name, and falls back to the * group only if none does. So a final User-agent: * group set to Allow: / means any unknown AI crawler is allowed by default. If your policy is closed, you need to add each new token yourself. No wildcard can say "all AI bots."
Blocking the wrong thing for search. Blocking Googlebot to avoid AI use removes you from Google Search. If your goal is only to opt out of Google's AI training use, use the Google-Extended token and leave Googlebot alone.
Past collection. A robots.txt rule applies to future requests. It does not remove content a crawler has already collected.
Caching and delay. Crawlers cache robots.txt, often for a day or longer, so a policy change takes time to show up in your logs.
What a policy cannot promise
A policy written in robots.txt is a statement of intent. Well-behaved vendors follow it. Some crawlers do not, and some scrapers send a false User-Agent header that pretends to be a known bot. Decide in advance which parts of your policy need more than a request. For a closed section, plan for server-side rules and IP verification, which later chapters cover. For an opt-out policy on public content, a robots.txt request plus log monitoring is often enough.
Summary of the decision method
- List your goals: training control, AI search visibility, load.
- Split your site into sections by sensitivity.
- Pick open, opt-out, or closed for each section.
- Record the choice in a table.
- Note which rows need enforcement beyond robots.txt.
The next chapters turn the table into rules, starting with how groups and matching work.
Exercise
You run a documentation site that you want cited by AI assistants and fetched when users paste links. You do not want your pages used to train models. Which policy fits, and what happens to an AI crawler token you have never heard of if your file ends with a User-agent: * group containing Allow: /?
Show answer
The opt-out-of-training policy fits: block the training tokens (such as GPTBot, Google-Extended, ClaudeBot, CCBot, Applebot-Extended) and allow the AI search and user-initiated tokens (such as OAI-SearchBot and ChatGPT-User). An unknown token matches no specific group, so it falls back to the * group and is allowed. You must add a new Disallow group for it once you learn about it.
Exercise
A colleague proposes adding User-agent: Googlebot with Disallow: / to stop Google's AI products from using your site. What is wrong with this, and what should you use instead?
Show answer
Googlebot is the crawler for Google Search, so blocking it removes your pages from search crawling and indexing. The AI-use decision is controlled by the Google-Extended token, so add a User-agent: Google-Extended group with Disallow: / and leave Googlebot allowed.