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

URL: https://pugrank.vercel.app/learn/ai-crawlers-robots-txt

> Which AI crawlers exist (GPTBot, ClaudeBot, PerplexityBot, Google-Extended) and how to allow or block them in robots.txt without hurting your search rankings.

# 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 17 Oct 2026Updated 28 Nov 2026

**In short:** AI 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.

**On this page**

1. [Why this matters](#s0)
2. [Common AI crawler names](#s1)
3. [Example robots.txt](#s2)
4. [Allow versus block: decide on purpose](#s3)
5. [Remember the other layers](#s4)

## 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 agent | Operator | Typical purpose |
| --- | --- | --- |
| `GPTBot` | OpenAI | Crawling for model training |
| `OAI-SearchBot` | OpenAI | Search results in ChatGPT |
| `ClaudeBot` | Anthropic | Crawling for model training |
| `PerplexityBot` | Perplexity | Search index for answers |
| `Google-Extended` | Google | Control token for use of content in Gemini |
| `CCBot` | Common Crawl | Open 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.

## Related pages

[### What is AI visibility?

AI visibility is the practice of making your website reachable, understandable and quotable by AI ag…

Read more →](https://pugrank.vercel.app/learn/what-is-ai-visibility)[### llms.txt guide

llms.txt is a plain-text file at the root of your site that tells language models what you…

Read more →](https://pugrank.vercel.app/learn/llms-txt-guide)[### Structured data for AI

Structured data removes guesswork. It tells machines exactly what a page is about, in a vo…

Read more →](https://pugrank.vercel.app/learn/structured-data-for-ai)

## Stop reading audits. Start shipping fixes.

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

[Get started →](https://app.pugrank.com)[Compare plans](https://pugrank.vercel.app/pricing)
