best

Robots.txt Generatorbest

Generate a robots.txt file with a visual builder.

Rule 1
User-agent: *
Allow: /
Disallow: /admin

Sitemap: https://example.com/sitemap.xml

How to use Robots.txt Generator

1

Select Your Disallow Rules

Click the 'Add Rule' button in the left panel. Choose 'User-agent' dropdown and select the bot type (Googlebot, Bingbot, or *). Toggle the 'Disallow' switch and enter the directory path (e.g., /admin or /private). Repeat for multiple paths.

2

Configure Allow Exceptions

Click 'Add Allow Rule' beneath your disallow entries. This lets specific pages be crawled even if the parent directory is blocked. Enter exact paths like /admin/public-page/ in the text field.

3

Set Crawl Delay and Request Rate

Scroll to the 'Advanced Settings' section. Enter a numeric value in the 'Crawl-delay' field (recommended 1-5 seconds). Set 'Request-rate' to control requests per 30 seconds using the ratio format (e.g., 10/30).

4

Add Sitemap Location

Click the 'Sitemap' field at the bottom. Paste your complete sitemap URL (e.g., https://example.com/sitemap.xml). This tells crawlers where to find all your indexed pages.

5

Preview and Download Your File

Check the live preview pane on the right showing your robots.txt syntax. Click the blue 'Download' button to save as robots.txt file. Upload to your website root directory via FTP or file manager.

Frequently Asked Questions

Related Tools