Sub topic 6
Deciding what to allow and what to block
Assume you understand basic web crawling, HTTP requests, the User-Agent header, and how to edit a site's root robots.txt. You should also be comfortable with curl and basic Python. This chapter uses those ideas to choose a crawler policy before writing detailed rules.
A useful policy separates three activities:
- Training collection: A crawler gathers public pages to improve a model or dataset.
- AI search: A crawler fetches pages so an AI-powered search product can find and cite current information.
- User-initiated fetching: A crawler retrieves a page because a person asked an AI assistant to open or summarize it.
These activities have different benefits. Blocking training does not require blocking AI search. Blocking search may reduce your visibility in AI-generated answers. Allowing user-initiated fetching can help visitors access your content without allowing broad collection for training.
Start with the site's goals
Decide what value your site receives from each activity. A commercial documentation site might want AI search visibility but reject model training. A private membership site might block all automated access. A public research site might allow every crawler because wider discovery supports its mission.
Ask these questions:
- Is the content public and intended to be discovered?
- Would citations or referrals from AI search help the site?
- Are there licensing, privacy, or contractual limits on model training?
- Does the site contain private, paid, unpublished, or user-submitted material?
- Can the team monitor and enforce the policy?
- Is the policy different for public articles and restricted paths?
Do not treat the policy as a single site-wide yes-or-no choice. A site can allow an AI search crawler on /articles/ while blocking every crawler from /members/.
| Goal | Reasonable default | Main trade-off |
|---|---|---|
| Maximize AI discovery | Allow search and user-fetch crawlers | More automated access |
| Prevent training use | Block training-related tokens | The block depends on crawler compliance |
| Protect private content | Block restricted paths for every crawler | Requires authentication and server controls too |
| Support user-requested access only | Allow user-fetch tokens, review search and training tokens | Less AI search visibility |
| Avoid all automated collection | Block known crawlers and enforce access server-side | Public search visibility may fall |
Match the policy to crawler purpose
Use the crawler's declared purpose as one input, not as the entire decision.
For example, a publisher that wants citations but not training could choose this policy:
- Allow
OAI-SearchBot, which supports OpenAI search. - Allow
ChatGPT-User, which fetches pages after a user request. - Block
GPTBot, which is associated with training collection. - Block
Google-Extendedif the publisher does not want content used for Google's generative AI systems. - Review
ClaudeBot,PerplexityBot,CCBot, andApplebot-Extendedaccording to their stated use and the site's agreements.
Google-Extended controls whether Google may use content for certain generative AI purposes. It does not control ordinary Google Search crawling, indexing, or ranking. Blocking it therefore does not by itself remove pages from Google Search.
# Example policy: allow AI search and user requests, block selected training use
User-agent: GPTBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: OAI-SearchBot
Allow: /
User-agent: ChatGPT-User
Allow: /
User-agent: *
Allow: /This example expresses intent. It does not create access control, and it may not cover every crawler or every path. Check each provider's current documentation before treating a token as proof of identity or purpose.
Apply different rules to different paths
Path-level policy reduces unnecessary blocking. Keep public articles available to search crawlers, but exclude drafts, account pages, and paid material. For example:
User-agent: GPTBot
Disallow: /drafts/
Disallow: /members/
User-agent: OAI-SearchBot
Allow: /articles/
Disallow: /members/Review overlaps carefully. A broad rule can expose more content than intended, while an overly broad block can remove useful public pages from AI search. Test representative URLs from every important section.
Exercise
A public documentation site wants citations in AI search results but does not grant permission for model training. Which policy direction should it consider?
Show answer
Allow the relevant AI search and user-initiated fetchers, block training-related crawlers such as GPTBot and possibly Google-Extended, and verify the choice against each provider's current purpose and terms.