Skip to content

Robots.txt Generator

Build and validate a robots.txt file with presets, multiple crawlers, sitemap links and a rule tester.

AvailableRuns in your browserFree · No sign-up

Robots.txt Generator

robots.txt is a public file and a polite request to well-behaved crawlers. It is not access control: anyone can read it and visit the listed paths, and blocking crawling doesn't guarantee a URL disappears from search results. Protect private pages with a login, and use noindex to keep a crawlable page out of results.

Typical site: crawl public pages, skip admin, account and cart pages.

Used to suggest a sitemap URL.

Group 1

* means every crawler.

Rules

Google ignores Crawl-delay; Bing and some others honour it.

robots.txt

User-agent: *
Disallow: /admin/
Disallow: /account/
Disallow: /cart/
Allow: /

Upload it to the root of your site so it's available at https://your-site/robots.txt.

No syntax problems found.

Test a URL

Disallowed

In group 1, the longest matching rule is “Disallow: /admin/”, so /admin/settings is disallowed.

Precedence: a crawler follows the most specific user-agent group that names it (otherwise *). Within that group the longest matching rule wins; for an exact tie, Allow wins (Google's documented behaviour). * matches anything and $ marks the end of the URL.

Your data is processed locally in your browser and is not uploaded to OZVILO servers.

How to use the Robots.txt Generator

  1. 1Pick a preset, or start from a custom group.
  2. 2Add user-agent groups and their Allow / Disallow rules.
  3. 3Add your sitemap URL, then review the validation messages.
  4. 4Test URLs against the rules, then copy or download robots.txt and upload it to your site's root.

Examples

  • Typical site

    Input
    Preset: public pages, block admin/private
    Result
    User-agent: * · Disallow: /admin/ · Disallow: /account/ · Disallow: /cart/ · Allow: /
  • Rule test

    Input
    Disallow: /private/ · Allow: /private/public/ · test /private/public/page
    Result
    Allowed — the longer Allow rule wins

Robots.txt Generator features

  • Presets: allow all, block all, block folders, public/private, Googlebot and Bingbot examples
  • Multiple user-agent groups with Allow and Disallow rules
  • Crawl-delay with a compatibility note (Google ignores it), sitemap URLs and custom directives
  • Validation of syntax, contradictory rules and sitemap URLs
  • Rule tester using longest-match precedence; copy or download robots.txt

Frequently asked questions

Does robots.txt hide private pages?

No. robots.txt is public and only asks well-behaved crawlers not to crawl. Anyone can read it and visit the paths, and a blocked URL can still appear in search results if other sites link to it. Use authentication for private content and noindex to keep pages out of results.

Which rule wins when Allow and Disallow both match?

Google uses the most specific (longest) matching rule; if an Allow and a Disallow match equally, Allow wins. Other crawlers may differ slightly.

Does Google support Crawl-delay?

No. Googlebot ignores Crawl-delay; Bing and some other crawlers honour it.