SEO Tools

Robots.txt Generator

Generate a robots.txt file to control search engine crawler access.

Robots.txt Settings

Global Crawler Rules (User-agent: *)

SEO & AI Scraper Toggles

Sitemaps

Custom Crawler Blocks

Generated robots.txt
Loading robots.txt...

What is the Robots.txt Generator?

The Robots.txt Generator provides a simple visual interface to create rules that tell search engines like Google and Bing which parts of your website they are allowed to crawl.

How to Use

  1. Select the default access policy (Allow all, Disallow all, or Custom).
  2. Add specific User-Agents if you want to target specific bots (like Googlebot-Image).
  3. Add `Allow` and `Disallow` directory paths (e.g., `/admin/` or `/private/`).
  4. Optionally set a Crawl-delay and paste your XML Sitemap URL.
  5. Copy the generated text and save it as `robots.txt` in your web server\'s root folder.

Common Use Cases

  • Preventing Google from crawling your WordPress `/wp-admin/` dashboard.
  • Blocking aggressive AI scrapers or specific bots from consuming your server bandwidth.
  • Ensuring search engines can easily locate your `sitemap.xml` file.

Key Benefits

  • Eliminates syntax errors that could accidentally block your entire site from Google.
  • Generates standard, compliant rules instantly.
  • No backend server required—everything is processed instantly in your browser.

Frequently Asked Questions

What is robots.txt?

robots.txt is a text file placed at the root of a website that instructs search engine crawlers which pages they should or should not access.

Where do I put the robots.txt file?

You must place the robots.txt file in the very top-level root directory of your website. For example: https://yourdomain.com/robots.txt.

What does User-agent: * mean?

The asterisk (*) is a wildcard. User-agent: * means the rules apply to all search engine bots (Googlebot, Bingbot, etc.) trying to crawl your site.

Does Disallow mean my page won\'t be indexed?

Not necessarily. Disallow tells crawlers not to read the page, but if another site links to it, Google might still index the URL. To block indexing completely, use a noindex meta tag.

What is a Crawl-delay?

Crawl-delay asks bots to wait a specific number of seconds between requests. This is useful for preventing aggressive bots from overwhelming a slow or low-budget server.

Do all bots obey robots.txt?

No. robots.txt is a voluntary standard. While legitimate search engines like Google and Bing respect it strictly, malicious bots and scrapers will ignore it entirely.

Should I put my XML Sitemap in my robots.txt?

Yes! It is an SEO best practice to include a Sitemap: https://yourdomain.com/sitemap.xml directive at the bottom of the file so crawlers can easily discover it.

How do I block a specific folder?

You can use the Disallow: /foldername/ directive. This tells compliant crawlers to ignore the folder and everything inside it.

Can I allow access to a specific file inside a disallowed folder?

Yes. You can use the Allow directive. For example, Disallow: /images/ followed by Allow: /images/logo.png.

Is it okay to not have a robots.txt file?

Yes, if a bot doesn\'t find a robots.txt file, it assumes it has permission to crawl the entire site. However, having one is highly recommended for SEO.

Discover More Tools

Explore our full collection of free, privacy-first developer and SEO tools.

Browse All 134+ Tools