Free tool

robots.txt Generator

A free robots.txt creator with AI crawler presets. Decide which crawlers may read your site, including the AI crawlers that index pages for answers and the ones that collect training data, and get a correctly formatted file. Everything runs in your browser.

Build my file

Last updated

Build a robots.txt

Pick a starting point, adjust individual crawlers, and copy the file. Everything runs in your browser.

Start from a preset

Allow everything is selected.

Default for every crawler
Seconds between requests. Bing honours it; Googlebot ignores it, and Yandex stopped using it in 2018.
One per line, each starting with a slash. * matches anything; a trailing $ anchors the end.
Sitemap URLs
Crawlers

Default follows the rules above. Allow gives a crawler its own group that keeps your blocked paths. Block shuts it out completely.

AI search and answers

Index pages so AI assistants can cite them. Blocking these removes you from AI answers.

OAI-SearchBot OpenAI
Claude-SearchBot Anthropic
PerplexityBot Perplexity
DuckAssistBot DuckDuckGo
Google-CloudVertexBot Google
AI training

Collect pages for model training. Blocking these does not affect search or AI answers.

GPTBot OpenAI
ClaudeBot Anthropic
Google-Extended Google
Applebot-Extended Apple
Meta-ExternalAgent Meta
CCBot Common Crawl
Bytespider ByteDance
Amazonbot Amazon
cohere-ai Cohere
MistralAI-Training Mistral AI
User-triggered AI fetchers

Fetch a page when a person asks about it. Their operators say robots.txt may not apply to them.

ChatGPT-User OpenAI
Claude-User Anthropic
Perplexity-User Perplexity
Meta-ExternalFetcher Meta
MistralAI-User Mistral AI
Google-Agent Google
Google-GeminiNotebook Google
Search engines

Blocking these removes you from ordinary search results.

Googlebot Google
Googlebot-Image Google
Googlebot-Video Google
Googlebot-News Google
Bingbot Microsoft
Applebot Apple
DuckDuckBot DuckDuckGo
YandexBot Yandex
Baiduspider Baidu
Social link previews

Build the card shown when your link is shared.

facebookexternalhit Meta
Twitterbot X
LinkedInBot LinkedIn
Slackbot Slack
SEO tools

Crawl for backlink and ranking databases. Safe to block if you do not use them.

AhrefsBot Ahrefs
SemrushBot Semrush
MJ12bot Majestic
DotBot Moz
Start from an existing robots.txt

Your robots.txt


      

Which AI crawlers can robots.txt control?

AI companies run separate crawlers for separate jobs, and each one has its own User-agent name. That is what lets you allow one job and refuse another.

  • Search and answer crawlers index pages so an assistant can cite them. Blocking them takes you out of those answers.
  • Training crawlers collect pages that may be used to train future models. Blocking them has no effect on search or on AI answers.
  • User-triggered fetchers load a single page because a person asked about it. Some operators say robots.txt may not apply to these, because a human started the request.

Here is every AI crawler the generator knows about. Names and robots.txt behaviour were checked against each operator’s documentation on 16 October 2026.

User agentOperatorKindWhat it doesObeys robots.txt
OAI-SearchBotOpenAIAI search and answersIndexes pages for ChatGPT search results and citations.Yes
Claude-SearchBotAnthropicAI search and answersIndexes pages to improve Claude search results.Yes
PerplexityBotPerplexityAI search and answersIndexes pages for Perplexity answers. Not used for training.Yes
DuckAssistBotDuckDuckGoAI search and answersFetches pages for DuckAssist answers.Yes
Google-CloudVertexBotGoogleAI search and answersCrawls sites whose owners asked Google to build Vertex AI agents from them.Yes
GPTBotOpenAIAI trainingCrawls pages that may be used to train OpenAI models.Yes
ClaudeBotAnthropicAI trainingCrawls pages that may be used to train Claude models.Yes
Google-ExtendedGoogleAI trainingA control token, not a crawler: decides whether Gemini may use pages Googlebot fetched. No effect on Google Search.Yes
Applebot-ExtendedAppleAI trainingA control token: decides whether Apple may use pages Applebot fetched to train its models.Yes
Meta-ExternalAgentMetaAI trainingCrawls pages for training AI models and indexing.Yes
CCBotCommon CrawlAI trainingBuilds the open Common Crawl archive, widely used as training data.Yes
BytespiderByteDanceAI trainingCrawls pages for ByteDance models.Yes
AmazonbotAmazonAI trainingCrawls pages for Amazon services, including Alexa answers and model training.Yes
cohere-aiCohereAI trainingCollects pages for Cohere models.Yes
MistralAI-TrainingMistral AIAI trainingCrawls pages to build datasets for training Mistral models.Yes
ChatGPT-UserOpenAIUser-triggered AI fetchersFetches a page when a ChatGPT user asks about it.Not always
Claude-UserAnthropicUser-triggered AI fetchersFetches a page when a Claude user asks about it.Yes
Perplexity-UserPerplexityUser-triggered AI fetchersFetches a page when a Perplexity user asks about it.Not always
Meta-ExternalFetcherMetaUser-triggered AI fetchersFetches individual links a Meta AI user asked about.Not always
MistralAI-UserMistral AIUser-triggered AI fetchersVisits a page when a Vibe user asks a question, and links to it as a source. Not used for automatic crawling or training.Yes
Google-AgentGoogleUser-triggered AI fetchersAgents on Google infrastructure that browse and act when a user asks. Google lists no robots.txt token for it.Not always
Google-GeminiNotebookGoogleUser-triggered AI fetchersFetches pages a Gemini Notebook user added as sources (formerly Google-NotebookLM).Not always

robots.txt is a request, not a lock. Well-behaved crawlers honour it. Anything determined to ignore it will. If content must not be read, put it behind a login rather than a disallow rule.

What do the presets do?

PresetAI searchAI trainingUser-triggeredSearch engines
Allow AI search, block trainingAllowBlockAllowDefault
Block all AI crawlersBlockBlockBlockDefault
Allow everythingDefaultDefaultDefaultDefault

“Default” means the crawler follows your rules for everyone. A crawler set to Allow gets its own group. Because a crawler with its own group ignores the User-agent: * rules entirely, the generator copies your blocked paths into that group, so allowing a crawler never quietly opens your /admin/ folder to it.

One rule catches people out: Google-Extended controls whether Gemini may use your content, and has no effect on Google Search. Blocking it does not remove you from search results. Blocking Googlebot does, and the generator warns you before you do it.

Where does robots.txt go on your platform?

robots.txt must load at the root of your domain, at https://yourdomain.com/robots.txt. A copy in a sub-folder is ignored, and each subdomain needs its own file. How you put it there depends on your platform:

PlatformWhere it goes
Most hosting (cPanel, Apache, Nginx)Upload the file to the folder your domain serves from, often public_html/.
WordPressWordPress serves a virtual robots.txt until a real one exists. Edit it in Yoast SEO (Tools, then File editor) or Rank Math (General Settings, then Edit robots.txt), or upload a file to the site root.
ShopifyAdd a robots.txt.liquid template to your theme (Online Store, Themes, Edit code). Shopify builds the file from it.
Next.jsReturn the rules from app/robots.ts, or put a static file in public/robots.txt.
Netlify, Vercel and other static hostsPut the file in the folder that gets published, often public/ or the build output.
WebflowPaste the rules into the robots.txt field in the site’s SEO settings.
WixUse the robots.txt editor in Wix’s SEO settings.
SquarespaceSquarespace writes the file itself and you cannot edit it. Its settings can ask known AI crawlers to stay away.
BloggerIn your blog’s settings, under Crawlers and indexing, turn on Enable custom robots.txt and paste the rules. They replace Blogger’s default file.

After uploading, open the address in a private window to check it loads as plain text, then run it through the robots.txt tester.

robots.txt or llms.txt?

They do different jobs, and many sites use both. robots.txt tells crawlers which URLs they may fetch. llms.txt is an optional, hand-picked index of your most useful pages for AI tools to read. A crawler you block in robots.txt should not fetch the pages your llms.txt lists, so keep the two consistent.

robots.txtllms.txt
AnswersWhich paths may this crawler fetch?Which pages matter, and what is on them?
Read bySearch engines and AI crawlersAI tools and agents that look for it
StatusA standard (RFC 9309)A proposal; Google Search does not need it

The longer comparison covers sitemap.xml too, and the llms.txt generator builds the other file.

Frequently asked questions

Does robots.txt actually stop bots?

Only the ones that choose to follow it. The standard itself says its rules “are not a form of access authorization” (RFC 9309). Well-behaved crawlers follow them; some user-triggered AI fetchers and badly behaved bots do not. If content must stay private, protect it with a login or server rules, not robots.txt.

Does blocking a page in robots.txt remove it from Google?

No. Google can still list a blocked URL it finds through links, just without reading the page. To keep a page out of Google, let it be crawled and add a noindex meta tag or X-Robots-Tag header. If you block the page as well, Google never sees the noindex (Google’s noindex documentation).

Can one file have rules for several crawlers?

Yes, one group per User-agent. A crawler follows only the most specific group that names it and ignores the User-agent: * group, so rules you want everywhere must be repeated in its own group (Google’s robots.txt specification). The generator does this for you.

Does Google follow Crawl-delay?

No. Google does not support Crawl-delay (Google’s robots.txt specification) and sets its own pace from how quickly your server responds. Bing honours it (Bing’s note on Crawl-delay), and Yandex stopped using it in February 2018 in favour of a crawl-rate setting in Yandex Webmaster (Yandex’s Crawl-delay page). If Google is crawling too hard, slow responses or errors make it back off.

Should I block GPTBot?

Block it if you do not want OpenAI to use your pages for training. It will not take you out of ChatGPT search: that uses a separate crawler, OAI-SearchBot, and pages a person asks ChatGPT about are fetched by ChatGPT-User (OpenAI’s crawler documentation). The “Allow AI search, block training” preset blocks GPTBot and keeps OAI-SearchBot allowed. To block it by hand, add a group with User-agent: GPTBot and Disallow: /.

Will blocking AI crawlers hurt my search rankings?

Blocking AI training crawlers does not affect Google or Bing, which use Googlebot and Bingbot. Blocking AI search crawlers does remove you from those assistants’ answers, which is a different kind of visibility.

Should I block them?

It depends what you want. A business hoping to be recommended by AI assistants works against itself by blocking search crawlers. A publisher whose archive is the product might reasonably block training crawlers while allowing search, which is what the first preset does.

Where does robots.txt go?

At the root of the domain: https://yourdomain.com/robots.txt. Each subdomain needs its own; a file on the main domain does not cover shop.example.com.

Is anything I build sent to a server?

No. The file is built in your browser. The only server request is the optional “Fetch from a site” import, which reads a public robots.txt and discards it.