Skip to content
toola.

User-agent · Disallow

Robots.txt generator and checker

Build a robots.txt file group by group: which crawlers a rule is for, which paths they may and may not fetch, and where your sitemaps are. Quick starts allow or block everything, or block known AI training crawlers. The result is checked for common mistakes as you edit.

Private: your files never leave your device.

Quick start:

Rules

*

* means every crawler. Names are matched without regard to case.

Ignored by Google; some other crawlers respect it.

No problems found.

robots.txt asks well-behaved crawlers not to fetch pages; it doesn’t hide them or keep them out of search results if other sites link to them. Use noindex or a login for that. Put the file at the root of the site: https://example.com/robots.txt.

How was this tool?

How to use Robots.txt generator

  1. Step 1: Start from a quick-start option or edit the first group.

  2. Step 2: Add paths to Disallow or Allow, and groups for specific crawlers.

  3. Step 3: Add your sitemap URL, then download robots.txt and put it at the root of your site.

How crawlers read the file

  • A crawler uses the one group whose User-agent matches it most specifically, and ignores the * group then: rules don’t add up across groups.
  • Within a group, the longest matching path wins; on a tie, Allow beats Disallow (RFC 9309). Allow: /admin/help with Disallow: /admin/ opens just the help pages.
  • * matches any characters and $ marks the end of the address: Disallow: /*.pdf$ blocks every PDF.
  • Paths are case-sensitive: /Admin and /admin are different.

Don’t list secret pages in robots.txt: the file is public, so it tells everyone where they are. Protect them with a login.

Frequently asked questions

Does Disallow remove a page from Google?

No. It stops crawling, but a blocked page can still be listed if other sites link to it, and Google can’t see a noindex tag on a page it may not fetch. To keep a page out of results, allow crawling and use noindex.

Can robots.txt block AI crawlers?

It asks them to stay away, and the major ones (GPTBot, ClaudeBot, Google-Extended, CCBot and others) say they respect it. It’s a request, not a lock: crawlers that ignore robots.txt need blocking on the server.

Where does the file go?

At the root of the host: https://example.com/robots.txt. Each subdomain needs its own.