🤖 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
- User-agent: * — Applies to compliant crawlers without a more specific matching user-agent group
- Disallow: /private/ — Blocks crawling of the /private/ directory
- Allow: /private/public-page.html — Overrides a Disallow for a specific page
- Crawl-delay: 10 — Wait 10 seconds between requests (not supported by Google)
- Sitemap: — Points crawlers to your XML sitemap for better discoverability
Common Mistakes to Avoid
- Blocking CSS/JS files that Google needs to render your pages
- Using robots.txt to hide sensitive content (use authentication; noindex excludes crawlable pages from search but does not protect access)
- Blocking pages you intend crawlers to fetch, or publishing an incorrect sitemap URL
- Placing robots.txt below the root path of the applicable host and protocol
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.