robots.txt で AI クローラーを制御する ― 手順・レシピ・チェックリスト

方針決めから配置・限界の理解まで。 ・ 記法は RFC 9309 (Robots Exclusion Protocol) ・ 最終更新 2026-09-10

方針を決める(読ませたい/学習だけ拒否/全拒否)

対象のUser-agentを選ぶ

robots.txt に User-agent と Allow / Disallow を書く

サイト直下 /robots.txt に配置する

robots.txt の限界を理解しておく

AIに読ませたいなら llms.txt もあわせて用意する

コピペ用レシピ(3種)

すべてのAIクローラーを許可する(AIに読ませたい)

robots.txt(すべてのAIクローラーを許可する(AIに読ませたい))
User-agent: *
Allow: /

# AIクローラーを明示的に許可
User-agent: GPTBot
Allow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Google-Extended
Allow: /

Sitemap: https://example.com/sitemap.xml

AI学習だけ拒否し、AI検索は許可する

robots.txt(AI学習だけ拒否し、AI検索は許可する)
# --- AI学習クローラーを拒否 ---
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: anthropic-ai
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: CCBot
Disallow: /

# --- AI検索はそのまま許可(何も書かなければ許可) ---
User-agent: OAI-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

すべてのAIクローラーを拒否する

robots.txt(すべてのAIクローラーを拒否する)
User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Claude-SearchBot
Disallow: /

User-agent: anthropic-ai
Disallow: /

User-agent: PerplexityBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: CCBot
Disallow: /

設定チェックリスト