Skip to content

robots.txt

robots.txt rules (12 of 24 blocked)

# AI crawler rules (generated 2026-12-04 with DarnItSEO)

# Blocked
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: anthropic-ai
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: FacebookBot
User-agent: Bytespider
User-agent: Amazonbot
User-agent: CCBot
User-agent: cohere-ai
User-agent: Diffbot
Disallow: /

# Allowed (no rule needed; they follow your User-agent: * rules): OAI-SearchBot, Claude-SearchBot, PerplexityBot, Applebot, DuckAssistBot, YouBot, ChatGPT-User, Claude-User, Perplexity-User, Meta-ExternalFetcher, MistralAI-User, Google-CloudVertexBot

How to use it: paste these lines into your existing robots.txt (at yourdomain.com/robots.txt). Keep your current rules and Sitemap line. Don't replace the whole file.

robots.txt is a request, not a lock: reputable AI companies honor it, but it can't stop crawlers that ignore it. Check your server logs with the AI Bot Crawl Log Parser to see who actually visits.

This tool checks one thing. Our audit checks 190+.

DarnItSEO Audit scans your entire site and writes the fix instructions for every issue it finds. Included in every yearly plan.

Pick which AI crawlers get in, then copy the lines

This generator writes the AI crawler section of a robots.txt file. It lists 24 user-agent tokens from OpenAI, Anthropic, Google, Apple, Meta, Perplexity, Amazon, ByteDance, Common Crawl, Cohere, Mistral, DuckDuckGo, You.com and Diffbot, sorted into three groups. You switch each one to allowed or blocked, or apply a preset (block training only, allow all, block all AI), and the rules update as you click. It all runs in your browser.

robots.txt is the right place for this because it is the one file the major AI companies have publicly said their crawlers obey. Other files, such as llms.txt or ai.txt, describe content or state terms but do not block anything. Keep in mind that robots.txt is a request, not a lock: reputable crawlers follow it, and scrapers that ignore it need a firewall rule instead.

Training bots, search bots and on-demand fetchers

Training crawlers (blocked by default)

GPTBot, ClaudeBot, anthropic-ai (a legacy Anthropic token), Google-Extended, Applebot-Extended, Meta-ExternalAgent, FacebookBot, Bytespider, Amazonbot, CCBot, cohere-ai and Diffbot. These collect pages for model training or datasets. Blocking them keeps your content out of future training runs; it does not remove anything already collected, and it does not remove you from AI search answers.

AI search crawlers (allowed by default)

OAI-SearchBot (ChatGPT search), Claude-SearchBot, PerplexityBot, Applebot (Siri and Spotlight), DuckAssistBot and YouBot. These index pages so AI answers can cite and link to you. Blocking them takes you out of those answers, which is why most sites leave them on.

On-demand fetchers (allowed by default)

ChatGPT-User, Claude-User, Perplexity-User, Meta-ExternalFetcher, MistralAI-User and Google-CloudVertexBot. These fetch a page when someone asks an assistant to read it, or, for Vertex, when a site owner builds an agent over their own site.

Two Google points cause most of the confusion. Google-Extended is a robots.txt token only: it never crawls, and blocking it only stops Google using your content for Gemini training and grounding. It has no effect on Google Search ranking, indexing or AI Overviews. AI Overviews and AI Mode are built from the normal Googlebot crawl, which this generator does not touch, so your Google Search visibility stays as it is.

Why allowed bots get a comment instead of a rule

By default, the output only writes groups for bots you block, with all their User-agent lines stacked into one group that shares a single Disallow: /. Allowed bots are listed in a comment. This is deliberate. Under the robots.txt standard, a crawler that has its own User-agent group ignores the User-agent: * group completely. If the tool wrote "User-agent: OAI-SearchBot / Allow: /", that bot would stop obeying the Disallow lines you set for everyone, such as /admin/ or /checkout/.

# AI crawler rules (generated with DarnItSEO)

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

# Allowed (no rule needed; they follow your User-agent: * rules): OAI-SearchBot, Claude-SearchBot, PerplexityBot, ChatGPT-User, ...

There is an option to list allowed bots explicitly with Allow: /, for setups where you need named groups. If you use it, copy your shared Disallow lines into that group too, or those folders become open to those bots.

Merging the block into your existing robots.txt

Paste the generated lines into your current robots.txt; do not replace the whole file. Keep your existing User-agent: * rules and your Sitemap line. If your file already has a group for one of these bots, merge the two, since duplicate groups for the same bot are combined by some crawlers and handled differently by others. The finished file might look like this:

User-agent: *
Disallow: /admin/
Disallow: /checkout/

# AI crawler rules (generated with DarnItSEO)
# Blocked
User-agent: GPTBot
User-agent: CCBot
Disallow: /

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

WordPress

Use your SEO plugin's robots.txt editor (Yoast: Tools > File editor; Rank Math: General Settings > Edit robots.txt), or upload a physical robots.txt to the site root, which overrides the virtual one.

Shopify

Add a robots.txt.liquid template to your theme and append the lines after Shopify's default rules.

Nginx, Apache or a static host

Edit robots.txt in the document root (or the public folder for Next.js), deploy, and purge the CDN cache for /robots.txt so crawlers see the new version.

Checking the rules actually took effect

After deploying, run your domain through the AI Bot robots.txt Checker to confirm each bot is allowed or blocked as intended. Then run the AI Crawler Access Test, because a CDN or firewall can block a bot that robots.txt allows. Crawlers re-read robots.txt periodically, often within a day, so changes are not instant.

Over the following weeks, your server logs show whether the bots you blocked have stopped and the ones you allowed still visit. Paste a log export into the AI Bot Crawl Log Parser to see that by bot. For background on how robots.txt groups and AI tokens work, read our robots.txt and llms.txt guide.

How it works

  1. Toggle each AI crawler

    Choose allow or block for GPTBot, ClaudeBot, Google-Extended, PerplexityBot and other AI bots.

  2. We write the rules

    The tool generates a clean robots.txt block with the correct User-agent and Disallow or Allow lines for each choice.

  3. Copy and deploy

    Copy the block into the robots.txt at your domain root, then re-check it to confirm the rules are live.

Frequently asked

What does this AI bot robots.txt generator do?

›

It writes the AI crawler section of a robots.txt file. You switch each of 24 AI user agents to allowed or blocked, or apply a preset, and it outputs the matching rules to paste into your existing robots.txt. Everything runs in your browser.

Which AI crawlers can I control?

›

Training crawlers (GPTBot, ClaudeBot, anthropic-ai, Google-Extended, Applebot-Extended, Meta-ExternalAgent, FacebookBot, Bytespider, Amazonbot, CCBot, cohere-ai, Diffbot), AI search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot, Applebot, DuckAssistBot, YouBot) and on-demand fetchers (ChatGPT-User, Claude-User, Perplexity-User, Meta-ExternalFetcher, MistralAI-User, Google-CloudVertexBot).

Should I block AI crawlers or allow them?

›

A common choice is to block training crawlers and allow AI search crawlers, which is the default preset. That keeps your content out of future model training while letting ChatGPT search, Claude and Perplexity cite and link to you. Blocking search crawlers removes you from those answers.

Does blocking GPTBot remove me from ChatGPT?

›

No. GPTBot is OpenAI's training crawler. ChatGPT search results rely on OAI-SearchBot, and user-requested page visits use ChatGPT-User. Block GPTBot to opt out of training, and leave OAI-SearchBot allowed if you want to appear in ChatGPT search.

Why doesn't the output include Allow rules for allowed bots?

›

A bot named in its own User-agent group ignores your User-agent: * rules. Writing 'Allow: /' for an allowed bot could open folders you block for everyone, such as /admin/. Allowed bots already follow your * rules, so the tool lists them in a comment. You can turn on explicit Allow groups if you need them.

Will this affect my Google Search rankings?

›

No. The generator never writes rules for Googlebot. Google-Extended is a robots.txt token that only controls Gemini training and grounding; it does not affect Google Search ranking, indexing or AI Overviews, which use Googlebot.

Where do I put the generated rules?

›

Paste them into the robots.txt at your domain root, below your existing rules, keeping your User-agent: * group and Sitemap line. Do not replace the whole file. On WordPress use your SEO plugin's robots.txt editor; on Shopify add them to robots.txt.liquid.

Do AI crawlers actually obey robots.txt?

›

The major ones, including those from OpenAI, Anthropic, Google, Apple and Perplexity, say their crawlers follow robots.txt. It is still a request, not a lock, so scrapers that ignore it need firewall or CDN rules. Check your server logs to see which bots keep visiting.

Related tools

More AI Search / GEO tools

See all AI Search / GEO tools · All free SEO tools

Related guides

↳ full site audit190+ checks · AI fix instructions · yearly plans