/ TECHNICAL SEO · AI CRAWLERS

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

AI companies now run separate bots for training, search indexing and user-requested fetching. Blocking the wrong one can remove you from ChatGPT or Claude search results. Here is what each bot does and the exact rules to use.

Quick answer

If you want AI visibility, allow the search bots: OAI-SearchBot (ChatGPT search), Claude-SearchBot and Claude-User (Claude), PerplexityBot (Perplexity) and Bingbot (Copilot). Training bots such as GPTBot, ClaudeBot and Google-Extended can be allowed or blocked separately without affecting search visibility.

The main AI bots explained

BotCompanyPurposeBlock it?
OAI-SearchBotOpenAIIndexes pages for ChatGPT searchNo, if you want ChatGPT visibility
GPTBotOpenAIModel trainingYour choice
ChatGPT-UserOpenAIFetches pages for a user’s requestrobots.txt may not apply
Claude-SearchBotAnthropicIndexes pages for Claude searchNo, if you want Claude visibility
Claude-UserAnthropicFetches pages for a user’s requestNo, if you want Claude visibility
ClaudeBotAnthropicModel trainingYour choice
PerplexityBotPerplexityIndexes pages for Perplexity answersNo, if you want Perplexity visibility
Google-ExtendedGoogleGemini training and grounding (not Search)Your choice
Applebot-ExtendedAppleApple AI trainingYour choice
BingbotMicrosoftBing search and CopilotNo

Sources: OpenAI crawler documentation and Anthropic’s crawler documentation. OpenAI notes that sites opted out of OAI-SearchBot won’t be shown in ChatGPT search answers, and Anthropic warns that blocking Claude-SearchBot may reduce visibility in Claude search results.

Copy-ready robots.txt rules

Option A: maximum AI visibility

User-agent: *
Allow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: GPTBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Google-Extended
Allow: /

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

Option B: visible in AI search, opted out of training

User-agent: *
Allow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

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

Remember that a bot obeys the most specific group that names it. If you name a bot, list all its rules in that group.

Don’t forget your firewall and CDN

Many sites allow AI bots in robots.txt but block them at the CDN or firewall level, for example with “block AI bots” toggles or aggressive bot protection. Check your security settings and server logs to confirm the bots you want are actually getting 200 responses.

What is llms.txt?

llms.txt is a proposed standard: a Markdown file at /llms.txt that gives AI systems a short summary of your site and links to your most important pages. It does not control access (that is robots.txt’s job) and no major AI search platform has confirmed it as a ranking signal. Still, it takes minutes to create and documents your key pages clearly. A minimal example:

# Example Co
> Example Co provides local SEO services for dental clinics in the UAE and Saudi Arabia.

## Services
- [Local SEO for dentists](https://example.com/local-seo-dentists/): what's included and pricing
- [Arabic SEO](https://example.com/arabic-seo/): bilingual SEO for GCC clinics

## Guides
- [Dental SEO checklist](https://example.com/blog/dental-seo-checklist/)

AI crawler checklist

  • Decide your policy: search visibility yes or no; training yes or no.
  • Update robots.txt with explicit groups for each bot.
  • Check CDN and firewall bot settings.
  • Confirm with server logs that allowed bots get 200 responses.
  • Add an llms.txt summarising your key pages (optional).
  • Review every six months, as companies add new bots.

Next steps

Crawler access is step one of generative engine optimization. Next, make sure your pages are worth citing: read how to rank in ChatGPT, or let us handle it with our GEO services.

Frequently asked questions

Should I block GPTBot?

That is a business decision. Blocking GPTBot asks OpenAI not to use your content for model training. It does not remove you from ChatGPT search, which is controlled by OAI-SearchBot.

Will blocking AI crawlers hurt my Google rankings?

Blocking GPTBot, ClaudeBot or Google-Extended does not affect Google Search rankings. Blocking Googlebot would. Google-Extended only controls use of your content for Gemini models and grounding.

Does robots.txt stop ChatGPT from visiting my site?

It stops OAI-SearchBot and GPTBot if you disallow them. OpenAI says robots.txt rules may not apply to ChatGPT-User, which fetches pages when a user asks.

Is llms.txt required?

No. It is an optional, proposed standard. No major AI platform has confirmed using it for ranking, but it is quick to create and can help AI tools and developers understand your site.

Related services

Keep reading

LET’S TALK ABOUT WHAT’S NEXT

Want to be found on Google and in AI answers?

Tell us your market, your goals and your website. You get a clear, scoped plan before any work begins.

Get a free SEO review
LET’S TALK ABOUT WHAT’S NEXT

Your next stage of growth
starts with a conversation.

Tell us what you want to build, improve, or manage.

Discuss your project