All tools are free, but if they have helped you, buy me a coffee ☕
🚀 ToolsyKit

Your Hub for Free Online Tools

🤖 Robots.txt Generator

Generate a custom robots.txt file to control how search engines crawl your website. Use templates or configure manually to block specific pages, set crawl delays, and specify sitemaps.

📋 Quick Templates
🌐
Default
Allow all crawlers
📝
WordPress
Common WP rules
🛒
E-commerce
Block checkout/cart
🔒
Strict
Block all crawlers
⚙️ Configuration
Specify which crawler this applies to (* = all)
Location of your XML sitemap
Paths to block (comma-separated)
Paths to explicitly allow (comma-separated)
Delay between requests (optional)
Your primary domain (optional)
📄 Generated Robots.txt
# Click "Generate Robots.txt" to create your file

📖 Robots.txt Guide

  • User-agent: Specifies which crawler the rules apply to (* = all)
  • Disallow: Paths that crawlers should not access
  • Allow: Paths that are explicitly allowed (overrides Disallow)
  • Sitemap: Location of your XML sitemap for better indexing
  • Crawl-delay: Minimum delay between requests (not supported by all bots)

📋 How to Use the Robots.txt Generator

  1. Set the user-agent. Use * for all crawlers.
  2. Enter the paths to disallow and any paths to allow.
  3. Add your sitemap URL and, if needed, a crawl delay.
  4. Generate the file, then download it and upload it as robots.txt to the root of your domain.

🎯 When to Use It

  • Keeping crawlers out of admin, staging or internal search pages.
  • Pointing search engines to your sitemap.
  • Creating a starter robots.txt for a new site.

💡 Tips & Common Pitfalls

  • robots.txt asks crawlers not to visit pages. It does not hide them, and a blocked URL can still appear in search results if it is linked from elsewhere.
  • Use a noindex tag, not robots.txt, to keep a page out of the index. Google must be able to crawl the page to see that tag.
  • Do not block CSS and JavaScript files that pages need to render.
  • Google ignores the crawl-delay directive, though some other crawlers honour it.

❓ Frequently Asked Questions

What is a robots.txt file?

Robots.txt is a text file placed in your website's root directory that tells search engine crawlers which pages they can or cannot access.

Where should I place robots.txt?

Place robots.txt in your website's root directory (e.g., https://example.com/robots.txt). It must be in the root to be recognized by crawlers.

What should I block in robots.txt?

Block admin areas, private directories, duplicate content, and pages you don't want indexed. Don't block CSS/JS as Google needs them to render pages.

Does robots.txt guarantee blocking?

No. Robots.txt is a suggestion, not enforcement. Well-behaved bots follow it, but malicious bots may ignore it. Use password protection for sensitive content.

🔧 All Tools ⚠ Any Issues?