vasilenko.info

robots.txt generator

/en/tool/robots-txt-generator/ works built in the browser, downloaded through the server

Build the file by groups—you can block Yandex and Google differently—and then immediately check a list of URLs against it: the tool reports not only whether each URL is blocked, but also which line matched. Building and checking happen in the browser; only the domain is sent to the server when you ask it to fetch the file from your site or check a sitemap.

promoTwenty years of notes on websitesHow we did it in 2008 and what still works today.Open

File assembly

A group defines who gets which rules. A robot reads only the rules in its group, so Yandex and Google are configured differently this way: with two groups, not one list for everyone.

Ready-made set for platform

Paths are inserted into the fields of the first group as plain text — edit, delete, or add to them. Sets are combined: “Bitrix” plus “Online store” produces one list without duplicates.

Site access

“Block entirely” replaces the rules in all groups with a single line, Disallow: \/. The lists remain in the fields and return when you switch back.

We’ll fetch robots.txt from this domain, sort it into groups, and show line by line what will change. The domain is also useful without uploading a file: it is used to verify the sitemap address.

The file is read on your device and never leaves it.

Full URLs with the protocol. There can be several lines: an index sitemap and a product sitemap are two lines.

    Yandex no longer considers this directive: the mirror is set with a permanent redirect and canonical. The field is kept for those whose files are read by an old parser. An empty field means this line will not appear in the file.

    Each line will begin with a pound sign. Robots skip comments — they are for people who may open the file a year from now.

    Ready file

    robots.txt

    Done

      Total lines
      User-agent groups
      Disallow lines
      Allow lines

      The file is assembled on your device. Only the domain is sent externally — and only when you click “Fetch file” or “Check sitemaps”.

      URL check

      The file assembled above is applied to the list of URLs exactly as a search engine does: the longest match wins; if lengths are equal, allow wins; asterisks and dollar signs work. It shows not just yes or no, but the exact rule that matched.

      A full URL is trimmed to the path with parameters, so paste it directly from the export. We convert Cyrillic to percent encoding automatically, as the crawler does.

      The group is selected by search engine rules: first an exact name, then a more general one (YandexBot uses the Yandex group), and finally an asterisk.

      Done

      What the crawler sees for each URL
      URLMatched ruleResult

      URLs checked
      Open for crawling
      Disallowed
      Matched group
      promoCalculate ROI at the same timeCampaign payback based on spend and revenue.Open

      How to use it

      1. Click your CMS in the presets—the paths will populate the fields in the first group. Then edit them as regular text: the preset saves you from having to remember that Bitrix uses /bitrix/, rather than silently imposing it on you.

      2. If Yandex and Google need different rules, click «Add group» or «Copy group for Yandex»: the second group gets its own bots and its own list. There is a separate button for AI bots; it adds a group with eight names and blocks the entire site.

      3. Enter your sitemap URLs, one per line, and click «Check sitemaps»: the server will request each URL and return its response code, size, and content type. A Sitemap line that leads to a 404 is the most common silent error.

      4. Enter your domain and click «Fetch file»—we will retrieve the file currently on your site, split it into groups, and show line by line what will change. Nothing will be overwritten unless you click the button.

      5. Check the URLs in the second section. Paste the list from your export there and see which line blocks each one: this is where you can see that «Allow: /cart/rules/» does not work if «Disallow: /cart\/*» appears above it.

      6. Download the file with the «Download file» button and place it at the domain root. Check that it opens at yoursite.com/robots.txt.

      promoBrowser task listNo account required—everything is stored on your device.Open

      Example breakdown: a store with a blocked cart

      The input data is the same as the default field values: you can calculate it mentally and confirm that the tool is telling the truth.

      1. One group produces one User-agent: * line—all bots without their own group read it.

      2. Three Disallow lines, one for each blocked path, and one Allow line.

      3. The Sitemap line goes at the end, outside the groups: it applies to all bots, so you do not need to repeat it in every group.

      4. In the URL check, /cart/ gets «Blocked» with the rule «Disallow: /cart/», while /cart/rules/ gets «Allowed» with the rule «Allow: /cart/rules/»: its match is twelve characters long versus six.

      5. The URL /catalog/shkafy/ does not match any rule, so it is allowed, and the rule column contains a dash—there is nothing blocking it.

      Total: 6 non-empty lines—1 User-agent, 3 Disallow, 1 Allow, and 1 Sitemap. Of the six checked URLs, three are blocked: the cart, the administrative page, and search.

      Frequently asked questions

      promoAll toolsForty-four tools, all running in your browser.Open

      Related tools

      6

      UTM builder

      Builds a tagged URL and keeps your campaign list close at hand.

      Open