How to Configure robots.txt and Validate llms.txt for GPTBot, PerplexityBot & ClaudeBot (2026 Checklist + Open-Source CLI)
When we audited 10 indie SaaS websites in December 2026, one finding surprised almost every founder we spoke with: ranking top 5 on Google no longer guarantees that ChatGPT Search, Perplexity, or Claude can even read you
When we audited 10 indie SaaS websites in December 2026, one finding surprised almost every founder we spoke with: ranking top 5 on Google no longer guarantees that ChatGPT Search, Perplexity, or Claude can even read your site.
Two quiet technical bugs cause most of the drop-off:
-
CDN /
robots.txtrules accidentally block AI search retrieval bots (OAI-SearchBot,ChatGPT-User,PerplexityBot,Claude-SearchBot) while trying to block model training crawlers (GPTBot,ClaudeBot,CCBot). -
Broken or "false-200 HTML"
/llms.txtfiles: SPA routers (Next.js, Vite, Cloudflare Pages) returnHTTP 200withContent-Type: text/htmlfor/llms.txtinstead of plain Markdown, or include dead URLs and 20,000+ token dumps that LLMs truncate.
Here is the exact 2026 technical checklist we use β plus free no-signup tools and a zero-dependency MIT CLI you can run locally in 2 seconds.
1. Separate AI Search Bots from Model Training Bots in robots.txt
Most engineering teams don't realize OpenAI, Anthropic, and Perplexity use different User-Agents for live search citations vs. model training:
| Bot User-Agent | Provider | Purpose |
|---|---|---|
OAI-SearchBot |
OpenAI | ChatGPT Search live indexing |
ChatGPT-User |
OpenAI | Real-time user-triggered fetches |
PerplexityBot / Perplexity-User
|
Perplexity | Live web-grounded citations |
Claude-SearchBot / Claude-User
|
Anthropic | Claude live search & user browsing |
GPTBot |
OpenAI | Foundation model training |
ClaudeBot |
Anthropic | Model training crawler |
Google-Extended |
Gemini training opt-in/out |
If you want to stay cited in ChatGPT, Perplexity, and Claude answers while blocking training crawlers, your robots.txt should explicitly allow the search bots and disallow only the training bots:
# Allow live AI Search & citation crawlers
User-agent: OAI-SearchBot
Allow: /
User-agent: ChatGPT-User
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: Claude-SearchBot
Allow: /
# Block foundation model training crawlers
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
You can inspect your live robots.txt or generate a clean 18-bot preset (either Max AI Visibility or Allow AI Search / Block Training) in 5 seconds with our free no-signup AI robots.txt Generator.
2. Validate Your /llms.txt Against 8 Real-World Failure Modes
Publishing an /llms.txt file only helps if crawlers receive valid, compact Markdown. When we tested live SaaS domains (including stripe.com and resend.com), the most common issues were:
-
False-200 HTML shells β SPA catch-all routes serving
text/htmlinstead oftext/plainortext/markdown. -
Missing
# H1title or> blockquotesummary required by thellmstxt.orgspec. -
Broken links inside
/llms.txtβ stale docs URLs returning404. -
Token bloat β stuffing 15,000+ tokens into
/llms.txtinstead of keeping/llms.txtunder ~4,000 tokens and moving full prose to/llms-full.txt.
You can run all 8 checks (HTTP content-type, spec structure, live broken-link check, and token budget) via our free llms.txt Validator & Checker β or run our zero-dependency Node/Bun CLI directly from the terminal.
3. Run the Open-Source Zero-Dependency CLI Locally (MIT)
We upgraded our open-source CLI (scripts/check-geo.mjs v2.0) in citedpulse/ai-visibility-benchmark-2026 so you can audit any domain in CI/CD with zero npm install:
git clone https://github.com/citedpulse/ai-visibility-benchmark-2026.git
cd ai-visibility-benchmark-2026
node scripts/check-geo.mjs https://yourdomain.com
It returns a single JSON report covering:
- All 12 AI search vs training bots in
robots.txt - Non-JS SSR visible character count (crucial because AI bots do not execute client-side JavaScript)
- Valid JSON-LD structured data block count
-
/llms.txt&/llms-full.txtspec hygiene, false-200 HTML check, and estimated token count
4. Check Both Your Google Rank and AI Search Citation Rank
Technical readiness gets crawlers through the door; third-party citations determine whether AI recommends you. If you want to compare where you rank on Google Top 30 vs. whether Perplexity & Gemini actually recommend your brand for the same keyword, you can test both side by side for free (no signup) at CitedPulse Site Ranking Checker or run a full 5-prompt audit at CitedPulse.
Happy to audit any indie SaaS domain in the comments!
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.