EN RU
List your company
SEO & markup

robots.txt tester & builder

Paste your rules and test a path per bot, or build a robots.txt from scratch. Uses the Google matching model — longest rule wins, Allow beats Disallow.

robots.txt

Rules are grouped by User-agent. Within the group that matches the bot, the rule with the longest path pattern wins; if an Allow and a Disallow tie, Allow wins.

Test a path

Build from a form

Serve this at https://yourdomain.com/robots.txt. robots.txt controls crawling, not indexing — to keep a page out of results use a noindex meta tag or header on a page that is still crawlable.

What robots.txt controls — and what it does not

robots.txt controls crawling, not indexing. A Disallow rule tells compliant bots not to fetch matching URLs, but a disallowed page can still be indexed from external links, just without a snippet. To keep a page out of search results, let it be crawled and add a noindex meta tag or X-Robots-Tag header. This tool tests whether a path is crawlable for a given bot against your rules and builds a robots.txt from a form. It uses the Google matching model: the bot picks the User-agent group that most specifically matches its name, then within that group the rule with the longest path pattern wins, and if an Allow and a Disallow tie on length, Allow wins.

Wildcards, groups and common mistakes

The wildcards * (any sequence) and $ (end of path) are supported by Google, Bing and Yandex. A frequent surprise: Disallow: /search blocks every path that starts with /search, including /search/help and /search?q=x — write Disallow: /search$ to block only the exact page, or add Allow: /search/help to keep one path open. Different bots need separate User-agent groups, and a bot uses only its single most specific group and ignores the rest, so repeat shared rules in each group. Crawl-delay is ignored by Google (set the rate in Search Console) but honoured by Bing and Yandex.

Frequently asked questions

What does robots.txt actually control?
Crawling, not indexing. A Disallow rule tells compliant bots not to fetch matching URLs. It does not remove a page from search — a disallowed URL can still be indexed from external links, just without a snippet. To keep a page out of results, allow it to be crawled and add a noindex meta tag or X-Robots-Tag header.
How does a bot pick which rule applies?
First it picks the group whose User-agent line most specifically matches its name (an exact or prefix match beats "*"). Within that group, for the requested path, the rule with the longest path pattern wins. If an Allow and a Disallow match with the same length, Allow wins. This tool uses that same model.
Are the wildcards * and $ supported?
Yes. * matches any sequence of characters and $ anchors to the end of the URL path. Google, Bing and Yandex all support them. Older or strict parsers may not, so keep patterns simple where you can.
Why did my Disallow: /search not block /search/help?
It does block it — Disallow: /search matches any path that starts with /search, including /search/help and /search?q=x. If you want to block only the exact page, write Disallow: /search$. If /search/help should stay open, add Allow: /search/help, which wins by being more specific.
Does Crawl-delay work for Google?
No. Googlebot ignores Crawl-delay; set the crawl rate in Search Console instead. Bing and Yandex do honour it. Include it only if you specifically need to slow those crawlers.
Can I have different rules for different bots?
Yes — add a separate "User-agent:" group per bot. A bot uses only the single most specific group that matches its name and ignores the others entirely, so repeat any shared rules in each group that needs them.
Should I block AI crawlers like GPTBot?
That is a business call. Blocking GPTBot, ClaudeBot, CCBot and similar stops your content being used for model training but does not affect search rankings. Add a group per bot with Disallow: / if you want them out.
Is my robots.txt content sent anywhere?
No. Parsing, testing and building all run in your browser; nothing you paste or type is transmitted or stored.

Related tools

All tools →