{
  "id": 21728454,
  "title": "llms.txt & robots.txt for AI Search: Copy-Paste Templates (2026)",
  "url": "https://urgent.news/2026/11/25/llms-txt-robots-txt-for-ai-search-copy-paste-templates-2026",
  "topic": "ai",
  "section": "AI",
  "published": "2026-11-25T03:18:44.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/thng_trngthanh_f9a91c/llmstxt-robotstxt-for-ai-search-copy-paste-templates-2026-29n5"
  },
  "original_language": "en",
  "account": "Many websites accidentally block AI search engines while trying to block scrapers. They publish /llms.txt expecting instant traffic without checking whether /robots.txt even allows search crawlers in. The short answer is to use /robots.txt as the crawl permission gate, allowing search bots like OAI-SearchBot, PerplexityBot, and Claude-SearchBot, even if disallowing model-training tokens like GPTBot and Google-Extended. Pairing it with /llms.txt (Content-Type: text/plain; charset=utf-8) helps AI assistants find product pages, pricing, and docs in a single fetch.\n\nTo separate search citation bots from training crawlers, use User-Agent headers: OpenAI for ChatGPT, Anthropic for Claude, and Google for Gemini. Recommended rules include:\n\n- Allow all pages for search bots like OAI-SearchBot, PerplexityBot, and Claude-SearchBot.\n- Allow / for ChatGPT-User to fetch pages triggered by user queries.\n- Allow / for GPTBot to opt-out of OpenAI Foundation model training corpus.\n\nThe production robots.txt split template blocks training while keeping AI search. It includes:\n\n- User-agent: * Allow: / Disallow: /admin/ Disallow: /api/\n- OAI-SearchBot, ChatGPT-User, PerplexityBot, Claude-SearchBot allowed\n- GPTBot disallowed\n- Sitemap: https://yourdomain.com/sitemap.xml\n\nTo test your live domain, run the URL through the free Onyxcine SEO & GEO Checker in under 10 seconds.",
  "summary": "Many websites accidentally block AI search engines while trying to block scrapers—or publish /llms.txt expecting instant traffic without checking whether /robots.txt even lets search crawlers in. The short answer: Use /robots.txt as your crawl permission gate (allow search bots like OAI-SearchBot , PerplexityBot , and Claude-SearchBot , even if you disallow model-training tokens like GPTBot and…",
  "key_points": [],
  "editors_take": "Implementing a dual-file strategy allows site owners to capture valuable traffic from AI search assistants while simultaneously preventing their proprietary content from being used to train future large language models.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}