Skip to main content
Back to Robots.txt Generator

Robots.txt Generator — Help & Documentation

Generate custom robots.txt files to control search engine crawling. Includes pre-built templates for WordPress, e-commerce, and other common platform types.

Features
  • Pre-built templates for common platforms
  • Custom rule creation
  • Syntax validation and error checking
  • Sitemap URL integration
  • Bot-specific directives
  • Comments and documentation support

Robots.txt Directives
DirectiveDescriptionExample
User-agentSpecifies which bot the rules apply toUser-agent: *
DisallowPrevents crawling of specified pathsDisallow: /admin/
AllowExplicitly allows crawling (overrides Disallow)Allow: /public/
SitemapPoints to XML sitemap locationSitemap: https://example.com/sitemap.xml
Crawl-delaySets delay between requests in secondsCrawl-delay: 10

Common Templates
WordPress
User-agent: *
Disallow: /wp-admin/
Disallow: /wp-includes/
Allow: /wp-admin/admin-ajax.php
Sitemap: https://yoursite.com/sitemap.xml
E-commerce
User-agent: *
Disallow: /cart/
Disallow: /checkout/
Disallow: /account/
Disallow: /search?
Sitemap: https://yourstore.com/sitemap.xml

Best Practices
Do
  • Block admin and private areas
  • Include sitemap URL
  • Use specific bot directives when needed
  • Test your robots.txt file
  • Keep it simple and clear
Don't
  • Block important SEO pages
  • Use robots.txt for security purposes
  • Block CSS or JavaScript files
  • Forget to update after site changes
  • Use wildcard patterns incorrectly

Testing Your Robots.txt
Common Bots
  • Googlebot: Google's web crawler
  • Bingbot: Bing's search crawler
  • Slurp: Yahoo's web crawler
  • DuckDuckBot: DuckDuckGo crawler
  • FacebookExternalHit: Facebook's link preview bot
Cookie Consent

We use essential cookies to keep you logged in and functional cookies to remember your preferences. With your consent, we also use Google Analytics to understand how the site is used. Learn more