🤖 Robots.txt Generator

Draft robots.txt user-agent rules and sitemap references, with optional crawl-delay for crawlers that support it. Review the generated file for your site; Google ignores crawl-delay.

User-agent: *
Allow: /

How to Use the Robots.txt Generator

Use the Quick Presets for common configurations, or build custom rules by adding user-agent blocks with allow/disallow paths. Add your sitemap URL(s) to help search engines discover the listed URLs. When finished, click Download to save the file and upload it to your website's root directory.

Robots.txt Syntax Reference

Common Mistakes to Avoid

Frequently Asked Questions

A robots.txt file requests crawling restrictions from compliant crawlers. It belongs at the origin root, does not prevent access, and does not guarantee that blocked URLs stay out of search. Protect private content with authentication; let crawlers access a page if they need to read its noindex directive.
Rules are generated locally. Publishing robots.txt makes its paths publicly readable, so do not put secrets in them. The website itself still makes ordinary resource requests.
No. Google needs to access CSS and JS files to render your pages properly. Blocking them can prevent Google from understanding your page layout and content, which may negatively impact your rankings.
Some crawlers support crawl-delay, with crawler-specific interpretation. Google ignores it. Search Console no longer provides a crawl-rate setting; Google documents temporary 503 or 429 responses for an emergency slowdown, not an indefinite crawl-control solution.
Common mistakes include unintentionally blocking useful pages or rendering resources, publishing malformed rules or sitemap URLs, treating robots.txt as access control, and deploying without testing. A sitemap reference is optional, and a blocked URL can still appear in search.