Robots.txt Generator

Control what search engines crawl — build a valid robots.txt in 30 seconds.

Quick answer: Free robots.txt generator: allow or block search engines, disallow private folders, add sitemap URL. Copy-paste ready for your site root.

How to use

  1. Open this page on any device — no signup needed.
  2. Fill in the fields above.
  3. Get your result instantly — nothing is uploaded.

About this tool

robots.txt lives at your domain root and tells crawlers which paths they may fetch. Disallow hides pages from crawling (not indexing) — for true de-indexing use noindex. Every site should also declare its XML sitemap here. Block only what genuinely needs blocking: admin paths, cart, internal search results.

FAQ

Where does robots.txt go?
At the domain root: https://example.com/robots.txt — exactly one per domain.
Does Disallow stop pages appearing on Google?
No — Disallow stops crawling. To remove from results use a noindex meta tag (which requires crawling).
Should I block AI bots?
Optional: GPTBot, CCBot and others can be blocked with specific user-agent rules.