Robots.txt Generator
Generate and configure robots.txt directives to guide search engine crawlers and web bots.
Crawler Directives
Restricted Directories
Paths blocked from web crawler indexing
The Allow: directive takes precedence over Disallow: when granting access to specific subfolders within a blocked directory.
Generated Preview
User-agent: * Disallow: /admin/ Disallow: /private/ Disallow: /api/v1/internal/ Disallow: /tmp/ Allow: /admin/public-docs/ Sitemap: https://example.com/sitemap.xml
How to Use Robots.txt
Follow these steps to deploy crawler directives to your domain accurately.
Specify User-Agent Rules
Designate which search engine spiders follow the policy. Use wildcard * to govern all crawlers, or specify individual bots like Googlebot.
Define Restricted Paths
Block internal endpoints, staging environments, sensitive admin directories, or search result queries with explicit Disallow: lines.
Upload to Root Directory
Save the generated output as robots.txt and place it strictly in your domain's web root: https://yourdomain.com/robots.txt.
Related Developer Utilities
Complementary SEO and code structure utilities
Meta Tag Generator
Construct OpenGraph, Twitter card, and SEO meta tags effortlessly.
URL Encoder / Decoder
Safely escape and encode URL query strings and URI components.
HTML Formatter
Beautify and indent unstructured markup or minify for production.
JSON Validator
Validate payloads, inspect schema mismatches, and fix syntax errors.
Prepare crawler rules
Choose a user agent and allowed or disallowed paths. Add a sitemap URL, then copy or download the file.
Example
Disallow: /private/ asks matching crawlers not to crawl that path.
Before you use the result
robots.txt is not access control. Private pages still need authentication, and blocked pages can sometimes appear in search.