Robots.txt Generator & Tester

Build a valid robots.txt with one-click presets, including blocking AI training bots. Then test exactly which URLs Googlebot or any other crawler is allowed to visit.

  • 100% free
  • Runs in your browser – nothing uploaded
  • No sign-up

Start from a preset

🤖 AI crawlersTick to block – search engines are not affected
Advanced options header comment

Your robots.txt

Upload to your domain root: /robots.txt

What is robots.txt?

robots.txt is a plain-text file at the root of your domain (https://yoursite.com/robots.txt). It tells crawlers which parts of your site they may request. Every major search engine checks it before crawling, and so do most well-behaved AI and SEO bots.

⚠️

robots.txt controls crawling, not indexing. A blocked page can still appear in Google (without a description) if other sites link to it. To keep a page out of search results, let Google crawl it and add <meta name="robots" content="noindex">. Never use robots.txt to hide private data. The file is public, and anyone can read it.

How the rules are matched

Our tester follows the official standard (RFC 9309) and Google’s documented behaviour exactly:

  • One group per crawler: a crawler uses the group with the most specific matching User-agent and ignores all others. If Googlebot has its own group, the rules under User-agent: * don’t apply to it.
  • Longest rule wins: Allow: /admin/public/ beats Disallow: /admin/ because it is more specific. On an exact tie, Allow wins.
  • Wildcards: * matches any characters. $ anchors the end of the URL, so Disallow: /*.pdf$ blocks PDFs.
  • Case-sensitive paths: /Admin and /admin are different.
  • An empty Disallow: means “nothing is blocked”.

Should you block AI crawlers?

AI companies crawl the web to train large language models and to power AI answers. Blocking them is a business decision:

CrawlerCompanyPurpose
GPTBotOpenAIModel training
OAI-SearchBot / ChatGPT-UserOpenAIChatGPT search results and user-requested browsing
ClaudeBotAnthropicModel training
Google-ExtendedGoogleGemini training (doesn’t affect Google Search)
CCBotCommon CrawlOpen dataset used by many AI models
PerplexityBotPerplexityAI search answers
Applebot-ExtendedAppleApple Intelligence training
BytespiderByteDanceModel training
Meta-ExternalAgentMetaModel training

Block training bots if you don’t want your content used to train models. Keep search/answer bots (like OAI-SearchBot or PerplexityBot) if you want to be cited, and get traffic, from AI search tools. Note that robots.txt is voluntary: reputable companies follow it, but it isn’t a technical barrier.

Common robots.txt mistakes

  1. Leaving Disallow: / from a staging site on the live site, which removes you from Google over the following weeks.
  2. Blocking CSS and JavaScript. Google needs them to render and understand your pages.
  3. Putting the file in a subfolder. It must be at the root: /robots.txt.
  4. Using robots.txt to “noindex”. Google stopped supporting Noindex: in robots.txt in 2019.
  5. Forgetting the sitemap line, which is an easy way to help every search engine find your pages.

Frequently asked questions

Where do I upload robots.txt?

At the root of your domain, so it opens at https://yourdomain.com/robots.txt. Each subdomain (like shop.yourdomain.com) needs its own file.

Does Google support Crawl-delay?

No. Googlebot ignores Crawl-delay and adjusts its speed automatically based on your server’s responses. Bing, Yandex and some other crawlers do respect it.

Will blocking GPTBot or Google-Extended hurt my SEO?

No. These tokens only control AI training. Google Search uses Googlebot, which isn’t affected by a Google-Extended rule.

How accurate is the tester?

It implements the matching rules from RFC 9309 and Google’s robots.txt documentation: group selection, longest-match precedence, Allow on ties, * and $ wildcards, and percent-encoding. Those rules are covered by our automated test suite.

How long until Google sees my changes?

Google usually refreshes its cached copy within 24 hours. You can request a recrawl in Google Search Console under Settings → robots.txt.