Robots.txt Generator
Build and validate a robots.txt file with presets, multiple crawlers, sitemap links and a rule tester.
Robots.txt Generator
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.
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.
Test a URL
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
- 1Pick a preset, or start from a custom group.
- 2Add user-agent groups and their Allow / Disallow rules.
- 3Add your sitemap URL, then review the validation messages.
- 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.
Related tools
- Available
XML Sitemap Generator
Create valid XML sitemaps from a URL list, a .txt file or a safe crawl of your site, split at protocol limits.
SEO ToolsOpen tool - Available
Canonical URL Generator
Normalize a URL and generate its canonical link tag and HTTP header — you choose every change.
SEO ToolsOpen tool - Available
Redirect Checker
Trace a URL's redirect chain hop by hop: status codes, final destination, loops and HTTPS issues.
SEO ToolsOpen tool - Available
On-Page SEO Checker
Audit a page's title, meta tags, headings, images, links, canonical, social tags and structured data — from a URL or pasted HTML.
SEO ToolsOpen tool