Skip to content

Robots.txt generator and tester, with AI crawler presets

Build a robots.txt file in a minute, or paste the one your site already has and find out exactly which URLs it blocks. Pick a starting point, list the folders crawlers should skip, choose which AI crawlers to turn away, add your sitemap and download the file. The tester takes a list of URLs and a crawler name and tells you, line by line, whether each URL is allowed or blocked and which rule decided it.

Quick answer

To make a robots.txt file, list the paths to block under Disallow, the exceptions under Allow, tick any AI crawlers you want to block and add your sitemap URL, then download robots.txt and upload it to the root of your site, such as example.com/robots.txt. To test a file, paste it with your URLs: the longest matching rule wins, and Allow wins a tie, as RFC 9309 says.

Runs in your browser, nothing is uploaded

Based on RFC 9309: Robots Exclusion Protocol (IETF, September 2022) · Page updated 22 October 2026

Editor: Abuzar, founder of NeedMyToolsHow we check facts

Rules for all crawlers

Start from:

Paths start with /. Use * for any characters and $ for the end of the URL, for example /*.pdf$. A pasted full URL is turned into its path.

AI crawlers

Ticked crawlers get their own group with Disallow: /. Each token comes from the operator's own page.

  • source
  • source
  • source
  • source
  • source
  • source
  • source
  • source
  • source
  • source
  • source

User-request agents fetch a page because a person asked; OpenAI says robots.txt rules may not apply to ChatGPT-User.

Sitemap and extras

Google does not support Crawl-delay and Applebot does not follow it. Leave it empty unless a specific crawler overloads your server.

Your robots.txt

Upload it as robots.txt to the root of your domain, for example https://example.com/robots.txt. Each subdomain needs its own file.

Checks

  • NoteNo Sitemap line. Adding your sitemap's full URL helps crawlers find your pages.

How to use the Robots.txt Generator & Tester

  1. On the Generate tab, pick a preset or start blank, and choose whether crawlers may visit the whole site or none of it.
  2. List the paths to block under Disallow and any exceptions under Allow, one per line. A pasted full URL is turned into its path for you.
  3. Tick the AI crawlers to block, or use one of the quick buttons, and add your sitemap URL.
  4. Read the checks under the file, then copy it or download robots.txt and upload it to the root of your domain.
  5. To check a file, open the Test tab, paste the robots.txt and a list of URLs, choose a crawler, and read which rule decides each URL. Download the results as CSV.

What robots.txt does, and what it does not do

A robots.txt file sits at the root of a host and asks crawlers not to fetch certain URLs. It controls crawling, not indexing. Google says so plainly in its introduction to robots.txt: the file is mainly used to avoid overloading a site with requests and is not a mechanism for keeping a page out of Google. A blocked URL can still be listed if other pages link to it, just without a description. To keep a page out of search results, use a noindex rule on a page crawlers are allowed to fetch, or put it behind a password. RFC 9309 adds a security warning worth repeating: every path you list in robots.txt is public, so the file is not a place to hide private folders. Rules also apply only to the exact host, protocol and port the file is served from, so a subdomain needs its own file.

How the tester decides: the RFC 9309 rules

The tester follows the Robots Exclusion Protocol as published in RFC 9309. First it picks the group for your crawler: the user-agent line that names its product token, matched without regard to case, with every group naming the same token merged into one. If no group names it, the * group applies, and if there is none, everything is allowed. Inside the group, every Allow and Disallow path is compared with the URL's path and query from the first character. The rule with the most characters wins, and when an Allow and a Disallow rule are equally long, Allow wins. A * matches any run of characters and a $ at the end means the URL must end there. /robots.txt itself is always allowed. Arabic and other non-ASCII characters are compared in their percent-encoded UTF-8 form, so /دليل/ and /%D8%AF%D9%84%D9%8A%D9%84/ count as the same path. Google documents the same order of precedence, and lists a few crawlers that fall back to another group, such as Googlebot-Image following the Googlebot group; the tester applies those fallbacks and tells you when it did.

AI crawlers: which token does what

Each token below comes from the operator's own documentation, opened on 22 October 2026. Companies separate crawlers that collect training data from those that build search results and those that fetch a page when a user asks, so blocking one does not block the others. Google-Extended has no user agent of its own: it is a control token, and Google says it does not affect a site's inclusion in Google Search. OpenAI notes that ChatGPT-User fetches pages on a user's request and that robots.txt rules may not apply to it. Perplexity says PerplexityBot is not used to train AI foundation models. Bytespider is not in the presets because we could not open an official page from its operator; you can still block any crawler by adding its token in the extra field. Remember that robots.txt is a request that well-behaved crawlers honour, not a lock.

  • GPTBot (OpenAI): collects content that may be used to train its models
  • OAI-SearchBot (OpenAI): ChatGPT search results; ChatGPT-User: fetches a page when a user asks
  • ClaudeBot (Claude): training data; Claude-SearchBot: search quality; Claude-User: user requests
  • Google-Extended (Google): Gemini training and grounding, no effect on Google Search
  • Applebot-Extended (Apple): opt out of training Apple's foundation models; Applebot itself still crawls
  • CCBot (Common Crawl): the open web archive many AI datasets are built from
  • PerplexityBot (Perplexity): search results; Perplexity-User: user requests

Crawl-delay, sitemap lines and other fields

Crawl-delay asks a crawler to wait a number of seconds between requests, but it is not part of RFC 9309 and support varies. Google's specification lists the fields it reads, user-agent, allow, disallow and sitemap, and says other fields such as crawl-delay are not supported. Apple says Applebot does not follow crawl-delay, while Claude's help center says Claude's crawlers respect Crawl-delay where appropriate. Use it only if a specific crawler is overloading your server. A Sitemap line must hold a full URL, starting with https://, and may appear anywhere in the file; you can list several. Fields such as Noindex and Host are not read by Google, so the validator flags them. Google also ignores a byte order mark at the start of the file and reads at most 500 KiB, so anything after that is lost.

What the validator checks

The checks run on the file you generate and on any file you paste. Errors are mistakes that change what crawlers do; warnings are things crawlers will ignore or read differently from what you meant; notes are worth a look but may be intended.

  • Disallow: / in the * group, which blocks every compliant crawler from the whole site
  • Rules before any User-agent line, which no crawler applies
  • Paths without a leading slash, and full URLs used as rules, which never match
  • A $ in the middle of a path, and regular-expression syntax such as .* or \. that robots.txt does not use
  • A relative Sitemap line, or no Sitemap line at all
  • A byte order mark, an HTML page saved as robots.txt, or a file over 500 KiB
  • Unknown or unsupported fields such as Noindex, Host or a misspelt Disalow

Frequently asked questions

Does robots.txt remove a page from Google?

No. Google says robots.txt is not a mechanism for keeping a page out of Google, and a blocked URL can still appear in results if it is linked from elsewhere. To keep a page out of search, add a noindex rule and let Google crawl the page so it can see it, or protect the page with a password.

How do I block GPTBot and other AI crawlers with robots.txt?

Add a group for each crawler's token with Disallow: /, for example User-agent: GPTBot followed by Disallow: /. In the generator, tick the crawlers or press Block AI training crawlers. Blocking a training crawler such as GPTBot does not block that company's search crawler, which has its own token.

Is this robots.txt generator free, and is my file uploaded?

The robots.txt generator and tester are free with no sign-up. Everything runs in your browser: the file you build or paste and the URLs you test are not sent to our servers.

Does Google follow Crawl-delay?

No. Google's robots.txt specification says fields such as crawl-delay are not supported. Some other crawlers read it, so the generator can add the line, but it will not slow Googlebot down.

Why might another robots.txt checker give a different answer?

Crawlers do not all implement robots.txt the same way. This tester follows RFC 9309 and Google's documented order of precedence: the longest matching rule wins and Allow wins a tie. Older tools sometimes apply the first matching rule instead, or treat paths without regard to case, which RFC 9309 does not.

Related guides