Free Tool

Free Robots.txt Generator.

Build a robots.txt file with user-agent groups, allow and disallow rules and sitemap references.

robots.txt

robots.txt controls crawling, not indexing. Never use “Block everything” on a live website.

What it does

robots.txt tells crawlers which parts of a site they may crawl. It does not hide pages from search results on its own — for that, use a noindex directive — and a mistake can stop a whole site from being crawled.

Example

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://example.com/sitemap.xml

How to use it

  1. Start from a preset or the default “allow everything” rule.
  2. Add user-agent groups and the paths to allow or disallow, one per line.
  3. Add your sitemap URL(s).
  4. Copy the result into a file named robots.txt at the root of your domain.

Robots.txt Generator FAQ

Can’t find what you are looking for? Get in touch and we will be happy to help.

Not reliably. It controls crawling. Use a noindex meta tag or header to keep a page out of search results.

Related services

Need help implementing it?

More free tools

Explore all six free developer and marketing tools.

Learn More
Blog

Related articles

Practical guides on web development, e-commerce, performance and security.

View All Articles
A Practical Website Performance Checklist
Performance

A Practical Website Performance Checklist

A practical checklist for faster websites — images, caching, scripts, fonts and hosting — and how…

Read More

Have a Web Project in Mind?

From corporate websites and e-commerce stores to custom web applications, tell us what you want to build.