Robots.txt Generator

Configure crawler directives for search engines and AI bots. Export a ready-to-use robots.txt file.

Quick Presets

Sitemap URLs

Enter one sitemap URL per line.

AI Bot Control

Control which AI crawlers can access your content for training. By default, AI bots are allowed.

Crawler Rules

Generated robots.txt

# robots.txt generated by MySEOStack
# https://myseostack.com

User-agent: *
Disallow:

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

What is a robots.txt File?

A robots.txt file is a simple text file that tells search engine crawlers which pages or sections of your website they can or cannot access and index. It's placed in the root directory of your website and follows the Robots Exclusion Protocol.

This file is crucial for SEO because it helps you control how search engines interact with your website, prevent duplicate content issues, manage crawl budget, and protect sensitive areas of your site from being indexed.

Basic Syntax

  • User-agent: Specifies which crawler the rules apply to (e.g., Googlebot, Bingbot, or * for all)
  • Disallow: Tells crawlers which paths they should not access
  • Allow: Explicitly permits crawling of specific paths (used to override Disallow rules)
  • Sitemap: Points to your XML sitemap location
  • Crawl-delay: Sets a delay between requests (not supported by all crawlers)

Frequently Asked Questions

What is a robots.txt file?

+

Where should I place my robots.txt file?

+

Should I block all search engines from my website?

+