什么是 llms.txt?应该放在网站的哪个位置?
llms.txt 是专为大语言模型设计的纯文本 Markdown 站点目录文件,应放置在域名根目录(https://yourdomain.com/llms.txt),帮助 AI 绕过繁杂 HTML 噪音直达高价值文档与产品页。
自动抓取网站首页与 sitemap.xml 一键合成符合 llmstxt.org 规范的纯净 Markdown 导航目录,实时检测 Soft-404 假成功陷阱、死链与 Token 预算。
Detects explicit or wildcard blocks for OAI-SearchBot, ChatGPT-User, PerplexityBot, ClaudeBot, GPTBot, Google-Extended, and Bytespider.
Checks /llms.txt & /llms-full.txt for llmstxt.org syntax, soft-404 HTML traps, dead links, and LLM context token budget.
Simulates headless AI Markdown extraction, flags JS-only SPA blind spots, verifies JSON-LD schema, and scores citation signals.
Crawls your homepage & sitemap.xml from Cloudflare Edge to synthesize a clean, spec-compliant Markdown index for LLMs.
Place the downloaded file at your domain root (https://yourdomain.com/llms.txt) with Content-Type: text/plain; charset=utf-8. Keep it under 4,000–10,000 tokens for optimal LLM retrieval.
Shows whether your live /robots.txt allows or blocks major AI Search & AI Training crawlers.
Choose a preset strategy or toggle individual AI bots to generate a clean robots.txt file.
Structured JSON-LD helps LLMs verify your brand identity, pricing, and direct FAQ answers without hallucinating.
Paste inside the <head> section of your webpage.
Paste any draft article, landing page copy, or Markdown to measure how likely LLMs are to quote it.
Generate 12 high-intent buyer & fact-check prompts and test your brand visibility across ChatGPT, Perplexity, Claude, and Google in one click.
透明公开的 5 维度 100 分制评分标准(每个维度 20 分),以及主流 AI 搜索引擎与模型训练爬虫分类对照。
| 评估维度 | 权重 | 达标量化基准 |
|---|---|---|
| AI 爬虫访问权限 | 20 分 | 7/7 AI 搜索爬虫放行且无 noindex/noai |
llms.txt 开放规范 | 20 分 | 纯文本非 Soft-404,≤ 10,000 tokens,含有效外链 |
| JSON-LD 与 Meta | 20 分 | 完整标题/描述/Canonical + 合法 FAQPage/Organization |
| Markdown 可提取性 | 20 分 | 非纯 JS SPA 空壳,≥ 250 有效词,唯一 H1 + ≥ 2 H2 |
| AI 引用友好信号 | 20 分 | ≥ 3 处量化数据、≥ 2 问答标题、列表/表格与更新日期 |
| User-Agent | 所属平台 | 分类与建议 |
|---|---|---|
| OAI-SearchBot | ChatGPT Search | 搜索 · 推荐放行 |
| PerplexityBot | Perplexity AI | 搜索 · 推荐放行 |
| Claude-SearchBot | Anthropic Claude | 搜索 · 推荐放行 |
| GPTBot / ClaudeBot | OpenAI / Anthropic | 训练 · 按需配置 |
| Google-Extended | Google Gemini | 训练 · 不影响 SEO |
| Bytespider / CCBot | 豆包 / Common Crawl | 训练 · 按需配置 |
快速掌握 /llms.txt 的标准语法、Token 控制与常见部署避坑指南。
llms.txt 是专为大语言模型设计的纯文本 Markdown 站点目录文件,应放置在域名根目录(https://yourdomain.com/llms.txt),帮助 AI 绕过繁杂 HTML 噪音直达高价值文档与产品页。
标准结构包含:顶部的唯一 # H1 站点名称、紧随其后的 > 引用块一句话核心摘要,以及按主题分组的 ## H2 章节和标准 Markdown 链接列表(- [标题](URL): 简述)。
许多 SPA 单页应用在未部署 /llms.txt 时,服务器会返回 200 状态码的 HTML 首页兜底。AI 解析器拿到 HTML 会直接失效,务必确保返回 text/plain 或 text/markdown 纯文本。
推荐将 /llms.txt 控制在 300–4,000 Tokens(不超过 10,000 Tokens),确保 AI Agent 单次抓取即可完整读取;更详尽的全文参考可单独放在 /llms-full.txt。