llms.txt & robots.txt for AI Search: Copy-Paste Templates (2026)
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 /
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 Google-Extended), and pair it with /llms.txt (Content-Type: text/plain; charset=utf-8) so AI assistants find your product pages, pricing, and docs in one clean fetch.
Separating Search Citation Bots vs. Training Crawlers
| User-Agent | Platform | Role | Recommended Rule |
|---|---|---|---|
OAI-SearchBot |
OpenAI / ChatGPT | Indexes pages for ChatGPT Search citations | Allow: / |
ChatGPT-User |
OpenAI / ChatGPT | Fetches pages triggered by a user query | Allow: / |
GPTBot |
OpenAI | Foundation model training corpus | Allow or Disallow (optional opt-out) |
PerplexityBot |
Perplexity AI | Search index discovery | Allow: / |
Claude-SearchBot |
Anthropic / Claude | Web search citations | Allow: / |
ClaudeBot |
Anthropic | Model training web crawler | Allow or Disallow (optional opt-out) |
Google-Extended |
Google Gemini | Gemini training opt-out (does not block Google Search) | Optional |
Production robots.txt Split Template (Block Training, Keep AI Search)
User-agent: *
Allow: /
Disallow: /admin/
Disallow: /api/
User-agent: OAI-SearchBot
Allow: /
User-agent: ChatGPT-User
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
Sitemap: https://yourdomain.com/sitemap.xml
Minimal /llms.txt Blueprint
# Your Brand Name
> One-sentence summary of what you build, who it helps, and transparent pricing.
## Core Pages
- [Product Name](https://yourdomain.com/product): Key features and pricing.
- [Documentation](https://yourdomain.com/docs): Setup guide.
Test Your Live Domain in 10 Seconds (Free)
Want to verify whether your site actually serves /llms.txt with UTF-8 headers, allows OAI-SearchBot/PerplexityBot, and exposes server-rendered JSON-LD? Run your URL through the free Onyxcine SEO & GEO Checker (no sign-up needed).
Originally published at onyxcine.com.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.