Robots.txt Generator

Free robots.txt generator — create and validate robots.txt files for your website. Control crawler access easily.

Click "Generate" to create your robots.txt.

Introduction

Robots.txt Generator helps you create a valid robots.txt file for your website. Control which search engine crawlers can access which parts of your site.

Examples

Basic robots.txt

User-agent: *
Allow: /
Sitemap: https://example.com/sitemap.xml

Block specific paths

User-agent: *
Disallow: /admin/
Disallow: /private/
Sitemap: https://example.com/sitemap.xml

Frequently Asked Questions

Where should I place robots.txt?

Place it in your website’s root directory (e.g., https://example.com/robots.txt).

Can robots.txt prevent all crawling?

No, robots.txt is a directive that well-behaved crawlers follow. It is not a security measure.

Related Tools