AltUtils

Robots.txt Builder

Create a valid robots.txt with user-agent rules, AI crawler blocking and sitemap links, and test whether a URL is allowed.

CategoryWeb & SEO
Sheet34 / 42
ProcessingIn your browser

Start from a preset

Presets replace your groups (sitemaps are kept). “Block AI crawlers” adds a group to your current rules.

Import an existing robots.txt

Importing replaces the current groups and sitemaps. Comments and unsupported directives are dropped and listed below. The file is read in your browser — nothing is uploaded.

1 group

Group 1

  • *
Rules
Ignored by Google; honored by Bing and some other crawlers.

Sitemaps

robots.txt 4 lines · 74 B

Checks

No problems found.

URL tester

Checks the file above with Google's matching rules: most specific user-agent group, longest matching path, Allow wins ties. No request is sent to your site.

Blockedfor Googlebot (Google Search)

Path checked
/admin/settings
Group used
User-agent: * (no group names this crawler)
Decided by
Disallow: /admin/ (line 2)

What is the Robots.txt Builder?

The Robots.txt Builder creates a robots.txt file — the plain-text file at the root of a host (for example https://example.com/robots.txt) that tells crawlers which URLs they may request. Build one or more user-agent groups, add Allow and Disallow rules with * and $ wildcards, list your XML sitemaps, then copy or download a file that follows RFC 9309, the Robots Exclusion Protocol standard that Google, Bing and other major crawlers implement.

Every value is sanitized as it is written: line breaks are stripped so a field can never inject extra directives, and #, spaces and non-ASCII characters in paths are percent-encoded so they are not cut off as comments. A group without rules gets an explicit empty "Disallow:" so its user-agents are not silently merged into the next group, and live checks flag mistakes such as a blocked homepage, paths that don't start with /, full URLs used as rules, blocked CSS/JS files, relative sitemap URLs and files over Google's 500 KiB limit.

The built-in URL tester evaluates the generated file the way Google documents it: it selects the group with the most specific matching user-agent token (case-insensitive, with groups for the same crawler merged and a fallback to *), then applies the longest matching rule, with Allow winning ties. It also normalizes percent-encoding and always allows /robots.txt itself. Presets cover common setups — allow all, block all (for staging), WordPress, online shops and blocking AI crawlers such as GPTBot, ClaudeBot, CCBot, PerplexityBot or Google-Extended — and you can import an existing robots.txt to edit it.

Everything runs locally in your browser: nothing is uploaded, and the tester never fetches your site.

Frequently asked questions

Where do I put robots.txt?
At the root of each host, e.g. https://www.example.com/robots.txt. It only applies to that exact protocol, host and port, so a subdomain such as shop.example.com needs its own file. It must be UTF-8 plain text; Google reads at most 500 KiB and generally caches the file for up to 24 hours.
Does Disallow remove a page from Google?
No. Disallow only stops crawling. A blocked URL can still be indexed (without its content) if other pages link to it. To keep a page out of search results, let it be crawled and use a noindex robots meta tag or X-Robots-Tag header — Google can't see a noindex on a page it isn't allowed to fetch.
How does Google choose between Allow and Disallow?
Rule order doesn't matter. Google applies the most specific rule — the matching rule with the longest path. If an Allow and a Disallow rule are equally long, the less restrictive Allow wins. For example, Allow: /folder beats Disallow: /folder for /folder/page, while Disallow: /*.htm beats Allow: /page for /page.htm.
How do the * and $ wildcards work?
* matches any sequence of characters (including none) and $ at the end of a rule marks the end of the URL. Disallow: /*.pdf$ blocks every URL ending in .pdf, and Disallow: /*? blocks every URL with a query string. Paths are case-sensitive and matched from the start, so /fish matches /fish.html and /fish/salmon but not /Fish or /catfish.
Which group does a crawler follow?
Exactly one: the group whose user-agent matches the crawler's token most specifically, compared case-insensitively (Googlebot-Image, for instance, falls back to a Googlebot group). If several groups name the same crawler, their rules are combined. Crawlers without a named group follow User-agent: *, except a few such as AdsBot-Google that ignore * and must be named explicitly.
How do I block AI crawlers?
Click "Block AI crawlers". It adds a group that disallows everything for GPTBot, ChatGPT-User, OAI-SearchBot, ClaudeBot, Claude-Web, anthropic-ai, Google-Extended, CCBot, PerplexityBot, Bytespider, Applebot-Extended, Meta-ExternalAgent and Amazonbot, while search engines keep following your other rules. Google-Extended and Applebot-Extended are control tokens: blocking them doesn't affect Google Search or Apple search results. Vendors add new tokens regularly, so review the list now and then — and remember that compliance is voluntary.
Is Crawl-delay supported?
Google ignores Crawl-delay; Googlebot adapts its crawl rate automatically and slows down when your server returns 500, 503 or 429 responses. Bing and some other crawlers honor Crawl-delay, so the builder writes it per group when you enter a valid number of seconds.
Can robots.txt protect private content?
No. The file is public and only well-behaved bots obey it — listing secret paths can even advertise them. Protect private areas with authentication, and use noindex for pages that should stay out of search results.