Allow everything, block the whole site, or list specific paths.
2
Add the sitemap
One absolute URL, so crawlers can find the pages you want indexed.
3
Copy the file
Plain text, served from the site root at /robots.txt.
robots.txt is a request, not a lock
The file tells cooperative crawlers what not to fetch. It does not hide anything: the URLs are still public to anyone who knows them, and a scraper that ignores the file will read everything. Never rely on a Disallow line to protect a page with personal data or an admin panel.
Protection is a password, an IP allowlist, or simply not publishing the page. If the content should not appear in search results but must stay public, use a noindex meta tag or header instead, because a Disallowed URL cannot be crawled and therefore the noindex is never seen.
Paths, wildcards and grouping
A Disallow line takes a path prefix: /admin/ blocks everything under it, while /admin also blocks /administrator. Wildcards and end anchors are supported by the major crawlers, and this generator keeps the path exactly as you typed it so you can add them yourself.
Rules are grouped by User-agent. A group for * applies to every crawler that has no group of its own, and a crawler obeys only the most specific group that matches it. That is why an empty Disallow: under * means allow everything, and why mixing groups from different SEO plugins produces rules nobody intended.
The sitemap line
A Sitemap line in robots.txt is how a crawler discovers your sitemap without you submitting it. It must be an absolute URL, and it can be repeated for several sitemaps. It does not guarantee crawling, and it is not required if the sitemap is already submitted in Search Console.
The file must be served as plain text at the site root, with no redirect, or crawlers may not read it. A typo in the file is usually ignored silently rather than reported, which is why it is worth checking with the search engine's own robots.txt report after publishing. For the pages themselves, the meta tag generator handles the head.
Frequently asked questions
Can robots.txt hide a page?No. It asks crawlers not to fetch it; the page is still public and can be linked or scraped.How do I remove a page from Google?Use a noindex tag or header, and let the crawler fetch the page. A Disallow prevents the noindex from being seen.Do wildcards work?The major crawlers support * and $, but support is not universal. This generator leaves your paths exactly as typed.Is Crawl-delay supported?Some crawlers honour it, Google ignores it. It is not included in the generated file.Where does the file go?At the site root, served as text/plain at /robots.txt, with no redirect.Is anything uploaded?No. The file is assembled in this tab from your choices.