Robots.txt Generator

Control which search bots can crawl your site. Generate instantly, free.

Quick Presets
Start with a common configuration
Global Settings
Sitemap and crawl settings
Helps search engines discover your pages faster
Bot Rules
Define which bots can access which paths
Generated robots.txt
Upload this file to your website root folder
robots.txt
# Configure your rules above and click Generate

Free Robots.txt Generator — Control Your Site's Crawlability

The HB Tools Robots.txt Generator lets you create a professional robots.txt file in seconds. Control which search engine bots can access which pages on your site — without writing a single line of code manually.

What is a Robots.txt File?

A robots.txt file is a plain text file placed at the root of your website (e.g., https://yourdomain.com/robots.txt). It uses the Robots Exclusion Protocol to tell search engine crawlers which URLs they may and may not visit on your site.

Search engines like Google, Bing, and others check this file before crawling your site. If a URL is disallowed, well-behaved bots will skip it.

Key Directives Explained

Best Practices

Frequently Asked Questions

A robots.txt file is a text file placed at the root of your website that tells search engine crawlers which pages or sections they are allowed or not allowed to visit.
The robots.txt file must be placed in the root directory of your website, accessible at https://yourdomain.com/robots.txt. It will not work if placed in a subdirectory.
No. Robots.txt is a directive, not a technical block. Well-behaved bots like Googlebot follow it, but malicious bots may ignore it entirely. For sensitive pages, use server-side authentication.
Disallow: / tells the specified bot not to crawl any page on your website. This effectively blocks the bot from indexing your entire site.
Yes. Adding your sitemap URL in robots.txt helps search engines discover your site structure faster. Use the format: Sitemap: https://yourdomain.com/sitemap.xml
Crawl-delay tells the bot to wait a specified number of seconds between requests. This reduces server load. Note: Googlebot ignores Crawl-delay — use Google Search Console to control Google's crawl rate instead.
Copied!