The 8-Point llms.txt Validation Standard
| # | Check | Weight | What passes |
|---|---|---|---|
| 1 | HTTP 200 & Plain-Text Content-Type | 15 pts | Serves HTTP 200 with text/plain or text/markdown (not text/html). |
| 2 | H1 Title | 15 pts | Starts with a single top-level heading (# Brand Name). |
| 3 | Blockquote Summary | 15 pts | Includes a concise summary right below H1 (> One-sentence positioning). |
| 4 | H2 Sections & Standard Markdown Links | 15 pts | Organizes URLs under ## Section using - [Title](https://...): description. |
| 5 | ## Optional Section | 5 pts | Includes a secondary section LLMs may omit under tight context limits. |
| 6 | Live Link Patrol (first 8 URLs) | 15 pts | All checked URLs return HTTP 2xx/3xx with zero 404 dead links. |
| 7 | LLM Token Budget | 10 pts | Stays compact (<= 4,000 tokens / ~16,000 chars); overflow moves to /llms-full.txt. |
| 8 | /llms-full.txt & robots.txt Access | 10 pts | AI crawlers (GPTBot, OAI-SearchBot, PerplexityBot, ClaudeBot) are allowed and companion /llms-full.txt is checked. |
How to fix the "Fake HTTP 200 SPA HTML Shell" error
Nearly 30% of modern React, Next.js, Vite, and Vue apps accidentally return index.html with HTTP 200 when an AI crawler requests /llms.txt. That happens whenever a catch-all SPA rewrite runs before static files:
- Cloudflare Pages / Workers: Put
llms.txtinsidepublic/or register an explicit Worker routeapp.get("/llms.txt", ...)returningContent-Type: text/plain; charset=utf-8. - Vercel / Next.js: Place the file at
public/llms.txtand exclude.txtfiles in any middleware matcher. - Netlify: Ensure
_redirectsuses/* /index.html 200(without!force flag) so real files like/llms.txttake precedence. - Nginx: Serve with
try_files $uri $uri/ /index.html;and verifycurl -I https://yourdomain.com/llms.txtprintstext/plain.
Need to build a clean file from scratch? Try our free llms.txt generator or pair it with the free AI robots.txt generator.