robots.txt Generator
Create a robots.txt file for your website to control how search engines crawl your pages.
Presets:
Rules
User-agent: *
Disallow: /admin/
Disallow: /private/robots.txt - Technical Details
The robots.txt file tells web crawlers which URLs they can access on your site. It's placed at the root of your domain (e.g., example.com/robots.txt). While crawlers should respect these rules, they are not enforceable—use authentication for truly private content.
Command-line Alternative
# Test your robots.txt\ncurl https://example.com/robots.txt\n\n# Check if a URL is blocked\n# Use Google Search Console's robots.txt Tester