AI 爬虫与 robots.txt 审计v1.0.0 · MIT · 2026-12-01
robots.txt 与 AI 爬虫放行策略审计 Skill
精准区分 AI 搜索抓取爬虫(OAI-SearchBot / PerplexityBot / Claude-SearchBot)与模型训练爬虫(GPTBot / ClaudeBot),排查 Cloudflare WAF 误拦截并输出标准 robots.txt。
兼容环境:Claude CodeCursorCodex CLICloudflareVercel
一键安装到 .claude/skills
mkdir -p .claude/skills/robots-ai-crawler-audit && curl -fsSL https://jasonzhu.ai/skills/robots-ai-crawler-audit/skill.md -o .claude/skills/robots-ai-crawler-audit/SKILL.mdSKILL.md
作者:Jason Zhu (Yansen Zhu)---
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.实证落地与 B2B 诊断入口
用 OpenSEO MCP 自动化执行,或预约免费 1 页实体缺口体检
如果你的 SaaS / AI 产品团队正在推进 GEO、知识图谱实体消歧或 AI 搜索获客,可以先用免费扫描器测一下域名得分,或直接发域名预约 Jason Zhu (Yansen Zhu) 出具 1 页实体缺口诊断书。
其他开源 GEO / SEO Skills
geo-entity-gap-audit
GEO 与知识图谱(KG)实体缺口诊断 Skill
aeo-answer-index
AEO 行业推荐月榜(Answer Index)与多引擎引用基准 Skill
gsc-genai-branded-halo
GSC 原生品牌词分类与 AI 搜索光环效应追踪 Skill
seo-image-chisel
高信息密度内容剪枝(Chisel)与博客图片 SEO 规范 Skill
llms-txt-validator
llms.txt 生成与规范校验 Skill
schema-org-graph-builder
Schema.org @graph 结构化数据构建与校验 Skill