Robots.txt Generator

Choose a preset or add your own rules to build a robots.txt file telling crawlers which parts of your site to avoid. Add your sitemap address so search engines can find it.

Loading the tool…

How it works

  • Rules are grouped under each User-agent in the order you enter them. Paths must start with / . Sitemap lines must be absolute URLs.
  • Runs entirely in your browser: what you paste is not sent anywhere.

Assumptions and limits

  • robots.txt is a request, not security: it does not stop access and it publicly lists paths. Do not use it to hide private pages: use authentication. “Disallow: /” blocks the whole site from well-behaved crawlers. Google ignores crawl-delay.

Frequently asked questions

Does Disallow remove a page from Google?

Not reliably. Blocked pages can still be indexed from links. Use noindex or authentication to keep pages out.

Related tools

Last reviewed 2026-10-28. More developer, web & seo tools tools. See the disclaimer.

Report a problem with this tool