# robots.txt generator for AI crawlers (GPTBot, ClaudeBot, more)

> Free robots.txt generator for AI crawlers. Choose which AI search and training bots to allow, then copy the rules.

Source: https://aisearchanalyzer.com/tools/robots-txt-generator

[Tools](https://aisearchanalyzer.com/tools) / robots.txt AI rules

Free tool, no sign-up

# robots.txt rules for AI crawlers

Choose which AI crawlers may read your site. Allow the ones that put you in AI answers, block training if you prefer, and copy the rules.

Free, no sign-up Results in seconds Nothing changes on your site

Try it now

AI search crawlers

**OAI-SearchBot** OpenAI: ChatGPT search answers Allow **ChatGPT-User** OpenAI: Pages a ChatGPT user asks it to open Allow **Claude-SearchBot** Anthropic: Claude search answers Allow **Claude-User** Anthropic: Pages a Claude user asks it to open Allow **PerplexityBot** Perplexity: Perplexity answers Allow **Perplexity-User** Perplexity: Pages a Perplexity user opens Allow

AI training crawlers

**GPTBot** OpenAI: Training OpenAI models Block **ClaudeBot** Anthropic: Training Claude models Block **Google-Extended** Google: Training Gemini (not Search) Block **Applebot-Extended** Apple: Training Apple models Block **CCBot** Common Crawl: Open dataset used to train many models Block **Meta-ExternalAgent** Meta: Training Meta models Block

Sitemap address (optional)

Your robots.txt rules

\# AI crawlers: generated with aisearchanalyzer.com/tools/robots-txt-generator

# Allowed: these put you in AI answers or you chose to allow them
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
Allow: /

# Blocked
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: Meta-ExternalAgent
Disallow: /

# Everyone else, including Googlebot and Bingbot
User-agent: \*
Allow: /

Where it goes

Paste the rules into the robots.txt at the root of your site (yourbusiness.com/robots.txt). WordPress: Yoast SEO, Tools, File editor. Shopify: robots.txt.liquid. Wix: SEO settings, Robots.txt editor. Webflow: Site settings, SEO.

[Then check it](https://aisearchanalyzer.com/tools/ai-crawler-checker)

What you'll see

- Pick with a switch
- Rules ready to paste
- Where it goes

## Pick with a switch

Allow the crawlers that put you in AI answers. Block training crawlers if you'd rather.

## Rules ready to paste

Copy a clean robots.txt block. No syntax to look up.

## Where it goes

It lives at yourdomain.com/robots.txt. Most site builders have an editor for it.

The full picture, also free

## This checks one thing. The free scan checks everything.

- What ChatGPT, Gemini, Claude, Perplexity and Google's AI say about you, with a free account
- 157 checks across up to 50 pages, scored in plain English
- Every fix in the order that matters, with steps for your platform

[Scan my site free](https://aisearchanalyzer.com/#scan)

## Questions

Can't find your answer? The help center covers every part of the report, or ask us directly.

[Help center](https://aisearchanalyzer.com/help) [Contact us](https://aisearchanalyzer.com/contact)

### Should I block AI crawlers?

Block training crawlers if you do not want your content used to train models. Keep search crawlers allowed if you want to appear in ChatGPT, Claude and Perplexity answers.

### Where does robots.txt go?

At the root of your domain, so it loads at yourdomain.com/robots.txt. Most site builders have a robots.txt editor in their SEO settings.

### Do all AI crawlers obey robots.txt?

The major ones from OpenAI, Anthropic, Google, Perplexity, Apple and Microsoft say they do. Firewalls are the way to stop the ones that do not.

## More free tools

[**Does ChatGPT recommend you?** Ask ChatGPT about your category and see who it names. Try it free](https://aisearchanalyzer.com/tools/chatgpt-recommends) [**AI competitor check** See where a rival shows up in ChatGPT, Gemini, Claude and Perplexity. Try it free](https://aisearchanalyzer.com/tools/ai-competitor-check) [**AI crawler checker** See which AI crawlers your site lets in. Try it free](https://aisearchanalyzer.com/tools/ai-crawler-checker)
