llms.txt Kit

Deploying llms.txt on Cloudflare Pages & Workers

llms.txt
Line 1, Col 1
Valid Spec
0
Est. Tokens
0
Words
Links
0
Sections
llms.txt Sweet Spot (4k max)
0 / 4,000 (0%) Optimal Size
GPT-4o 0.00% / Claude 3.7 0.00% / Gemini 2.5 0.000%

Specification Linter Diagnostics

0 errors · 0 warnings
Cloudflare Pages Guide

Zero-Config Static Hosting for llms.txt on Cloudflare Pages

Cloudflare Pages is an ideal host for static /llms.txt files because plain-text assets are served directly from Cloudflare's global edge cache with zero origin latency and automatic UTF-8 encoding.

1. Place llms.txt in Your Build Output Root

Put your validated llms.txt next to index.html (or inside public/llms.txt for Vite, Astro, or Next.js). Optional custom cache headers can be configured in a _headers file:

/llms.txt
  Content-Type: text/plain; charset=utf-8
  Cache-Control: public, max-age=3600

2. Check Cloudflare's "Block AI Scrapers" Setting

If you want AI search engines like ChatGPT Search or Perplexity to read your /llms.txt, make sure Cloudflare's global Block AI Scrapers and Crawlers toggle does not contradict your intended robots.txt policy.

Frequently Asked Questions

llms.txt on Cloudflare Pages FAQ

Does Cloudflare Pages automatically set text/plain for llms.txt?

Yes. Files ending in .txt are automatically served as text/plain; charset=utf-8, and you can optionally add a _headers rule for explicit caching.

Why are AI crawlers getting 403 on my Cloudflare Pages /llms.txt?

Check Security -> Bots in your Cloudflare dashboard. Enabling 'Block AI Scrapers and Crawlers' blocks known AI user-agents at the WAF layer even if your robots.txt allows them.

Does serving /llms.txt count toward Cloudflare Workers requests?

No. Static files hosted on Cloudflare Pages are served free with unlimited static requests.

AI Crawler Rules & Framework Integration Guides

Explore dedicated robots.txt generators and platform-specific llms.txt deployment templates:

Copied!