Sub topic 2
Advisory Conventions versus Enforced Controls
Assume you understand how a website is served over HTTP, can read basic Markdown, and know that AI assistants may fetch web pages. This chapter uses that knowledge to separate two different ideas: telling a crawler what you prefer and technically preventing access.
The working model
An advisory convention is a published signal that asks a client to behave in a particular way. The client must choose to read and honor the signal. robots.txt, llms.txt, and many AI crawler preferences work this way.
An enforced access control is a technical barrier checked by the server or a system in front of it. Authentication, network restrictions, signed URLs, and a firewall rule can deny a request before the protected content is returned.
The distinction is about authority, not file format. A plain text file can express an important policy, but the file cannot physically stop a request.
Advisory conventions
robots.txt is the best-known example. It communicates crawler preferences by user-agent token and URL path:
User-agent: GPTBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: *
Allow: /A compliant GPTBot should avoid the site. A crawler can ignore the file, misidentify itself, or use a different token. The server still receives the request unless another control intervenes.
llms.txt has a different purpose. It is usually proposed as a curated Markdown index of important documentation, with links and short descriptions. It helps a willing AI system find useful material. It does not grant permission, authenticate a client, or guarantee that an AI system will use the listed pages.
Meta directives such as noindex and the X-Robots-Tag HTTP header are also signals to clients. They can influence indexing or display decisions, but they are not encryption or authorization. Their effect depends on the consuming system and on the directive's supported scope.
| Mechanism | Main purpose | Enforced by itself? |
|---|---|---|
| `llms.txt` | Curate important pages for AI systems | No |
| `robots.txt` | State crawler access preferences | No |
| Authentication | Require an approved identity | Yes |
| WAF rule | Reject or challenge matching requests | Yes |
When enforcement is required
Use an enforced control when disclosure would be unacceptable, when a crawler must be blocked regardless of its stated identity, or when request volume could harm the service. Common controls include:
- Authentication and authorization for private content.
- A web application firewall (WAF) rule that blocks known networks or request patterns.
- Rate limiting to cap requests per client, token, or network.
- Bot verification or a challenge for suspicious traffic.
- Network controls that permit only approved addresses.
- Separate public and private content, with private data never exposed at a public URL.
These controls have trade-offs. Blocking by user-agent is easy to deploy but easy to evade. Blocking by IP range can block legitimate users and requires maintenance. Challenges may prevent automated abuse but can also stop useful search or accessibility tools. Authentication provides stronger protection, but it adds account and credential management.
A practical decision
Ask what failure would cost you. If the goal is better discovery of public documentation, publish llms.txt and maintain ordinary site quality. If the goal is to express a preference, use robots.txt and relevant headers. If the goal is to prevent access, use server-side enforcement and verify that it works.
Exercise
A site publishes llms.txt and disallows GPTBot in robots.txt, but its access logs still show requests from that token. Does this prove that the files are broken?
Show answer
No. It proves that a requester reached the server. Both mechanisms are advisory, so a noncompliant or spoofed client can ignore them. Use authentication, WAF rules, rate limiting, or another enforced control when blocking is required.