Free tool · AI search & SEO

robots.txt generator for AI crawlers

Choose which of 17 AI search, answer and training crawlers may visit your site, block private folders, add your sitemap, and copy or download a ready-to-upload robots.txt.

Free, no signup17 crawlersRFC 9309 syntaxNothing stored

Free robots.txt generator · runs in your browser

Start from a preset

Pick a starting point, then fine-tune each crawler.

Crawlers

Switch a crawler off to give it its own Disallow: / group.

AI search & answers

Show and cite your pages in AI answers and search results.

6 of 6 allowed
  • OAI-SearchBotOpenAI

    Finds pages to show and link in ChatGPT search results.

  • Claude-SearchBotAnthropic

    Indexes pages to improve Claude's search results.

  • PerplexityBotPerplexity

    Indexes pages that Perplexity can show and cite in answers.

  • GooglebotGoogle

    Google's main crawler. Pages it can't crawl can't appear in Search or AI Overviews.

  • BingbotMicrosoft

    Bing's crawler. Copilot answers are grounded in Bing's index.

  • DuckAssistBotDuckDuckGo

    Fetches pages used in DuckDuckGo's AI-assisted answers.

User-requested visits

Fetch a page when someone asks an assistant about it.

3 of 3 allowed
  • ChatGPT-UserOpenAI

    Visits a page when a ChatGPT user asks it to.

  • Claude-UserAnthropic

    Visits a page when a Claude user asks it to.

  • Perplexity-UserPerplexity

    Visits a page when a Perplexity user asks a question about it.

AI model training

Collect pages that may be used to train AI models.

0 of 8 allowed
  • GPTBotOpenAI

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

  • ClaudeBotAnthropic

    Collects pages that may be used to train Anthropic's models.

  • Google-ExtendedGoogleControl token

    Controls whether Google may use your pages for Gemini. It doesn't affect Google Search.

  • Applebot-ExtendedAppleControl token

    Controls whether Apple may use your pages to train its models. Applebot still crawls for Siri and Spotlight.

  • CCBotCommon Crawl

    Builds the open Common Crawl dataset, which many AI models are trained on.

  • Meta-ExternalAgentMeta

    Collects pages that may be used to train Meta's AI models.

  • AmazonbotAmazon

    Amazon's crawler, used for services such as Alexa.

  • BytespiderByteDance

    ByteDance's crawler, used for its AI models.

Private folders and sitemap

These rules go in the User-agent: * group, so they apply to every crawler.

For example your admin area or internal API. A leading / is added if you leave it out. Leave empty to allow everything.

Use the full address, including https://. Crawlers use it to find every page.

robots.txt

Updates as you change settings

9 of 17 AI crawlers allowed

8 blocked
  • AI search & answers6/6
  • User-requested visits3/3
  • AI model training0/8
User-agent: *
Disallow: /admin
Disallow: /api

# OpenAI: OpenAI models
User-agent: GPTBot
Disallow: /

# Anthropic: Anthropic models
User-agent: ClaudeBot
Disallow: /

# Google: Gemini
User-agent: Google-Extended
Disallow: /

# Apple: Apple Intelligence
User-agent: Applebot-Extended
Disallow: /

# Common Crawl: Common Crawl
User-agent: CCBot
Disallow: /

# Meta: Meta AI
User-agent: Meta-ExternalAgent
Disallow: /

# Amazon: Amazon
User-agent: Amazonbot
Disallow: /

# ByteDance: ByteDance
User-agent: Bytespider
Disallow: /

Upload it to the root of your site so it loads at yourwebsite.com/robots.txt. robots.txt is a request that well-behaved crawlers follow; it doesn't lock pages.

Test it with the AI crawler checker
How it works

How do you use the robots.txt generator?

  1. 1

    Pick a preset

    Allow everything, allow AI search but block training, or block AI crawlers while keeping Google and Bing.

  2. 2

    Fine-tune crawlers and folders

    Switch individual crawlers on or off, add folders like /admin that no crawler should visit, and add your sitemap URL.

  3. 3

    Upload and test

    Copy or download the file, upload it to your site root, then run the AI crawler checker to confirm each bot sees what you intended.

What you get

A robots.txt you can trust with AI crawlers

Every crawler is listed by its real user-agent token, grouped by what it does, so you can see the consequence of each switch.

  • Grouped by purpose

    AI search, user-requested visits and AI training are separated, so blocking training doesn't quietly block search.

  • Real crawler tokens

    17 tokens from OpenAI, Anthropic, Perplexity, Google, Microsoft, Apple, Meta and others, each with the company and product it serves.

  • One-click presets

    Three common policies with a one-line explanation of what each means for AI visibility and training.

  • Standard, readable output

    One User-agent: * group for shared rules and a commented Disallow: / group per blocked crawler, which is how RFC 9309 matching works best.

  • Live summary

    See how many crawlers are allowed, per purpose, and get a warning if you block Googlebot or Bingbot.

  • Copy, download, test

    Copy the file or download robots.txt, then check the live result with the free AI crawler checker.

Guide

How to write a robots.txt for AI crawlers

robots.txt is the first file most crawlers request on your site. Since 2022 the format has been an internet standard, RFC 9309, and the major AI companies publish the crawler tokens you can use in it. It's a request, not a lock: it tells well-behaved bots where they may go, and it doesn't protect private pages from people or from bots that ignore it.

How crawlers match your rules

A file is made of groups. Each group starts with one or more User-agent lines followed by Allow and Disallow rules. A crawler picks the group that names its token, and only falls back to User-agent: * when no group names it. It does not combine the two. That's why this generator puts shared folder rules in the * group and gives each blocked crawler its own group with Disallow: /, which blocks it everywhere.

Inside a group, the rule with the longest matching path wins, and if an Allow and a Disallow match equally, Allow wins. Paths are case-sensitive and match from the start, so Disallow: /admin also blocks /admin/users and /administrator.

Search crawlers and training crawlers are different bots

CompanySearch and answersModel training
OpenAIOAI-SearchBot, ChatGPT-UserGPTBot
AnthropicClaude-SearchBot, Claude-UserClaudeBot
GoogleGooglebotGoogle-Extended
AppleApplebotApplebot-Extended

Blocking GPTBot keeps your pages out of future OpenAI training data, but ChatGPT search uses OAI-SearchBot, so you can still be cited. Google-Extended and Applebot-Extended are control tokens: they never fetch pages themselves, they only tell Google and Apple whether content their normal crawlers fetch may be used for AI models. Blocking them has no effect on Google Search or Siri.

Pick a policy that matches your goals

  • Allow everything if you want the widest reach, including training, which is common for documentation and developer tools.
  • Allow AI search, block training if you want to be cited in ChatGPT, Claude and Perplexity answers without contributing to model training. This is the default here.
  • Block AI crawlers if your content is your product, for example paid research. You stay in Google and Bing, which also power AI Overviews and Copilot.

What robots.txt can't do

A Disallow rule stops crawling, not indexing. Google can list a blocked URL without its content if other sites link to it. To keep a page out of results, let it be crawled and add noindex. For genuinely private areas, require a login. And if robots.txt returns a server error (5xx), RFC 9309 tells crawlers to treat the whole site as disallowed until it loads again, so make sure it returns 200.

Upload it and check

Save the file as robots.txt at the root of each host, for example https://www.yoursite.com/robots.txt; subdomains need their own. Add a Sitemap: line with the full URL of your sitemap. Then run the AI crawler checker to see the verdict for every crawler, and consider an llms.txt to give AI tools a short map of your site.

FAQ

robots.txt generator: questions and answers

01

What is a robots.txt file?

A plain-text file at yourwebsite.com/robots.txt that tells crawlers which parts of your site they may visit. Each group starts with User-agent and lists Disallow or Allow rules. Well-behaved crawlers follow it; it doesn't password-protect anything.

02

How do I block AI crawlers from training on my site?

Add a group for each training crawler with Disallow: /, for example User-agent: GPTBot, User-agent: ClaudeBot, User-agent: Google-Extended and User-agent: CCBot. The "Allow AI search, block AI training" preset does this while keeping AI search crawlers allowed.

03

Will blocking AI crawlers hurt my Google rankings?

Not if you keep Googlebot allowed. Google-Extended controls only whether Google may use your content for Gemini; Google Search and AI Overviews use Googlebot.

04

Where do I put robots.txt?

At the root of your domain, so it loads at https://yourwebsite.com/robots.txt. Each subdomain needs its own file.

05

How do crawlers read the rules?

A crawler uses the group that names it, or the User-agent: * group if none does. Within that group, the longest matching path rule wins, and Allow wins a tie. That's why this generator gives blocked crawlers their own Disallow: / group.

06

Does Disallow stop a page from appearing in Google?

Not reliably. Disallow stops crawling, but Google can still index a blocked URL without its content if other pages link to it. To keep a page out of search results, allow crawling and add a noindex meta tag or X-Robots-Tag header instead.

07

How quickly do crawlers pick up a new robots.txt?

RFC 9309 says crawlers shouldn't use a cached copy for more than 24 hours unless the file can't be reached, so most changes apply within a day. Google also lets you request a recrawl of robots.txt in Search Console.

Can't find your answer? Read the Atlis docs.

AI search sends you visitors. Atlis helps keep them.

Atlis tracks what each new user does after signup and sends the right lifecycle email automatically: onboarding nudges, re-engagement and churn recovery. Free plan, about 10 minutes to set up.

14 days of Growth free, then free forever up to 250 users · No credit card