Free AI visibility report

Get my report

Robots.txt Generator

Build a robots.txt that lets AI search engines in and keeps AI training crawlers out if you choose, with ready presets for Shopify, WordPress and small business sites.

  • Free, no signup
  • Results in seconds
  • Works for Shopify stores

Check my live robots.txt

See which AI crawlers your current file blocks, then load it here to edit.

Start from a preset

Stay visible in ChatGPT, Claude, Perplexity, Google and Bing answers while opting out of model training. Blocks GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot, Meta-ExternalAgent, Bytespider and Amazonbot.

Output for

AI crawlers

AI search

AI search

Build the index AI answers cite and link to. Keep these allowed if you want to be recommended.

  • OAI-SearchBot

    OpenAI · ChatGPT search results

  • Claude-SearchBot

    Anthropic · Claude search results

  • PerplexityBot

    Perplexity · Perplexity answers

  • Googlebot

    Google · Google Search, AI Overviews and AI Mode

  • Bingbot

    Microsoft · Bing, Microsoft Copilot and partner AI search

  • Applebot

    Apple · Siri, Spotlight and Apple Intelligence answers

  • DuckAssistBot

    DuckDuckGo · DuckDuckGo AI-assisted answers

User-triggered

User-triggered

Open a page when someone asks an assistant to. Keep these allowed so those requests work.

  • ChatGPT-User

    OpenAI · Pages ChatGPT opens for a user

  • Claude-User

    Anthropic · Pages Claude opens for a user

  • Perplexity-User

    Perplexity · Pages Perplexity opens for a user

  • MistralAI-User

    Mistral · Pages Le Chat opens for a user

AI training

AI training

Collect pages to train future models. Allowing or blocking them is your choice and doesn't change AI search.

  • GPTBot

    OpenAI · Training data for OpenAI models

  • ClaudeBot

    Anthropic · Training data for Claude models

  • Google-Extended

    Google · Gemini training and grounding (robots.txt token only)

  • Applebot-Extended

    Apple · Apple model training (robots.txt token only)

  • Meta-ExternalAgent

    Meta · Training data for Meta AI models

  • Amazonbot

    Amazon · Alexa answers and Amazon AI models

  • CCBot

    Common Crawl · Open dataset used to train many AI models

  • Bytespider

    ByteDance · Training data for ByteDance models

Your rules

Paths for crawlers to skip, like admin or checkout pages. The AI crawler choices above are added for you.

Group 1

Use * for every crawler, or a name like SemrushBot.

Google ignores Crawl-delay. Bing and some other crawlers use it.

Full URLs, like https://yourstore.com/sitemap.xml.

  • Add your sitemap URL so crawlers can find every page. It's usually /sitemap.xml, or /sitemap_index.xml with Yoast.

robots.txt

txtGoes at your site root
User-agent: *
Disallow:

# AI training crawlers (blocking them doesn't affect AI search)
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: Amazonbot
User-agent: CCBot
User-agent: Bytespider
Disallow: /

What this file tells AI crawlers

  • All 11 AI search and assistant crawlers can read your site.
  • 8 of 8 AI training crawlers blocked.

Publish it

  1. Save the file as robots.txt.
  2. Put it at the root of your site so it opens at yourdomain.com/robots.txt. On WordPress, paste it into your SEO plugin's robots.txt editor or upload it with your host's file manager.
  3. Open yourdomain.com/robots.txt in a browser to confirm the new version is live.

Then check it with the robots.txt report in Google Search Console and confirm AI crawlers get through with the AI Crawler Checker.

One small file decides which AI engines can read you

robots.txt is the first file ChatGPT, Claude, Perplexity and Google's crawlers read on your site. A few lines in it decide whether you can show up in AI answers, whether your pages are used to train AI models, and whether Google can index you at all. Getting it wrong is easy: most AI crawler lists online mix up search bots and training bots, so people block the crawler that would have recommended them.

Search crawlers and training crawlers need different answers
OAI-SearchBot, Claude-SearchBot and PerplexityBot decide whether AI search can cite you. GPTBot, ClaudeBot, CCBot and Google-Extended collect training data. This generator treats them separately, so blocking training never quietly blocks search.
A typo can hide your whole site
User-agent: * followed by Disallow: / tells every crawler, Google included, to skip every page. We read the file you build with a standards-based parser and warn you before you publish anything that does that.
Shopify works differently
Shopify stores can't upload a robots.txt file. The generator writes the robots.txt.liquid template Shopify expects, keeping Shopify's own default rules so checkout, cart and admin pages stay out of search.
The crawler list changes
AI companies add and rename crawlers often. Anthropic's old anthropic-ai and Claude-Web tokens are gone, replaced by ClaudeBot, Claude-SearchBot and Claude-User. The list here is the one our AI Crawler Checker tests against.

How to use the Robots.txt Generator

  1. Check your live file (optional)

    Enter your domain to load your current robots.txt. You'll see which AI crawlers it blocks today, and you can load it into the editor to change it rather than starting over.

  2. Pick a preset

    Allow AI search and block AI training, allow all AI, a small business or WordPress setup, Shopify, or block everything for a staging site. Choose Shopify if your store runs on it.

  3. Adjust crawlers and rules

    Set each AI crawler to allow or block, add paths you want crawlers to skip and add your sitemap URL. The summary under the output shows what the file will actually do.

  4. Copy, publish and verify

    Copy or download the file and follow the steps shown for your platform. Then check it in the robots.txt report in Google Search Console and run the AI Crawler Checker.

Robots.txt examples for AI crawlers

Stay in AI search, opt out of AI training

The setup most businesses that care about their content want. ChatGPT, Claude, Perplexity, Google and Bing can still find and cite you.

User-agent: *
Disallow:

# AI training crawlers (blocking them doesn't affect AI search)
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: Amazonbot
User-agent: CCBot
User-agent: Bytespider
Disallow: /

Block only OpenAI's training crawler

GPTBot is blocked. OAI-SearchBot and ChatGPT-User aren't named, so they follow the User-agent: * group and stay allowed.

User-agent: *
Disallow:

# AI training crawlers (blocking them doesn't affect AI search)
User-agent: GPTBot
Disallow: /

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

Shopify: robots.txt.liquid that blocks AI training

Keeps Shopify's default rules through robots.default_groups and adds the AI training group after them.

{% comment %}
  Keeps Shopify's default rules (they're updated by Shopify) and adds yours.
{% endcomment %}
{% for group in robots.default_groups %}
  {{- group.user_agent }}

  {%- for rule in group.rules -%}
    {{ rule }}
  {%- endfor -%}

  {%- if group.sitemap != blank -%}
    {{ group.sitemap }}
  {%- endif -%}
{% endfor %}

# AI training crawlers (blocking them doesn't affect AI search)
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: Amazonbot
User-agent: CCBot
User-agent: Bytespider
Disallow: /

Which AI bots should robots.txt allow?

Use these exact tokens in your User-agent lines. Keep AI search and user-triggered crawlers allowed if you want to be recommended; decide on training crawlers based on how you feel about your content training AI models.

robots.txt tokenCompanyTypeWhat it powersIf you block it
OAI-SearchBotOpenAIAI searchChatGPT search resultsYou can't be found or cited in ChatGPT search results.
ChatGPT-UserOpenAIUser-triggeredPages ChatGPT opens for a userOpenAI's assistant can't open your pages when someone asks it to.
GPTBotOpenAIAI trainingTraining data for OpenAI modelsYour pages are left out of future OpenAI model training. AI search is not affected.
Claude-SearchBotAnthropicAI searchClaude search resultsYou can't be found or cited in Claude search results.
Claude-UserAnthropicUser-triggeredPages Claude opens for a userAnthropic's assistant can't open your pages when someone asks it to.
ClaudeBotAnthropicAI trainingTraining data for Claude modelsYour pages are left out of future Anthropic model training. AI search is not affected.
PerplexityBotPerplexityAI searchPerplexity answersYou can't be found or cited in Perplexity answers.
Perplexity-UserPerplexityUser-triggeredPages Perplexity opens for a userPerplexity's assistant can't open your pages when someone asks it to.
GooglebotGoogleAI searchGoogle Search, AI Overviews and AI ModeYou drop out of Google Search, including AI Overviews and AI Mode.
Google-ExtendedGoogleAI trainingGemini training and grounding (robots.txt token only)Google won't use your pages to train Gemini or ground its answers. Google Search and AI Overviews are not affected.
BingbotMicrosoftAI searchBing, Microsoft Copilot and partner AI searchYou drop out of Bing and the AI answers built on it, such as Microsoft Copilot.
ApplebotAppleAI searchSiri, Spotlight and Apple Intelligence answersYou can't be found or cited in Siri, Spotlight and Apple Intelligence answers.
Applebot-ExtendedAppleAI trainingApple model training (robots.txt token only)Apple won't use your pages to train its AI models. Siri and Spotlight can still show you.
DuckAssistBotDuckDuckGoAI searchDuckDuckGo AI-assisted answersYou can't be found or cited in DuckDuckGo AI-assisted answers.
MistralAI-UserMistralUser-triggeredPages Le Chat opens for a userMistral's assistant can't open your pages when someone asks it to.
Meta-ExternalAgentMetaAI trainingTraining data for Meta AI modelsYour pages are left out of future Meta model training. AI search is not affected.
AmazonbotAmazonAI trainingAlexa answers and Amazon AI modelsAmazon may not use your pages for Alexa answers or to train its models.
CCBotCommon CrawlAI trainingOpen dataset used to train many AI modelsYour pages are left out of Common Crawl, an open dataset many AI models are trained on.
BytespiderByteDanceAI trainingTraining data for ByteDance modelsYour pages are left out of future ByteDance model training. AI search is not affected.

Questions about the Robots.txt Generator

Add a group for GPTBot with Disallow: / and leave OAI-SearchBot and ChatGPT-User allowed. GPTBot only collects training data; OAI-SearchBot is the crawler that lets ChatGPT search show and link to your pages. The lines are: User-agent: GPTBot Disallow: / The "Allow AI search, block AI training" preset does this for every major AI company at once.

If your robots.txt doesn't block OAI-SearchBot, ChatGPT-User or everyone with User-agent: * and Disallow: /, ChatGPT is already allowed. You don't need a special line. If your file blocks all crawlers, add a group with User-agent: OAI-SearchBot, User-agent: ChatGPT-User and Allow: /. The generator adds it for you when you set those crawlers to Allow.

Most small businesses and online stores shouldn't block AI search or assistant crawlers, because those decide whether ChatGPT, Claude, Perplexity and Copilot can recommend you. Blocking training crawlers such as GPTBot, ClaudeBot, Google-Extended, CCBot, Meta-ExternalAgent, Bytespider and Amazonbot is a personal choice and doesn't affect AI search. If you're unsure, allow AI search and decide on training based on how you feel about your content being used to train models.

Shopify generates robots.txt for you, so you change it through a theme template called robots.txt.liquid. In your Shopify admin go to Online Store > Themes, open Edit code on your theme, add a new template file named robots.txt.liquid in the Templates folder and paste the code from this generator. Shopify recommends keeping its default rules in the template, which this generator does by looping over robots.default_groups before your AI crawler rules.

No. ClaudeBot collects training data. Claude-SearchBot indexes pages for Claude's search results and Claude-User fetches pages when someone asks Claude to. Block ClaudeBot and keep the other two allowed to opt out of training while staying visible in Claude. The older anthropic-ai and Claude-Web tokens are legacy names you no longer need.

Use the robots.txt report in Google Search Console, which replaced the old robots.txt Tester in late 2023. It shows the robots.txt files Google found for your site, when it last crawled them and any rules it couldn't parse. To see what AI crawlers get, run your domain through our AI Crawler Checker. It reads your robots.txt the way crawlers do and also tests for firewall blocks.

The major AI companies, including OpenAI, Anthropic, Google, Apple and Perplexity, publish their crawler names and say their crawlers respect robots.txt. Some operators, including Perplexity, say user-triggered agents may not follow it, because a person asked for that specific page. robots.txt is a request, not a lock. To stop a crawler that ignores it, you need a firewall or CDN rule.

Usually not. Google ignores Crawl-delay, and while Bing supports it, a high value slows how quickly your changes are picked up. The Host directive was only ever used by Yandex, which has since dropped it, so this generator doesn't write it. A Sitemap line is worth adding: it helps every crawler find all of your pages.

Letting AI in doesn't mean AI recommends you.

RankBull tracks what ChatGPT, Gemini and Perplexity say about your business every week and publishes the content that moves you into the answer.

Shopify stores change robots.txt through robots.txt.liquid. The generator gives you the exact Shopify version.

Free AI visibility report for your site

Free · no card · verbatim engine answers · graded fixes