Skip to main content
Back to blog
Technical

robots.txt for AI Crawlers: Config Guide for 8 Bots [2026]

robots.txt controls GPTBot, ClaudeBot, PerplexityBot and 5 more AI crawlers. Copy-paste configs, selective access rules and mistakes to avoid.

Published
Updated
10 min readRead

robots.txt for AI Crawlers: Complete Configuration Guide

Your robots.txt file controls which AI crawlers can access your content. Proper configuration is essential for AI visibility. This guide covers all major AI crawlers and provides copy-paste configurations. Also consider setting up an llms.txt file alongside your robots.txt.

Key Takeaways

  • 8 AI user agents matter most in 2026: OAI-SearchBot, GPTBot, ChatGPT-User, Claude-SearchBot, ClaudeBot, PerplexityBot, Google-Extended and Applebot-Extended. The search crawlers decide whether AI answers can cite you; the training ones do not.
  • The recommended approach is selective access: allow public content (blog, docs, guides) while blocking sensitive areas (admin, API, dashboard).
  • Blocking GPTBot does not remove you from ChatGPT search. GPTBot collects training data; OAI-SearchBot fetches the pages ChatGPT search cites. Block OAI-SearchBot and ChatGPT search can no longer cite you.
  • Crawl-delay is unreliable for AI bots. Not all crawlers respect it. Use server-side rate limiting instead if crawl volume is a concern.
  • Review your robots.txt quarterly as new AI crawlers emerge regularly.

Curious how your site scores?

Check your AI visibility in 30 seconds. No signup required.

3 free scans per day · No signup required

Understanding AI Crawlers

AI platforms run two kinds of crawler. Search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot) fetch pages so AI answers can cite them. Training crawlers (GPTBot, ClaudeBot) collect content for future models. Blocking one kind does not block the other. Google AI Overviews and AI Mode have no crawler of their own: they cite pages Googlebot has indexed.

Major AI Crawlers

CrawlerPlatformUser-Agent
OAI-SearchBotChatGPT searchOAI-SearchBot
GPTBotOpenAI model trainingGPTBot
ChatGPT-UserChatGPT, pages a user asks forChatGPT-User
Claude-SearchBotClaude searchClaude-SearchBot
ClaudeBotAnthropic model trainingClaudeBot
PerplexityBotPerplexity searchPerplexityBot
Google-ExtendedGemini training and Gemini app answers (a token; Googlebot crawls)Google-Extended
Applebot-ExtendedApple Intelligence training (a token; Applebot crawls)Applebot-Extended

Amazonbot and CCBot also crawl for AI training.

Basic Configurations

Allow All AI Crawlers

# AI Crawlers - Allow All
User-agent: OAI-SearchBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: GPTBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Google-Extended
Allow: /

User-agent: Applebot-Extended
Allow: /

Block All AI Crawlers

# AI Crawlers - Block All
User-agent: OAI-SearchBot
Disallow: /

User-agent: Claude-SearchBot
Disallow: /

User-agent: GPTBot
Disallow: /

User-agent: ChatGPT-User
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: PerplexityBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /
# AI Crawlers - Selective Access
# Allow public content, block sensitive areas

User-agent: OAI-SearchBot
Allow: /
Disallow: /admin/
Disallow: /api/

User-agent: Claude-SearchBot
Allow: /
Disallow: /admin/
Disallow: /api/

User-agent: GPTBot
Allow: /blog/
Allow: /docs/
Allow: /guides/
Allow: /glossary/
Disallow: /admin/
Disallow: /api/
Disallow: /dashboard/
Disallow: /account/

User-agent: ChatGPT-User
Allow: /
Disallow: /admin/
Disallow: /api/

User-agent: ClaudeBot
Allow: /blog/
Allow: /docs/
Allow: /guides/
Disallow: /admin/
Disallow: /api/

User-agent: PerplexityBot
Allow: /
Disallow: /admin/
Disallow: /api/

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

Platform-Specific Considerations

OpenAI (GPTBot)

Crawl behavior:

  • Respects robots.txt
  • GPTBot collects training data; OAI-SearchBot fetches pages for ChatGPT search; ChatGPT-User fetches a page when a user asks for it

Recommendation: Allow OAI-SearchBot on every page you want ChatGPT search to cite. Allowing or blocking GPTBot is a separate choice about training.

Anthropic (ClaudeBot)

Crawl behavior:

  • Respects robots.txt
  • ClaudeBot collects training data; Claude-SearchBot fetches pages for Claude's search answers; Claude-User fetches a page when a user asks for it

Recommendation: Allow Claude-SearchBot on every page you want Claude to cite. ClaudeBot is a separate choice about training.

Perplexity (PerplexityBot)

Crawl behavior:

  • Very active crawler
  • Real-time search focus
  • Respects robots.txt

Recommendation: Allow broad access for search visibility.

Google (Google-Extended)

Crawl behavior:

  • Not a crawler: a robots.txt token. Googlebot does the crawling
  • Controls whether Gemini may train on your pages and use them to ground Gemini app answers
  • Introduced in September 2023
  • Does not affect Google Search, AI Overviews or AI Mode

Recommendation: Allow it if you want to appear in Gemini app answers. AI Overviews and AI Mode depend on Googlebot access and snippet eligibility; Google-Extended changes nothing there.

Advanced Configurations

Rate Limiting

# Crawl delay for AI bots (in seconds)
User-agent: GPTBot
Allow: /
Crawl-delay: 10

User-agent: ClaudeBot
Allow: /
Crawl-delay: 10

Note: Not all crawlers respect Crawl-delay.

Sitemap Reference

# Include sitemap reference
Sitemap: https://yoursite.com/sitemap.xml

User-agent: GPTBot
Allow: /

Combined with Traditional Bots

# Traditional Search Engines
User-agent: Googlebot
Allow: /

User-agent: Bingbot
Allow: /

# AI Crawlers
User-agent: GPTBot
Allow: /

User-agent: ClaudeBot
Allow: /

# General Rules
User-agent: *
Allow: /
Disallow: /admin/
Disallow: /api/

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

Testing Your Configuration

1. Verify File Location

Your robots.txt must be at your domain root:

https://yoursite.com/robots.txt

2. Test Accessibility

Access the URL directly in a browser.

3. Validate Syntax

Use the robots.txt report in Google Search Console (Google retired its robots.txt Tester in 2023) or another robots.txt parser.

4. Monitor Crawl Logs

Check server logs for AI crawler activity.

Common Mistakes

1. Blocking All Bots Accidentally

# WRONG - This blocks everything including AI bots
User-agent: *
Disallow: /

2. Incorrect File Location

Place robots.txt at domain root, not in subdirectories.

3. Conflicting Rules

Order does not matter. A crawler follows only the group that names it most specifically, and inside that group the longest matching path wins. A User-agent: GPTBot group replaces your User-agent: * rules for GPTBot; it does not add to them.

4. Missing AI Crawlers

Update your robots.txt as new AI crawlers emerge.

5. Not Updating After Site Changes

Review robots.txt when restructuring your site.

Implementation Checklist

  • [ ] Identify which AI platforms matter for your business
  • [ ] Decide on allow/block strategy
  • [ ] Create or update robots.txt
  • [ ] Place at domain root
  • [ ] Validate syntax
  • [ ] Test accessibility
  • [ ] Monitor crawler activity
  • [ ] Review quarterly

Framework-Specific Implementation

Next.js

Create public/robots.txt or use dynamic generation.

WordPress

Use SEO plugins like Yoast or RankMath.

Static Sites

Add robots.txt to your build output directory.

Configure your robots.txt properly to maximize your AI visibility while protecting sensitive content.

Questions

Frequently asked questions.

01

Should I allow or block AI crawlers in robots.txt?

For most businesses, allowing AI crawlers is beneficial because it enables your content to be cited in AI-generated responses. Block AI crawlers only if you have specific concerns about content licensing or data usage. A selective approach works best: allow crawlers access to public marketing content while blocking sensitive areas like admin panels and user data.

02

What are all the AI crawler user agents I need to configure?

The search crawlers decide whether AI answers can cite you: OAI-SearchBot (ChatGPT search), Claude-SearchBot (Claude) and PerplexityBot (Perplexity). Google AI Overviews and AI Mode use Googlebot. The training user agents are GPTBot (OpenAI), ClaudeBot (Anthropic), Google-Extended (Gemini training and Gemini app answers), Applebot-Extended (Apple Intelligence), Bytespider (ByteDance) and CCBot (Common Crawl, used by many AI models). Each needs its own User-agent group in your robots.txt file.

03

Does blocking GPTBot also block ChatGPT web search?

No. GPTBot collects content that may be used to train OpenAI's models; ChatGPT search fetches pages with a separate crawler, OAI-SearchBot. You can block GPTBot and still appear in ChatGPT search, as long as OAI-SearchBot is allowed. Many sites block both together by accident, often with one catch-all rule. If you want ChatGPT to cite your content in search answers, allow at least OAI-SearchBot on your public pages.

04

How do I selectively allow AI crawlers on specific pages?

Use the Allow and Disallow directives in combination for each crawler. For example, allow GPTBot access to your blog and product pages with Allow directives while blocking admin and staging directories with Disallow. You can also use the Crawl-delay directive to limit how frequently AI bots access your site to reduce server load.

05

How quickly do AI crawlers respect robots.txt changes?

Most AI crawlers re-check robots.txt every 24 to 48 hours, though some may cache it for up to a week. After updating your robots.txt, allow at least one week before expecting full compliance. Note that previously crawled content may still exist in AI training data or caches even after you block a crawler.

See how your site performs in AI search.

Get your AI visibility score in 30 seconds. Free, no account needed.