{"slug": "why-http-200-ok-hides-broken-llms-txt-files-and-3-production-fixes-for-ai-search", "title": "Why HTTP 200 OK Hides Broken /llms.txt Files (And 3 Production Fixes for AI Search)", "summary": "An audit of live domains using the ProofOfCite llms.txt Validator and AI Crawler Checker found three recurring production failure modes that leave AI search crawlers like PerplexityBot, OAI-SearchBot and Claude-SearchBot unable to ingest sites even when robots.txt allows them. The most common is SPA catch-all rewrites returning HTTP 200 with an HTML shell instead of a 404 for a missing llms.txt, followed by edge bot-blocking rules that selectively return 403 to PerplexityBot despite an Allow: / directive; disabling the edge LLM blocker and fixing managed rules moved one site from selective 403 failures to 8/8 AI crawlers receiving HTTP 200. The writeup prescribes serving llms.txt as UTF-8 plain text with SPA rewrite exclusions on Vercel, Cloudflare Pages, Netlify and Nginx, adding a skip rule for verified AI search fetchers, and resolving the domains linked inside llms.txt to catch silent redirect drift.", "body_md": "If you added `/llms.txt` and `Allow: /` in `robots.txt` and moved on, there is a high chance AI search crawlers (`PerplexityBot`, `OAI-SearchBot`, `Claude-SearchBot`) are still seeing a broken response — while your browser shows `HTTP 200 OK`.\n\nWhile auditing live domains with the free [ProofOfCite `/llms.txt` Validator](https://proofofcite.com/tools/llms-txt-validator) and [AI Crawler Checker](https://proofofcite.com/tools/ai-crawler-checker), three production failure modes kept showing up repeatedly behind valid-looking configurations.\n\n`/llms.txt`\nMost single-page app hosts (`Vercel`, `Cloudflare Pages`, `Netlify`, custom `nginx` `try_files`) configure a catch-all rewrite to `/index.html` so client-side routing works.\n\nIf `/llms.txt` is missing from your static public output directory — or overridden by a rewrite rule — the server does **not** return `404`. It returns `HTTP 200 OK` with `Content-Type: text/html; charset=utf-8` and an empty shell like:\n\n```\n<!doctype html><div id=\"root\"></div>\n```\n\nAutomated spec parsers expect `text/plain` or `text/markdown` starting with a Markdown `# Title` and a `> summary` blockquote. When an SPA shell comes back with HTTP `200`, uptime monitors stay green while AI ingestion parsers fail silently.\n\n`vercel.json` / Cloudflare Pages `_headers` / Nginx)\nServe static `llms.txt` and `llms-full.txt` from your static `public/` directory with UTF-8 plain text headers **and** exclude `.txt` routes from SPA catch-all `index.html` rewrites so missing files return an honest `404` instead of HTML:\n\n**Vercel (`vercel.json`):**\n\n```\n{\n  \"headers\": [\n    {\n      \"source\": \"/(llms\\\\.txt|llms-full\\\\.txt|robots\\\\.txt)\",\n      \"headers\": [\n        { \"key\": \"Content-Type\", \"value\": \"text/plain; charset=utf-8\" }\n      ]\n    }\n  ],\n  \"rewrites\": [\n    {\n      \"source\": \"/((?!llms\\\\.txt|llms-full\\\\.txt|robots\\\\.txt).*)\",\n      \"destination\": \"/index.html\"\n    }\n  ]\n}\n```\n\n**Cloudflare Pages / Netlify (`_headers`):**\n\n```\n/llms.txt\n  Content-Type: text/plain; charset=utf-8\n/llms-full.txt\n  Content-Type: text/plain; charset=utf-8\n```\n\n**Nginx (`try_files`):**\n\n``` php\nlocation ~* ^/(llms|llms-full)\\.txt$ {\n  try_files $uri =404;\n  default_type text/plain;\n  charset utf-8;\n}\n```\n\n`PerplexityBot` with `403` even when `robots.txt` says `Allow: /`\nThis is the most common split-brain failure in production telemetry.\n\nEven when a site explicitly allows bots in `/robots.txt` — for example:\n\n```\nUser-agent: *\nAllow: /\n```\n\n— edge Bot Fight Mode or custom LLM-blocker rules frequently leave `OAI-SearchBot` and `Claude-SearchBot` returning `HTTP 200`, while returning **` HTTP 403 Forbidden`** selectively to `PerplexityBot` (both on the root site and on `/llms.txt`), or blocking `GPTBot` and `ClaudeBot` via managed `robots.txt` injections.\n\nIn a live production telemetry comparison (`Nov 22 -> Nov 26, 2026`), disabling the edge LLM blocker and fixing managed rules flipped a site from selective `HTTP 403` failures across main and docs endpoints to **`8/8` AI crawlers receiving `HTTP 200`**, while documentation routes returned clean `text/markdown; charset=utf-8` (`2,833 B`) directly to AI bots alongside normal HTML for `Googlebot`.\n\nIf you block bulk scraping globally, add a **Custom Rule (Skip)** for verified AI search fetchers so live citation lookups are never blocked:\n\n```\n(cf.client.bot) and (\n  http.user_agent contains \"OAI-SearchBot\" or\n  http.user_agent contains \"ChatGPT-User\" or\n  http.user_agent contains \"Claude-SearchBot\" or\n  http.user_agent contains \"PerplexityBot\" or\n  http.user_agent contains \"Perplexity-User\"\n)\n-> Action: Skip (Managed Rules, Super Bot Fight Mode)\n```\n\n`NXDOMAIN`)\nSyntax linters only check whether `# Heading` and `[label](url)` look right. They do **not** resolve the domains inside your `/llms.txt`.\n\nIn real production audits, we see two silent drift bugs:\n\n`llms.txt` links still pointing to legacy trade/app domains that 301-redirect elsewhere while omitting the canonical documentation index (`https://docs.example.com/llms.txt`).` rpc.testnet.monad.xyz` failing DNS resolution after moving to `testnet-rpc.monad.xyz`).\nEvery `/llms.txt` deploy check should verify four things together:\n\n`HTTP 200` with `text/plain` or `text/markdown` (never `text/html`).`#` H1 title, `>` summary blockquote, and absolute HTTPS Markdown links.`404`/` 5xx` targets.`/robots.txt` (`Allow` + optional `Content-Signal: ai-train=yes, search=yes, ai-input=yes`) `User-Agent` responses across `OAI-SearchBot`, `ChatGPT-User`, `GPTBot`, `Claude-SearchBot`, `ClaudeBot`, `Perplexity-User`, and `Googlebot`.\nYou can run both checks free with no signup:", "url": "https://wpnews.pro/news/why-http-200-ok-hides-broken-llms-txt-files-and-3-production-fixes-for-ai-search", "canonical_source": "https://dev.to/proofofcite/why-http-200-ok-hides-broken-llmstxt-files-and-3-production-fixes-for-ai-search-310e", "published_at": "2026-11-26 18:41:05+00:00", "updated_at": "2026-11-26 18:45:01.270808+00:00", "lang": "en", "topics": ["generative-engine-optimization", "ai-crawlers", "ai-search", "agent-protocols"], "entities": ["ProofOfCite", "PerplexityBot", "OAI-SearchBot", "Claude-SearchBot", "GPTBot", "ClaudeBot", "Vercel", "Cloudflare Pages"], "also_reported_by": [], "takeaway": "SPA catch-all rewrites return HTTP 200 with an HTML shell for a missing llms.txt, so exclude .txt routes from index.html rewrites and serve them as text/plain to get an honest 404; after fixing edge bot rules, one audited site went from selective 403s to 8/8 AI crawlers receiving HTTP 200.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/why-http-200-ok-hides-broken-llms-txt-files-and-3-production-fixes-for-ai-search", "markdown": "https://wpnews.pro/news/why-http-200-ok-hides-broken-llms-txt-files-and-3-production-fixes-for-ai-search.md", "text": "https://wpnews.pro/news/why-http-200-ok-hides-broken-llms-txt-files-and-3-production-fixes-for-ai-search.txt", "jsonld": "https://wpnews.pro/news/why-http-200-ok-hides-broken-llms-txt-files-and-3-production-fixes-for-ai-search.jsonld"}}