Robots.txt Generator

Create a robots.txt file for your website to control search engine crawling.

What is robots.txt?

A robots.txt file tells search engine crawlers which pages or sections of your site to crawl or avoid crawling. It's placed in your website's root directory (e.g., tyzo.in/robots.txt).

Best for: Website owners, SEO specialists, developers.

Common templates

Allow all crawlers (default for most sites)

User-agent: *
Allow: /

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

✅ Use this for public websites you want indexed.

Block all crawlers (development/staging sites)

User-agent: *
Disallow: /

⚠️ Use only for development or private sites.

Block specific directories

User-agent: *
Disallow: /admin/
Disallow: /wp-admin/
Disallow: /private/
Allow: /public/

✅ Common for WordPress and admin sections.

Common mistakes to avoid

Best practices

Frequently asked questions

Does robots.txt remove pages from Google index?

No. It only prevents crawling. Pages already indexed may stay. Use noindex meta tags to remove from index.

What's the difference between Disallow and noindex?

Disallow = don't crawl the page. noindex = don't show in search results. For sensitive pages, use both or password protection.

Do I need a robots.txt file?

Not necessarily. If you don't have one, Google will crawl everything. It's only needed if you want to block specific sections.

Related tools