---
name: robots-ai-crawler-audit
description: Audit robots.txt and edge WAF behavior across all major AI search and training user-agents. Separates live search citation bots from training scrapers and verifies real HTTP 200 zero-JS responses.
version: 1.0.0
author: Jason Zhu (Yansen Zhu) <https://jasonzhu.ai>
license: MIT
---

# robots.txt & AI Crawler Access Audit

Many SaaS sites accidentally vanish from ChatGPT Search, Perplexity, and Claude because an aggressive `robots.txt` rule or Cloudflare's default *"Block AI Scrapers and Crawlers"* toggle blocks live search bots alongside training scrapers.

## Bot Taxonomy (Never Confuse Search vs. Training)

### Tier 1: Live AI Search & User-Triggered Retrieval (ALLOW for AI Visibility)
- `OAI-SearchBot` — ChatGPT Search index crawler
- `ChatGPT-User` — Live user-triggered fetches inside ChatGPT
- `PerplexityBot` & `Perplexity-User` — Perplexity answer engine crawlers
- `Claude-SearchBot` & `Claude-User` — Anthropic Claude web search & live fetches
- `Googlebot` — Powers Google Search, AI Overviews, and AI Mode (also followed by Brave Search)
- `Bingbot` — Powers Bing & feeds parts of ChatGPT Search

### Tier 2: Foundation Model Training Crawlers (Policy Choice)
- `GPTBot` (OpenAI training)
- `ClaudeBot` (Anthropic training)
- `Google-Extended` (Gemini training control — does **not** block Google Search or AI Overviews)
- `CCBot` (Common Crawl), `Meta-ExternalAgent`, `Bytespider`, `Amazonbot`

## 4-Step Audit Workflow

### Step 1: Parse `/robots.txt`
Check for:
- Accidental `Disallow: /` under `User-agent: *` or specific Tier 1 bots.
- Missing `Sitemap: https://<domain>/sitemap.xml` directive.
- Disallowing `/api/`, `/admin`, `/dashboard`, and infinite search query parameters (`/*?q=`) to protect crawl budget.

### Step 2: Live Edge WAF & User-Agent Probe
`robots.txt` saying `Allow: /` means nothing if Cloudflare / Vercel WAF returns `403 Forbidden` or a JS Challenge page (`cf-mitigated: challenge`). Run live HTTP probes with realistic UAs:
```bash
for ua in "OAI-SearchBot/1.0" "PerplexityBot/1.0" "Claude-SearchBot/1.0" "GPTBot/1.2" "Googlebot/2.1"; do
  code=$(curl -s -o /dev/null -w "%{http_code}" -A "$ua" "https://<domain>/")
  echo "$ua -> HTTP $code"
done
```
Any `403`, `429`, or `503` on Tier 1 bots is a **critical visibility blocker**.

### Step 3: Zero-JS Content Visibility Check
AI search bots rarely execute heavy client-side React/Vue hydration. Fetch the raw HTML without JS and verify:
- Main H1, pricing/feature tables, and canonical `<link>` exist in the initial SSR payload.
- Response time is `< 1500 ms` and uncompressed HTML size is `< 1.5 MB`.

### Step 4: Output Clean `robots.txt` Template
Produce a ready-to-commit `robots.txt` matching the user's policy (either *Open for Search + Training* or *Allow Search Citations, Disallow Training Only*), including `Content-Signal` headers where appropriate and an explicit Cloudflare WAF exception checklist.

