Robots.txt Generator
Build a valid robots.txt file in seconds — control crawler access, block unwanted bots, set crawl delays and point to your sitemap.
Free · No credit card · 50 credits/day
Robots.txt directives explained
User-agent
Specifies which crawler the rules apply to. Use * for all crawlers, or a specific bot name like Googlebot, Bingbot, or GPTBot for targeted rules.
Allow
Explicitly permits crawling of a URL or path, even when a broader Disallow rule would block it. Useful for allowing a specific file inside a blocked directory.
Disallow
Prevents the specified crawler from accessing a URL or directory. Disallow: / blocks all pages; Disallow: /admin/ blocks the entire admin section.
Crawl-delay
Requests the crawler waits N seconds between requests. Reduces server load. Respected by Bing and Yandex; Google ignores it — use Search Console for Google's crawl rate.
Sitemap
Points crawlers to your XML sitemap URL. Declare Sitemap: https://example.com/sitemap.xml at the bottom of your robots.txt to help crawlers discover your full URL list.
Wildcards
Use * to match any sequence of characters and $ to match the end of a URL. Example: Disallow: /*.pdf$ blocks all PDF files across the site.
⚠️ robots.txt is not a security measure
Disallowing a URL in robots.txt doesn't stop all bots — malicious scrapers ignore it entirely. Sensitive pages (admin panels, private APIs) must be protected by authentication. Use noindex meta tags to prevent pages from appearing in search results even if they're crawled.
Frequently asked questions
Related SEO tools
Complete your technical SEO setup.
Control what crawlers see
Free account. 50 credits per day. Access to 75+ tools instantly.
Create free account →