🤖

Robots.txt Generator

Build a robots.txt file with crawl and sitemap rules

🎯 SEO ToolsFreeRuns in your browser
2 lines
Where to put it: serve this file at the domain root, for example https://example.com/robots.txt. A disallow rule prevents crawling, not indexing — use noindex when a page must stay out of search results.

About the Robots.txt Generator

The Robots.txt Generator writes crawl rules for search engine bots. Add your sitemap, block private folders, or stop all crawling while a site is under construction.

A robots file is a public document, so never list secret admin paths as a way to hide them. Use authentication for protection and reserve robots rules for crawl guidance.

  • ✓Multiple user agents at once
  • ✓Allow, disallow, and crawl-delay directives
  • ✓Optional sitemap reference

How to use the Robots.txt Generator

  1. 1

    Set the user agents the rules apply to.

  2. 2

    Add disallow and allow paths, plus a sitemap URL.

  3. 3

    Copy the file to the root of your domain.

Frequently asked questions

Does disallow remove a page from Google?+

No. It only asks crawlers not to fetch the URL. A blocked page can still be indexed from links, so use a noindex tag when the page must stay out of results.

Where exactly does robots.txt go?+

It must be served from the domain root, such as https://example.com/robots.txt. Rules do not apply across subdomains or subdirectories.

Save Robots.txt Generator to your favorites, or keep browsing seo tools.

Browse all 26 seo tools →