Skip to content
DoItJag

Robots.txt Generator & Tester

Build a correct robots.txt in a few clicks, or paste the one your site already has to find mistakes. Then type any URL and crawler name to see whether it is allowed or blocked, and which rule decides, following the official robots.txt standard (RFC 9309) as Google applies it.

Start from:

Test a URL against these rules

Blocked for Googlebot. The longest matching rule is "Disallow: /admin/".Group used: *

Blocking a page in robots.txt stops crawling, not indexing: Google can still list the bare URL if other pages link to it. To keep a page out of search results, let it be crawled and add a noindex robots meta tag.

Sources

What robots.txt does

A robots.txt file sits at the root of a website (yoursite.com/robots.txt) and tells crawlers which paths they may fetch. It is a request, not a lock: well-behaved crawlers such as Googlebot follow it, while scrapers that ignore rules simply do not. Protect private files with a login instead.

The format was finally standardised in 2022 as RFC 9309. Lines are grouped: one or more User-agent lines name the crawlers, and the Allow and Disallow lines below them list path prefixes. When several rules match a URL, the longest one wins, and if an Allow and a Disallow are equally long, Allow wins. The * wildcard stands for any characters and $ marks the end of the address. Paths are case-sensitive, so /Shop and /shop are different.

Worked example

Suppose your file says Disallow: /account/ and Allow: /account/help. Testing /account/orders for Googlebot gives Blocked, decided by the first rule. Testing /account/help/returns gives Allowed, because the Allow rule is longer and therefore more specific. A crawler named in no group, such as Bingbot, falls back to the User-agent: * group.

Blocking AI training crawlers

Several companies publish a robots.txt name that controls whether your content trains their models: GPTBot, Google-Extended, ClaudeBot, CCBot and Applebot-Extended. The preset adds one group disallowing all of them. Google-Extended affects Gemini only, not your ranking in Google Search, and Applebot-Extended likewise leaves Apple search features alone. New names appear over time, so revisit the list now and then.

Mistakes the checker catches

  • Rules placed before any User-agent line, which no crawler applies.
  • A Sitemap line with a relative path instead of a full address.
  • Typos in field names, such as “Useragent”.
  • Crawl-delay, which Google ignores (some other crawlers read it).
  • Files bigger than 500 KiB, where Google stops reading.

Remember that a page blocked here can still appear in results as a bare link. Use a noindex tag from the Meta Tag Generator for pages that must stay out, and list the pages you do want found with the XML Sitemap Generator.

How to use Robots.txt Generator & Tester

  1. Choose a starting point (allow everything, block everything, or block AI training crawlers) and add rules for the folders you want to keep crawlers out of.
  2. Add your sitemap address and check the preview of the file.
  3. Test a few URLs, then download robots.txt and upload it to the root of your website.

Privacy: how it works

Everything happens in your browser. Nothing you type is sent to any server, and no website is contacted.

Frequently asked questions

Does blocking a page in robots.txt keep it out of Google?

Not reliably. robots.txt stops crawling, but Google can still list a blocked URL without a description if other pages link to it. To keep a page out of results, allow crawling and add a noindex robots meta tag.

Which names block AI training?

GPTBot (OpenAI), Google-Extended (Google Gemini), ClaudeBot (Anthropic), CCBot (Common Crawl) and Applebot-Extended (Apple), as named on each company’s own help page. Google-Extended and Applebot-Extended do not affect normal search results.

Does this page read my live robots.txt?

No. It never contacts other websites. Open yoursite.com/robots.txt in your browser, copy the text and paste it into the checker.