1. Home
  2. Learn
  3. AI crawlers & robots.txt
Guide

AI crawlers and robots.txt: how to allow or block AI bots

Your robots.txt decides which AI systems can read your site. Many sites block AI crawlers by accident.

By the PugRank teamPublished Updated
In shortAI crawlers obey robots.txt rules separately from search-engine bots. Allow the ones you want to be cited by, block the ones you do not, and check your rules against what you actually intend.

Why this matters

If a crawler cannot reach your pages, an AI system cannot learn from them. Blanket rules, security plugins and CDN settings sometimes block AI user agents without anyone deciding to.

Common AI crawler names

User agentOperatorTypical purpose
GPTBotOpenAICrawling for model training
OAI-SearchBotOpenAISearch results in ChatGPT
ClaudeBotAnthropicCrawling for model training
PerplexityBotPerplexitySearch index for answers
Google-ExtendedGoogleControl token for use of content in Gemini
CCBotCommon CrawlOpen web corpus used widely for training

Vendors add and rename agents, so confirm current names in each vendor’s documentation.

Example robots.txt

# Allow AI assistants to read the site
User-agent: GPTBot
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: PerplexityBot
Allow: /

# Opt out of one crawler
User-agent: CCBot
Disallow: /

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

Allow versus block: decide on purpose

Training crawlers and search or answer crawlers serve different goals. Some owners allow answer-engine crawlers to be cited while opting out of training. Others allow everything. The right choice depends on your business, and a blanket pass or fail is the wrong way to judge it. PugRank reports access against what you want.

Remember the other layers

robots.txt is a request, not enforcement. Firewalls, bot-protection and CDN rules can still block or allow traffic regardless of what robots.txt says, so check them too.

Frequently asked questions

Will allowing AI crawlers hurt my SEO?

AI crawler rules are separate from search-engine rules, so allowing them does not change how search engines crawl you.

Does robots.txt block AI crawlers completely?

It is a voluntary standard that well-behaved crawlers respect. It is not a security control.

How do I check my current access?

Review robots.txt and your firewall or CDN settings, or run a PugRank scan, which reports AI-crawler access.

Stop reading audits. Start shipping fixes.

Run a free scan on your own site and see what PugRank would change. No write access needed.