Robots.txt Generator

Build a valid robots.txt file with per-bot crawl rules, one-click AI crawler blocking, and sitemap links — then download it straight to your site root.

Crawler Rule Groups

robots.txt Preview

Free Robots.txt Generator — Control Search Engine & AI Crawlers

Our free robots.txt generator builds a syntactically valid robots.txt file in seconds — no need to memorize directive syntax or hand-edit plain text. Add rule groups for specific crawlers, block sensitive paths, list your sitemap, and download a file ready to drop into your site's root directory.

What Is robots.txt?

robots.txt is a plain-text file placed at the root of your domain (https://example.com/robots.txt) that tells well-behaved web crawlers which parts of your site they may or may not request. It uses a small set of directives — User-agent, Disallow, Allow, and Sitemap — grouped into rule blocks that apply to specific bots or to all crawlers via the * wildcard.

It's important to understand that robots.txt is an advisory, not a security control. Compliant crawlers (Googlebot, Bingbot) respect it, but nothing stops a malicious scraper from ignoring it entirely — never rely on robots.txt alone to protect private data.

Blocking AI Crawlers

Since the rise of large language models, a growing list of AI companies operate crawlers that scrape web content for model training or live retrieval — OpenAI's GPTBot and ChatGPT-User, Common Crawl's CCBot (a major source for open training datasets), Google's Google-Extended (governs Gemini/AI training, separate from regular Search indexing), Anthropic's ClaudeBot and anthropic-ai, and Perplexity's PerplexityBot, among others. Use the "Block AI Crawlers" preset above to instantly add a disallow-all rule group for the most common ones, or add/remove individual user-agents to fit your policy.

How to Use This Generator

  1. Start from a preset (Allow All, Block All, or Block AI Crawlers) or build from scratch.
  2. Add rule groups — each group targets one user-agent (or * for everyone) with its own Disallow/Allow paths.
  3. List your sitemap so crawlers can discover it without guessing the URL.
  4. Copy or download the generated file and upload it to your site's root as /robots.txt.

A Note on Crawl-delay

The Crawl-delay directive asks a bot to wait N seconds between requests. Bingbot and several other crawlers honor it, but Google's crawlers ignore it entirely — Google recommends adjusting crawl rate through Search Console instead. It's included here for completeness and for crawlers that do respect it.

Frequently Asked Questions

1. Where do I upload the robots.txt file?

It must sit at the root of your domain, e.g. https://example.com/robots.txt. A copy inside a subfolder like /blog/robots.txt is ignored by crawlers.

2. Will blocking a path in robots.txt remove it from Google?

Not reliably. Disallowing a URL stops Google from crawling it, but if the URL is already linked elsewhere it can still appear in search results without a description. To fully remove a page from indexing, use a noindex meta tag or HTTP header instead — but note that Googlebot must be able to crawl a page to see a noindex tag, so don't combine both on the same URL.

3. Can I have multiple rule groups for the same user-agent?

Yes, though most crawlers merge them. It's clearer to keep one rule group per user-agent with all its Disallow/Allow rules listed together, which is how this generator structures its output.

4. Is this tool free, and does it store my data?

It's completely free, and the entire file is generated client-side in your browser — nothing you type is sent to or stored on any server.