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.xmlWordPress
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.