Skip to content
KazamTools

Robots.txt Generator

Block AI training bots, keep AI search, and check that every rule does what you think.

AI crawlers

Recommended for most sites: keeps your pages out of AI training data, but AI search engines can still find, cite and link to you.

Crawler list (29) · checked 2026-10-22

Model training

  • GPTBot · OpenAI

    Collects pages that may be used to train OpenAI’s models. Docs

  • ClaudeBot · Anthropic

    Collects public pages that may be used to train Claude models. Docs

  • anthropic-ai · Anthropicunverified

    An older Anthropic token. No longer in Anthropic’s documentation; harmless to keep.

  • Google-Extended · Google

    Not a crawler but a control token: decides whether pages Google already crawls may train Gemini and ground Gemini answers. Does not affect Google Search. Docs

  • Applebot-Extended · Apple

    A control token, not a crawler: opts pages out of training Apple’s foundation models. Applebot itself (Siri, Spotlight) is not affected. Docs

  • Meta-ExternalAgent · Meta

    Crawls to train AI models or to index content for Meta products. Docs

  • FacebookBot · Metaunverified

    An older Meta token. Not in Meta’s current documentation; harmless to keep.

  • Amazonbot · Amazon

    Crawls to improve Amazon services; content may be used to train Amazon AI models. Docs

  • MistralAI-Training · Mistral AI

    Collects pages for training Mistral models. Docs

  • CCBot · Common Crawl

    Builds the free Common Crawl web archive, one of the most widely used sources of AI training data. Docs

  • Bytespider · ByteDanceunverified

    Reported to collect training data for ByteDance models. No official documentation, and reports disagree on whether it obeys robots.txt.

  • cohere-ai · Cohereunverified

    Reported by third parties. Cohere’s own page lists no named crawler; harmless to keep.

AI search index

  • OAI-SearchBot · OpenAI

    Indexes pages so they can appear and be linked in ChatGPT search answers. Docs

  • Claude-SearchBot · Anthropic

    Indexes pages to improve the quality of Claude’s search results. Docs

  • PerplexityBot · Perplexity

    Indexes pages for Perplexity’s answer engine. Perplexity says it is not used to train foundation models. Docs

  • Meta-WebIndexer · Meta

    Indexes pages for Meta AI search answers and citations. Docs

  • Amzn-SearchBot · Amazon

    Indexes pages for search experiences such as Alexa. Docs

  • MistralAI-Index · Mistral AI

    Indexes pages for Mistral’s assistant search. Not used for training. Docs

  • DuckAssistBot · DuckDuckGo

    Fetches pages in real time for DuckDuckGo’s AI-assisted answers. Not used to train models. Docs

  • YouBot · You.com

    Indexes pages for You.com’s AI search. Docs

User-requested fetch

  • ChatGPT-User · OpenAImay ignore robots.txt

    Visits a page when a ChatGPT user or custom GPT asks for it. Docs

  • Claude-User · Anthropic

    Fetches a page when a Claude user asks a question that needs it. Docs

  • Claude-Web · Anthropicunverified

    An older Anthropic token. No longer in Anthropic’s documentation; harmless to keep.

  • Perplexity-User · Perplexitymay ignore robots.txt

    Fetches a page when a Perplexity user asks for it. Docs

  • Meta-ExternalFetcher · Metamay ignore robots.txt

    Fetches a page when a person asks a Meta AI product for it. Docs

  • Amzn-User · Amazonmay ignore robots.txt

    Fetches a page when a user asks an Amazon AI service for it. Docs

  • MistralAI-User · Mistral AI

    Fetches a page when a user of Mistral’s assistant asks for it. Not used for training. Docs

Other data collection

  • Google-CloudVertexBot · Google

    Crawls sites whose owners asked for it to build Vertex AI agents. Does not affect Search. Docs

  • omgili · Webz.io

    Collects web data that Webz.io sells, including to AI companies. Docs

Default = follow the rules for all crawlers. Allow = let in even when you block everyone else.

Rules for all crawlers

Ignored by Google, Apple and Amazon. Leave empty unless a crawler overloads your server.

Upload it to the root of your site so it is served at https://your-domain/robots.txt (one file per subdomain). To guide AI assistants to your best pages as well, add an llms.txt file.

How to use the Robots.txt Generator

  1. 1Pick an AI crawler preset, such as Block AI training, or set each crawler yourself.
  2. 2Add any paths every crawler should skip, and your sitemap URL.
  3. 3Copy or download the file and upload it to your site root as /robots.txt.
  4. 4Open Validate & test to check an existing file line by line and test whether a URL is allowed for a crawler.

How robots.txt works

robots.txt is a plain text file at the root of your site that tells crawlers which URLs they may fetch. The rules were standardised in 2022 as RFC 9309. The file is made of groups. Each group starts with one or more User-agent lines naming crawlers, followed by Allow and Disallow rules:

User-agent: GPTBot
User-agent: CCBot
Disallow: /

User-agent: *
Disallow: /admin/
Allow: /admin/help/

Four rules decide what a crawler does:

  1. It picks its own group. A crawler uses the group that names it (matching ignores upper and lower case). Only if no group names it does it use the * group. A bot with its own group ignores the * rules entirely, so the generator repeats your path rules for any AI bot you explicitly allow.
  2. The longest matching rule wins, wherever it appears in the group. Above, /admin/help/page is allowed because Allow: /admin/help/ (12 characters) is longer than Disallow: /admin/ (7).
  3. Allow wins a tie between equally long rules.
  4. * matches any characters and $ marks the end. Disallow: /*.pdf$ blocks every URL ending in .pdf, but not /file.pdf?v=2.

Sitemap lines are not part of RFC 9309, but every major search engine reads them. They take a full URL and apply to the whole file. Crawl-delay is non-standard: Google, Apple and Amazon ignore it, while Bing and Anthropic honour it.

The AI crawlers, by purpose

Not every AI bot does the same job, and blocking the wrong one can cost you traffic. We checked each operator’s documentation on 22 October 2026:

Purpose Crawlers Effect of blocking
Model training GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, Meta-ExternalAgent, Amazonbot, MistralAI-Training, CCBot, Bytespider Your pages stop being collected for training future models
AI search index OAI-SearchBot, Claude-SearchBot, PerplexityBot, Meta-WebIndexer, Amzn-SearchBot, MistralAI-Index, DuckAssistBot, YouBot You may stop appearing, with a link, in AI search answers
User-requested fetch ChatGPT-User, Claude-User, Perplexity-User, Meta-ExternalFetcher, Amzn-User, MistralAI-User Assistants can’t open your page when a person asks them to

Two tokens are special. Google-Extended and Applebot-Extended are not crawlers at all. Google and Apple keep crawling with Googlebot and Applebot, and these tokens only decide whether the content may be used for their AI models. Blocking them does not affect Google Search or Siri.

Some operators say their user-requested fetchers may not apply robots.txt, because a person asked for the page. Bytespider has no official documentation, and reports disagree on whether it obeys the file. We mark such entries in the list.

Worked examples

A blog that wants AI citations but no AI training. Choose Block AI training. Training crawlers get Disallow: /, while OAI-SearchBot, Claude-SearchBot and PerplexityBot follow your normal rules, so AI search can still quote and link to you. In the tester, GPTBot on /post/hello shows Blocked and OAI-SearchBot shows Allowed.

A staging site. Tick Block the whole site. Every crawler gets Disallow: /. Remember that robots.txt doesn’t hide pages from people; protect staging with a password too.

A shop with filter URLs. Block /cart, /checkout/ and /*?sort= so crawlers don’t waste time on endless filter combinations. Then test /shoes?sort=price (blocked) and /shoes (allowed).

Validating an existing file

Paste any robots.txt into Validate & test. The checker explains every line in plain English and flags common mistakes:

  • rules placed before any User-agent line, which no crawler will apply;
  • typos such as Disalow, and unknown fields;
  • paths that don’t start with /, and sitemap entries that aren’t full URLs;
  • Noindex: lines, which Google stopped supporting in 2019;
  • user-agent values that are full browser strings instead of a bot token;
  • files over 500 KiB, the most Google reads.

Tips

  • Robots.txt is public. Anyone can read it, so don’t list secret paths in it. Use authentication for private areas.
  • Blocking crawling is not blocking indexing. A blocked URL can still appear in Google results if other sites link to it. Use a noindex meta tag, which crawlers can only see if they’re allowed to fetch the page.
  • Changes are not instant. Crawlers cache robots.txt, typically for up to 24 hours.
  • Tell AI tools what to read. Alongside robots.txt, an llms.txt file points AI assistants to your most useful pages. Clean Markdown versions of those pages, made with document to Markdown, work best.
Cite this tool

Using this tool in an essay, report or article? Copy a ready-made reference. Check your teacher's or publisher's style guide for small differences.

APA
KazamTools. (2026, October 22). Robots.txt generator. Retrieved October 30, 2026, from https://kazamtools.com/developer/robots-txt-generator/
MLA
"Robots.txt Generator." KazamTools, 22 Oct. 2026, https://kazamtools.com/developer/robots-txt-generator/. Accessed 30 Oct. 2026.
Chicago
KazamTools. "Robots.txt Generator." Last modified October 22, 2026. Accessed October 30, 2026. https://kazamtools.com/developer/robots-txt-generator/.
Plain link
Robots.txt Generator (KazamTools): https://kazamtools.com/developer/robots-txt-generator/
HTML link
<a href="https://kazamtools.com/developer/robots-txt-generator/">Robots.txt generator</a> by KazamTools

Frequently asked questions

How do I block ChatGPT and other AI bots from my site?

Add a group for each AI crawler with Disallow: /, for example User-agent: GPTBot. The Block AI training preset does this for OpenAI, Anthropic, Google-Extended, Apple, Meta, Amazon, Mistral, Common Crawl and others in one click.

Will blocking AI crawlers hurt my Google ranking?

No. Google-Extended only controls whether your content trains Gemini; Googlebot and Google Search are separate. Blocking AI search bots such as OAI-SearchBot or PerplexityBot can, however, stop you from being cited in those AI answers.

What is the difference between GPTBot, OAI-SearchBot and ChatGPT-User?

GPTBot collects training data, OAI-SearchBot indexes pages for ChatGPT search, and ChatGPT-User fetches a page when a person asks ChatGPT to. Each can be allowed or blocked on its own.

Do all bots obey robots.txt?

Reputable crawlers do, but it is a request, not a lock. Some user-triggered fetchers say they may not apply it, and some crawlers have been reported to ignore it. Use authentication or firewall rules for content that must stay private.

Where do I put robots.txt?

At the root of each host, so it loads at https://example.com/robots.txt. Each subdomain needs its own file. It must be plain UTF-8 text.

Does the order of Allow and Disallow lines matter?

No. Under the robots.txt standard (RFC 9309) the most specific, longest matching rule wins, and Allow wins a tie. The tester on this page applies exactly that rule.

Was this tool helpful?