// TABLE OF CONTENTS
  1. 基础 AI 友好型 robots.txt
  2. 选择性允许 AI 爬虫
  3. AI 爬虫 User-Agent 清单
  4. 配置验证
CHAPTER 01

基础 AI 友好型 robots.txt

允许所有AI爬虫访问的配置。

robots.txt TEXT
# GEO-friendly robots.txt
# Allow all AI crawlers

User-agent: *
Allow: /
Sitemap: https://example.com/sitemap.xml

# AI-specific crawlers
User-agent: GPTBot
Allow: /

User-agent: Google-Extended
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: Bytespider
Allow: /

User-agent: MoonshotBot
Allow: /

User-agent: DeepSeekBot
Allow: /
CHAPTER 02

选择性允许 AI 爬虫

仅允许特定AI爬虫,屏蔽其他。

robots.txt (selective) TEXT
# Selective AI crawler access

User-agent: *
Allow: /
Disallow: /admin/
Disallow: /internal/

# Allow major AI crawlers
User-agent: GPTBot
Allow: /
Disallow: /admin/

User-agent: Google-Extended
Allow: /
Disallow: /admin/

# Block other AI crawlers
User-agent: CCBot
Disallow: /

User-agent: ChatGPT-User
Disallow: /

# Block unauthorized scrapers
User-agent: AhrefsBot
Disallow: /
CHAPTER 03

AI 爬虫 User-Agent 清单

爬虫名 所属平台 User-Agent 建议
GPTBot OpenAI GPTBot 允许
Google-Extended Google Google-Extended 允许
PerplexityBot Perplexity PerplexityBot 允许
ClaudeBot Anthropic ClaudeBot 允许
Bytespider 字节跳动 Bytespider 允许
MoonshotBot 月之暗面 MoonshotBot 允许
DeepSeekBot 深度求索 DeepSeekBot 允许
CCBot Common Crawl CCBot 视需求
ChatGPT-User OpenAI ChatGPT-User 视需求
CHAPTER 04

配置验证

部署后需验证AI爬虫能否正常访问。

  1. 使用Google Search Console检查爬取状态
  2. 查看服务器日志确认AI爬虫访问
  3. 使用robots.txt测试工具验证规则
  4. 在Bing Webmaster中检查GPTBot状态