Robots.txt Generator for AI

Create a robots.txt file that allows AI models like ChatGPT, Claude, and Perplexity to crawl your website, so they can understand your pages and recommend them.

Free tool
Start from a preset
Each preset sets every crawler below at once. Pick the closest one, then adjust anything you disagree with.

Training crawlers and answer engines are not the same thing: blocking GPTBot keeps you out of the next model, blocking OAI-SearchBot removes you from ChatGPT’s cited answers.

AI crawlers and answer engines

Tick a crawler to let it in, untick it to write a Disallow rule for it. Tokens are case-sensitive and are written exactly as the vendor documents them.

OpenAI2 of 3 allowed
  • Training

    Collects pages to train OpenAI models. Blocking it does not affect AI answers.

  • AI search

    Indexes pages so OpenAI can cite them in answers. Blocking it removes you from those answers.

  • Live fetchAdvisory

    Fetches the page while a user is asking OpenAI about it. Blocked, the assistant cannot read it on request.

    The vendor states this agent may fetch a page even when robots.txt disallows it. Enforce at your WAF or edge if the rule has to bite.

Anthropic2 of 3 allowed
  • Training

    Collects pages to train Anthropic models. Blocking it does not affect AI answers.

  • AI search

    Indexes pages so Anthropic can cite them in answers. Blocking it removes you from those answers.

  • Live fetch

    Fetches the page while a user is asking Anthropic about it. Blocked, the assistant cannot read it on request.

Google1 of 3 allowed
  • Search index

    The classic Google search crawler. That same index is what feeds Google’s AI answers.

    Gates Google AI Overviews and AI Mode. Blocking it removes you from Google Search as well.

  • TrainingControl only

    Collects pages to train Google models. Blocking it does not affect AI answers.

    Never appears in your logs. It does not stop a crawl — it tells the vendor how content it already has may be used.

    Gemini training and grounding only. It does not affect Google Search or AI Overviews.

  • Training

    Collects pages to train Google models. Blocking it does not affect AI answers.

Microsoft1 of 1 allowed
  • Search index

    The classic Microsoft search crawler. That same index is what feeds Microsoft’s AI answers.

    Also feeds Microsoft Copilot. Blocking it removes you from Bing and from Copilot.

Perplexity2 of 2 allowed
  • AI search

    Indexes pages so Perplexity can cite them in answers. Blocking it removes you from those answers.

  • Live fetchAdvisory

    Fetches the page while a user is asking Perplexity about it. Blocked, the assistant cannot read it on request.

    The vendor states this agent may fetch a page even when robots.txt disallows it. Enforce at your WAF or edge if the rule has to bite.

Apple1 of 2 allowed
  • Search index

    The classic Apple search crawler. That same index is what feeds Apple’s AI answers.

    Powers Siri and Spotlight; Applebot-Extended is the separate opt-out for Apple Intelligence training.

  • TrainingControl only

    Collects pages to train Apple models. Blocking it does not affect AI answers.

    Never appears in your logs. It does not stop a crawl — it tells the vendor how content it already has may be used.

Meta1 of 3 allowed
  • Training

    Collects pages to train Meta models. Blocking it does not affect AI answers.

  • Live fetch

    Fetches the page while a user is asking Meta about it. Blocked, the assistant cannot read it on request.

  • Training

    Collects pages to train Meta models. Blocking it does not affect AI answers.

Amazon1 of 1 allowed
  • AI search

    Indexes pages so Amazon can cite them in answers. Blocking it removes you from those answers.

ByteDance0 of 2 allowed
  • Training

    Collects pages to train ByteDance models. Blocking it does not affect AI answers.

  • Training

    Collects pages to train ByteDance models. Blocking it does not affect AI answers.

Common Crawl0 of 1 allowed
  • Training

    Collects pages to train Common Crawl models. Blocking it does not affect AI answers.

    Common Crawl is a public archive that almost every model builder downloads, so this one token reaches many of them.

Other assistants4 of 6 allowed
  • Live fetch

    Fetches the page while a user is asking Other assistants about it. Blocked, the assistant cannot read it on request.

  • AI search

    Indexes pages so Other assistants can cite them in answers. Blocking it removes you from those answers.

  • AI search

    Indexes pages so Other assistants can cite them in answers. Blocking it removes you from those answers.

  • Live fetch

    Fetches the page while a user is asking Other assistants about it. Blocked, the assistant cannot read it on request.

  • Training

    Collects pages to train Other assistants models. Blocking it does not affect AI answers.

  • Training

    Collects pages to train Other assistants models. Blocking it does not affect AI answers.

Dataset crawlers1 of 11 allowed
  • Training

    Collects pages to train Dataset crawlers models. Blocking it does not affect AI answers.

  • Training

    Collects pages to train Dataset crawlers models. Blocking it does not affect AI answers.

  • Training

    Collects pages to train Dataset crawlers models. Blocking it does not affect AI answers.

  • Training

    Collects pages to train Dataset crawlers models. Blocking it does not affect AI answers.

  • Training

    Collects pages to train Dataset crawlers models. Blocking it does not affect AI answers.

  • Training

    Collects pages to train Dataset crawlers models. Blocking it does not affect AI answers.

  • Training

    Collects pages to train Dataset crawlers models. Blocking it does not affect AI answers.

  • Training

    Collects pages to train Dataset crawlers models. Blocking it does not affect AI answers.

  • Training

    Collects pages to train Dataset crawlers models. Blocking it does not affect AI answers.

  • Training

    Collects pages to train Dataset crawlers models. Blocking it does not affect AI answers.

  • Live fetch

    Fetches the page while a user is asking Dataset crawlers about it. Blocked, the assistant cannot read it on request.

Paths, sitemaps and signals

One absolute URL per line. Sitemap lines are file-wide and apply to every crawler.

One path per line, e.g. /admin/. Use * to match any run of characters and $ to anchor the end of a URL.

One path per line. Use these to carve an exception out of a disallowed prefix — the most specific rule wins.

Bing honours 1–30 seconds, as a time window rather than a rate. Google ignores it entirely and Yandex dropped support in 2018.

Written as a plain comment for whoever opens the file. It is not a discovery mechanism — parsers ignore comments, and Google says Search does not use llms.txt.

Cloudflare’s content signals: a declaration of what your pages may be used for. Cloudflare calls it “not a technical countermeasure” and Google says it has no effect on crawlers — its value is the EU rights reservation, not enforcement.

Your robots.txt

59 lines · 1638 bytes
# robots.txt — AI crawler policy
# Generated with the AmICited robots.txt Generator for AI.
#
# Training crawlers gather corpora for the next model. Search and user-agent
# fetchers are how an assistant reads your page to answer a live question —
# blocking those removes you from its cited answers.
#
# A crawler obeys the single most specific group that names it and never also
# reads the `*` group, so every group below repeats the shared path rules.

# Blocked — these crawlers get nothing.
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: GoogleOther
User-agent: Applebot-Extended
User-agent: meta-externalagent
User-agent: FacebookBot
User-agent: Bytespider
User-agent: TikTokSpider
User-agent: CCBot
User-agent: cohere-training-data-crawler
User-agent: PanguBot
User-agent: Ai2Bot
User-agent: Ai2Bot-Dolma
User-agent: Diffbot
User-agent: ImagesiftBot
User-agent: omgili
User-agent: omgilibot
User-agent: Webzio-Extended
User-agent: Timpibot
User-agent: FriendlyCrawler
User-agent: SemrushBot-OCOB
Disallow: /

# Allowed — same rules as everyone else, stated explicitly.
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: Googlebot
User-agent: bingbot
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: Applebot
User-agent: meta-externalfetcher
User-agent: Amazonbot
User-agent: MistralAI-User
User-agent: DuckAssistBot
User-agent: YouBot
User-agent: cohere-ai
User-agent: FirecrawlAgent
Disallow:

# Everything else.
User-agent: *
Content-Signal: search=yes, ai-input=yes, ai-train=no, use=reference
Disallow:

Save this as robots.txt at the root of your domain, e.g. https://example.com/robots.txt. It has to be at the root — a file in a subfolder is ignored.

Signals that are not robots.txt
These also change how AI systems use your pages, but none of them belong in robots.txt.
Snippet controls — the real AI Overviews lever

Google gates AI Overviews and AI Mode on snippet eligibility. Escalate in order: data-nosnippet on single elements stays citable, max-snippet:[n] caps the excerpt, nosnippet or max-snippet:0 opts out of AI answers and costs you the citation link, noindex leaves Search entirely. There is no setting that keeps you in Google Search but out of AI Overviews.

X-Robots-Tag header

Per-response directives such as noindex or nosnippet, useful for PDFs and other non-HTML files where a meta tag cannot go.

Microsoft publishes no AI token

There is no Copilot-specific user-agent. The opt-out is the NOCACHE and NOARCHIVE meta directives, which Bing honours to keep a page out of Copilot answers while it stays indexed.

noai and noimageai meta tags

A convention from the art community, honoured by a handful of platforms. Treat it as a statement of intent rather than enforcement.

TDM Reservation Protocol

A W3C machine-readable reservation of text and data mining rights, served at /.well-known/tdmrep.json. It matters mainly under EU copyright law.

llms.txt

A Markdown index of your site written for LLMs. Nothing stops you publishing one, but Google says Search does not use it and a June 2026 Ahrefs study found 97% of published files drew no traffic.

Groups do not cascade

A crawler obeys the single most specific group that names it and never also reads User-agent: *. This file repeats the shared path rules into every group so nothing is silently lost.

Verify before you trust it

robots.txt has no error channel — a misspelt token silently does nothing. Check the live file and your server logs after you publish.

Your robots.txt file has quietly become one of the most important levers you have over how AI models see your brand, and this guide from AmICited (FlowHunt's free AI brand-visibility tracker) walks you through exactly how to use it. We explain what robots.txt is and how AI crawlers read it, the critical difference between bots that train models on your content and bots that fetch your pages to cite you in answers, a rundown of the real user-agents you will meet (GPTBot, OAI-SearchBot, ChatGPT-User, Google-Extended, PerplexityBot, ClaudeBot and more), a realistic example file that blocks training while keeping citations open, how these choices affect your visibility in ChatGPT, Perplexity, Gemini and Claude, and the caveats every site owner should know before editing a single line.

The big idea is simple. Robots.txt is no longer a yes-or-no gate for search engines. It is now a policy document that lets you say, in effect, do not use my content to train your model, but you are welcome to read it and cite my brand when someone asks you a question. Getting that distinction right is the whole game.

What robots.txt is and how AI crawlers use it

Robots.txt is a plain text file that lives at the root of your domain, for example https://yoursite.com/robots.txt. It follows the Robots Exclusion Protocol, a decades-old convention that lets you tell automated visitors which parts of your site they may or may not request. Each rule block names a User-agent (the bot) and lists Allow and Disallow paths that apply to it.

AI companies have adopted this same file to declare their crawlers. When an AI crawler visits, it identifies itself with a specific user-agent string and checks your robots.txt before fetching pages. If you have disallowed that agent, a well-behaved bot backs off. The important shift is that the AI ecosystem now runs many different bots from the same company, each with a distinct job, so a single blanket rule is rarely what you actually want.

Training bots vs answering bots: the key decision

There are two very different reasons an AI system reads your site, and confusing them is the most common mistake site owners make.

Training bots collect content in bulk to help build and improve future models. Blocking them keeps your material out of the training corpus, but it does nothing for or against whether an AI cites you today. Answering and citation bots do the opposite job: they fetch or index your pages so the AI can surface, summarize and link to your brand when a user asks a live question. If you block those, you can vanish from AI answers even though your SEO is perfect.

So the decision is not block AI or allow AI. It is: block training, allow citation. Many brands want their expertise excluded from model training for licensing or control reasons, while still being the source an answer engine quotes and links. Robots.txt lets you express both preferences at once because the two jobs use separate user-agents.

The major AI crawlers and what each is for

Here are the real user-agents you are most likely to encounter, grouped by what they actually do. Get the names exact, because a typo means your rule silently does nothing.

  • GPTBot (OpenAI): bulk crawler that gathers content for training future GPT models. This is a training bot.
  • OAI-SearchBot (OpenAI): indexes pages for ChatGPT search results and citations. This is an answering bot.
  • ChatGPT-User (OpenAI): fetches a page live when a ChatGPT user or action requires it. On-demand, answering side.
  • Google-Extended (Google): a robots.txt token, not a separate crawler in your logs, that controls whether your content trains and grounds Gemini and Vertex AI. It is independent of Googlebot.
  • Googlebot (Google): the classic search crawler. It also feeds Google AI Overviews and AI Mode through normal indexing, so blocking it costs you regular search too.
  • PerplexityBot (Perplexity): builds Perplexity's index so your pages can be cited. Answering side.
  • Perplexity-User (Perplexity): fetches a page on demand for a specific user question.
  • ClaudeBot (Anthropic): collects public content for training Anthropic models. Training bot.
  • Claude-User (Anthropic): retrieves a page when a Claude user asks a question that needs it.
  • Claude-SearchBot (Anthropic): indexes content to improve Claude's search answers and citations.
  • anthropic-ai and claude-web: older Anthropic tokens still worth listing for backward compatibility.
  • Amazonbot (Amazon): powers Alexa and Amazon answer experiences.
  • Applebot and Applebot-Extended (Apple): Applebot serves Siri and Spotlight; Applebot-Extended is a robots.txt token controlling whether Apple uses your content for AI training. The Extended token never appears in your access logs.
  • Bytespider (ByteDance): training crawler for ByteDance models. Historically aggressive and inconsistent about honoring robots.txt.
  • CCBot (Common Crawl): builds the open Common Crawl dataset that many other models train on.
  • Meta-ExternalAgent and Meta-ExternalFetcher (Meta): the Agent crawls for Meta AI and Llama training and indexing; the Fetcher grabs a specific page when a Meta AI user references it.
  • cohere-ai (Cohere), Diffbot, and Timpibot: additional data and knowledge-graph crawlers you may choose to name explicitly.

A realistic example robots.txt

The snippet below reflects a common goal: keep your content out of model training, but stay fully available to the bots that put your brand into AI answers and citations. Adjust it to your own policy, and remember that user-agent names are case-insensitive but must otherwise match exactly.

# Block model training crawlers
User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: anthropic-ai
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: Meta-ExternalAgent
Disallow: /

User-agent: cohere-ai
Disallow: /

# Allow answer and citation crawlers
User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Perplexity-User
Allow: /

User-agent: Claude-User
Allow: /

User-agent: Claude-SearchBot
Allow: /

# Keep normal search and its AI features working
User-agent: Googlebot
Allow: /

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

How this helps your business and your AI visibility

AI answer engines are becoming a primary discovery channel. When someone asks ChatGPT, Perplexity, Gemini or Claude for a recommendation, the brands that get named and linked win the click and the trust. A robots.txt that accidentally blocks citation bots quietly removes you from that conversation, while a deliberate one keeps you eligible to be cited even if you opt out of training.

Tuning robots.txt is only half the picture, though. You still need to know whether the changes are working: which engines actually mention you, for which prompts, and against which competitors. That is what AmICited's AI Brand Visibility Report measures, so you can connect a crawler policy to real citation outcomes rather than guessing.

It pairs naturally with two sibling tools. The llms.txt Generator helps you publish a clean, model-friendly map of your best content for the answer engines you just allowed, and the ChatGPT Query Fan-Out Generator shows the spread of real questions users ask, so you can see which pages need to stay crawlable to capture them.

Best practices and caveats

Robots.txt is a voluntary directive, not a security control. Reputable operators like OpenAI, Anthropic, Google, Perplexity and Apple honor it, but the file cannot technically enforce anything, and less scrupulous crawlers can ignore it entirely. Never rely on robots.txt to protect private data. Put anything sensitive behind authentication or firewall rules instead.

  • Do not block the bots that drive your citations. Disallowing OAI-SearchBot, PerplexityBot, Claude-SearchBot or Googlebot to stop AI is the single most costly mistake, because it also cuts the answers that would have named you.
  • Keep training and answering rules separate. A blanket Disallow for a whole company can catch its citation crawler too. Name each agent deliberately.
  • Match user-agent strings exactly. A misspelling means the rule is ignored and the bot proceeds as if unrestricted.
  • Blocking Googlebot removes you from ordinary Google search as well as AI Overviews. Treat it as an all-or-nothing decision.
  • For pages you truly want out of AI results, robots.txt plus a noindex signal is stronger than robots.txt alone.
  • Re-audit after every CMS migration or template change, since deployments frequently overwrite robots.txt.
  • Verify with AmICited's AI Brand Visibility Report after each change so you can confirm you are still being cited where it matters.

Frequently asked questions

Does robots.txt actually stop AI companies from using my content?

It stops the ones that choose to comply, which includes every major operator such as OpenAI, Anthropic, Google, Perplexity, Apple and Amazon. They read your file and back off from paths you disallow. But robots.txt is a request, not a technical barrier, so a crawler that decides to ignore it can still fetch public pages. For anything you must keep private, use authentication or server-side blocking rather than robots.txt.

What is the difference between GPTBot and OAI-SearchBot?

GPTBot is OpenAI's training crawler. It collects content in bulk to help build future GPT models, so blocking it keeps your material out of that training data. OAI-SearchBot is the answering side. It indexes your pages so ChatGPT search can surface and cite your brand in live responses. Blocking GPTBot while allowing OAI-SearchBot is the classic setup: opt out of training but stay eligible to be cited.

Will blocking AI training bots hurt my AI visibility?

Not if you do it carefully. Training bots like GPTBot, ClaudeBot and CCBot only affect whether your content joins model training sets. They have no bearing on whether an answer engine cites you today. Your visibility depends on the answering and citation bots, such as OAI-SearchBot, PerplexityBot and Claude-SearchBot. As long as those remain allowed, you can block training and still be quoted and linked in AI answers.

Is Google-Extended the same as Googlebot?

No, and this trips up many site owners. Googlebot is the standard search crawler that indexes your pages, and that same index feeds AI Overviews and AI Mode, so blocking Googlebot damages both normal search and AI features. Google-Extended is a separate robots.txt token that only controls whether your content is used to train and ground Gemini and Vertex AI. You can disallow Google-Extended for training while leaving Googlebot fully allowed.

Why do Perplexity and Claude each have more than one user-agent?

Because they separate bulk crawling from live user requests. PerplexityBot builds Perplexity's search index, while Perplexity-User fetches a specific page when someone asks a question about it. Anthropic runs three: ClaudeBot for training, Claude-SearchBot for indexing citations, and Claude-User for on-demand retrieval. This granularity is helpful, because it lets you opt out of training while keeping the on-demand and citation bots free to bring your brand into answers.

How do I check whether my robots.txt is helping or hurting my AI presence?

Editing the file is only the first step. You need to confirm the outcome. AmICited's free AI Brand Visibility Report shows which engines mention your brand, for which prompts, and how you compare to competitors, so you can tie a crawler policy to real citations. Pair it with the llms.txt Generator to publish a clean content map and the ChatGPT Query Fan-Out Generator to see the questions your allowed bots should be able to answer with your pages.