The Practical llms.txt and AI Crawler robots.txt Guide
llms.txt is a proposed Markdown content map, robots.txt expresses crawler access policies, and sitemap.xml lists canonical URLs. Maintain them alongside accessible page content. They serve different purposes and cannot replace authentication, indexing decisions or each other. Always verify response status and content type after publishing.
What belongs in llms.txt?
Start with one brand heading and a short summary. Link stable tools and guides using absolute Markdown URLs with accurate descriptions. Exclude temporary reports, authentication routes and internal APIs.
Describe llms.txt as an open proposal. Whether and when a service reads it is up to that service.
# Example Brand > Technical guides and free website checks. ## Tools - [SEO audit](https://example.com/seo-tools): Inspect page structure. ## Guides - [Technical checklist](https://example.com/guides/checklist): Practical verification steps.
How do you avoid blocking useful crawlers?
A specific user-agent group does not inherit all wildcard restrictions. When creating explicit groups, repeat the private API and workbench exclusions in each group. Do not block public JavaScript or CSS needed for rendering.
- Publish UTF-8 text files at the site root.
- Confirm 200 and text/plain responses.
- Test robots longest-match rules on real paths.
- Check verified crawler access at the CDN and firewall.
- Update content maps when tools or guides change; exclude private reports.
User-agent: * Allow: / Disallow: /api/ Disallow: /auth/ Disallow: /projects/ Sitemap: https://example.com/sitemap.xml
Which mistakes are most common?
robots.txt is not an access control mechanism, and a disallowed URL can still be indexed without its content. Allow temporary reports to be read so crawlers can see noindex in both headers and HTML. Protect private information with authentication.
A browser displaying text is insufficient verification: an HTML error page with a 200 status is not a valid protocol file.
How can you compare the key facts?
| File | Purpose | Does not replace |
|---|---|---|
| robots.txt | Crawler access preferences | Authentication or authorization |
| sitemap.xml | Canonical URLs and language alternates | Internal links or indexing decisions |
| llms.txt | Proposed language-model content map | Content, permissions or index standards |
Frequently asked questions
How do llms.txt and robots.txt differ?
The former offers content entry points while the latter expresses crawler preferences. Neither replaces authentication.
Why must protocol files avoid ordinary HTML responses?
Consumers need the expected format. Check real status codes and plain-text or XML content types to avoid successful-looking error pages.
Should temporary reports be included in a sitemap?
List stable canonical pages intended for indexing. Keep temporary reports noindex and exclude them from public content maps.
What should I check when adding crawler groups?
Review each effective group and confirm that relevant API and private workbench exclusions remain complete.
Sources
Use these sources to verify protocols and policies. Product behavior can change; consult current documentation and observed logs.