Robots.txt Generator

Leave blank if you don't have.

Google
Google Image
Google Mobile
MSN Search
Yahoo
Yahoo MM
Yahoo Blogs
Ask/Teoma
GigaBlast
DMOZ Checker
Nutch
Alexa/Wayback
Baidu
Naver
MSN PicSearch

The path is relative to the root and must contain a trailing slash "/".

The Robots.txt Generator creates a properly formatted robots.txt file, which tells search engine crawlers which parts of your site they're allowed or disallowed from crawling.

What Robots.txt Actually Controls (and What It Doesn't)

Robots.txt is a crawling directive, not a security or privacy mechanism — it tells well-behaved crawlers like Googlebot which paths to avoid requesting, but it doesn't password-protect content, and it doesn't guarantee a page stays out of search results (a disallowed page can still appear in search results without a description if other sites link to it). It also can't stop malicious bots that simply ignore the file entirely, since compliance is voluntary.

Common Directives and What They Do

  • User-agent — specifies which crawler the following rules apply to (using * applies rules to all crawlers).
  • Disallow — blocks a crawler from requesting a specific path, commonly used for admin areas, internal search results, or duplicate content paths.
  • Allow — explicitly permits crawling of a path, often used to carve out an exception within a broader disallowed directory.
  • Sitemap — points crawlers directly to your sitemap.xml location, helping them discover your site's full URL structure more efficiently.

A Common Mistake Worth Avoiding

Blocking a page in robots.txt does not remove it from search results if it's already indexed and linked from elsewhere — for genuine removal, a noindex meta tag (which requires the page to be crawlable) or Search Console's removal tool is the correct approach instead.

100+ Free SEO Tools — No Signup Needed

Keyword research, backlink checker, plagiarism detector, meta tags & more. All free, all instant.

Explore All Tools
Cookie
We care about your data and would love to use cookies to improve your experience.