Skip to content

Technical setup

robots.txt rules for AI crawlers: what to allow and what to block

Which AI bots read your site, what each one does, and the robots.txt rules that keep you in ChatGPT, Claude and Perplexity answers while opting out of model training if you want to.

The short answer

  • Your robots.txt decides which AI bots may read your site. Blocking the wrong one can quietly keep you out of ChatGPT, Claude or Perplexity answers.
  • Search bots put you in answers: OAI-SearchBot, Claude-SearchBot, PerplexityBot, Googlebot and Bingbot. Allow them.
  • Training bots (GPTBot, ClaudeBot) and usage tokens (Google-Extended, Applebot-Extended) control model training. Blocking them is your choice and doesn't remove you from search.
  • A bot follows only the most specific group that names it, so a group for one bot must repeat every rule you want it to obey.

What is robots.txt?

robots.txt is a text file at yoursite.com/robots.txt that tells bots which pages they may fetch. It's an internet standard (RFC 9309), and every major search and AI crawler reads it before visiting.

It's a polite request, not a lock. It doesn't hide pages from people, and it doesn't remove a page that's already in search results (that's what noindex is for).

Which AI bots should I know about?

AI and search bots, from each operator's documentation (October 2026)
User agentCompanyWhat it doesIf you block it
OAI-SearchBotOpenAIFinds pages for ChatGPT searchYou won't be shown in ChatGPT search answers
ChatGPT-UserOpenAIOpens a page when a ChatGPT user asksOpenAI says robots.txt rules may not apply, because a person asked
GPTBotOpenAICollects pages that may be used to train modelsOpts you out of training; ChatGPT search is unaffected
Claude-SearchBotAnthropicIndexes pages for Claude's search resultsMay reduce your visibility in Claude's search results
Claude-UserAnthropicFetches a page when a Claude user asksMay reduce your visibility for user-directed web search
ClaudeBotAnthropicCollects training dataOpts you out of training
PerplexityBotPerplexitySurfaces and links sites in Perplexity searchYou won't appear in Perplexity's search results
Perplexity-UserPerplexityVisits a page to answer a user's questionPerplexity says it generally ignores robots.txt, because a person asked
GooglebotGoogleGoogle Search, including AI Overviews and AI ModeYou disappear from Google Search
Google-ExtendedGoogleNot a crawler: controls use for training and grounding in some of Google's other AI systemsDoesn't affect Google Search or AI Overviews
BingbotMicrosoftBing search, which Copilot's web answers draw onYou drop out of Bing and Copilot's web answers
ApplebotAppleSearch in Spotlight, Siri and SafariYou leave Apple's search features
Applebot-ExtendedAppleNot a crawler: controls training of Apple's foundation modelsDoesn't affect Apple's search
DuckAssistBotDuckDuckGoFetches pages for DuckAssist answers; not used for trainingDuckDuckGo stops visiting within about 72 hours
AI and search bots, from each operator's documentation (October 2026)

What should a small business allow?

If you want to be recommended, allow every search and answer bot. This file does that, keeps a private area closed and points bots to your sitemap:

robots.txt that welcomes search and answer engines

# Search and answer engines: allowed everywhere except private areas
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: Googlebot
User-agent: Bingbot
User-agent: Applebot
User-agent: DuckAssistBot
Allow: /
Disallow: /admin/

# Everyone else
User-agent: *
Allow: /
Disallow: /admin/

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

Add a group for the training bots and tokens. Your search bots keep their own group, so you stay in ChatGPT, Claude and Perplexity answers and in Google Search.

Add this group to opt out of model training

# Opt out of AI model training (search is unaffected)
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
Disallow: /

This is a business choice, not a technical requirement. OpenAI, Anthropic, Google and Apple document training and search as separate controls, so you can opt out of one and keep the other.

What are the most common mistakes?

  • A leftover `Disallow: /`. Staging sites often block everything, and the rule survives the launch. One line hides the whole site from every bot.
  • A bot group that forgets the shared rules. Because the most specific group wins, a group for Googlebot with no Disallow: /admin/ lets Googlebot into /admin/.
  • Blocking Googlebot to “stop AI”. It removes you from Google Search altogether. Use Google-Extended for AI training instead.
  • Typos in bot names. Matching ignores upper and lower case, but not spelling: PerplexityBot works, Perplexity Bot doesn't.
  • The file in the wrong place. It must sit at the root of each host. shop.example.com needs its own robots.txt.
  • Firewalls that block bots anyway. Some security plugins and CDNs block AI crawlers before robots.txt is ever read. Check your host's or CDN's bot settings too.

How do I check my robots.txt?

  1. Open yoursite.com/robots.txt in a browser and read it top to bottom.
  2. Run the free AI visibility checker: it tests the file against each assistant's bot and says, in plain words, who can read your site.
  3. If you use Google Search Console, its robots.txt report shows the version Google last fetched.

Google says it generally caches robots.txt for up to 24 hours, and DuckDuckGo says changes take about 72 hours to reach DuckAssistBot, so give a fix a few days before judging it.

Questions people also ask

Type to search these questions, or ask anything about getting found on Google and AI.

Will blocking GPTBot remove me from ChatGPT?

No. GPTBot is OpenAI's training crawler. ChatGPT search uses OAI-SearchBot, which you can keep allowed.

Do I need a separate rule for every AI bot?

No. If you don't name a bot, it follows your catch-all group (User-agent: *). Name bots only when you want them treated differently, and repeat any shared rules in that group.

Can robots.txt stop people asking ChatGPT about my site?

Not fully. OpenAI and Perplexity say their user-triggered fetchers (ChatGPT-User, Perplexity-User) may not follow robots.txt, because a person asked for the page. Anything private belongs behind a login, not just a robots.txt rule.

Sources

  1. RFC 9309: Robots Exclusion Protocol(opens in a new tab) · IETF
  2. How Google interprets the robots.txt specification(opens in a new tab) · Google Search Central
  3. Overview of OpenAI crawlers(opens in a new tab) · OpenAI
  4. Does Anthropic crawl data from the web, and how can site owners block the crawler?(opens in a new tab) · Anthropic
  5. Perplexity crawlers(opens in a new tab) · Perplexity
  6. AI features and your website(opens in a new tab) · Google Search Central
  7. About Applebot(opens in a new tab) · Apple
  8. DuckAssistBot(opens in a new tab) · DuckDuckGo
  9. Transparency note for Microsoft Copilot(opens in a new tab) · Microsoft

Checked on . AI products change quickly; the operators' own pages are the final word.

Terms in this guide

Be the business AI recommends.

Pick a plan, connect your site and let CiteMagnet fix what's in the way. Cancel any time.