Robots.txt Generator
Build a robots.txt file instantly by configuring user-agent rules, allow and disallow paths, crawl-delay, and your sitemap URL.
Configure Rules
User-Agent Rules
Generated robots.txt
Copied to clipboard!
Quick Presets
Summary
Build a robots.txt file instantly by configuring user-agent rules, allow and disallow paths, crawl-delay, and your sitemap URL.
How it works
- Choose the user-agent (all bots or a specific crawler such as Googlebot).
- Add disallow paths for directories or pages you want to block from crawlers.
- Add allow paths to explicitly permit access within a blocked directory.
- Optionally set a crawl-delay to limit how fast crawlers access your site.
- Enter your sitemap URL so search engines can find it automatically.
- Copy or download the generated robots.txt and place it at your domain root.
Use cases
- Block search engines from indexing staging or admin directories.
- Allow Googlebot to access specific pages inside an otherwise blocked folder.
- Limit aggressive bots with a crawl-delay to protect server resources.
- Point crawlers to your XML sitemap for faster and more complete indexing.
- Prevent duplicate content issues by disallowing filtered or faceted URLs.
- Create separate rule sets for different crawlers in a single file.
- Protect private or login-only areas from being listed in search results.
- Quickly audit and regenerate a clean robots.txt when moving to a new domain.
Frequently Asked Questions
Last updated: 2026-06-10 ·
Reviewed by Nham Vu