Robots.txt Generator
Generate a WordPress-optimized robots.txt — block sensitive WP paths, point crawlers to your XML sitemap and protect crawl budget in one click.
Free · No credit card · 50 credits/day
What gets included and why
Block /wp-admin/
Prevents crawlers from indexing admin pages. Keeps crawl budget for public content. Note: admin-ajax.php is explicitly allowed as plugins require it.
Block /wp-includes/
WordPress core PHP, JS and CSS files have no SEO value. Blocking prevents crawl budget waste on hundreds of internal core files.
Sitemap directive
Adds Sitemap: https://yoursite.com/sitemap_index.xml so all crawlers (not just Googlebot) know where to find your XML sitemap.
SEO plugin sitemap URLs
Pre-configured sitemap paths for Yoast SEO (/sitemap_index.xml), Rank Math (/sitemap_index.xml), AIOSEO (/sitemap.xml) and WP core (/wp-sitemap.xml).
Block sensitive files
Dissuades crawlers from requesting /wp-login.php, /wp-cron.php and /xmlrpc.php — file paths that should not appear in search indexes.
Allow public content
Correctly configured Allow: / and Allow: /wp-content/uploads/ ensures your posts, pages and media remain fully crawlable and indexable.
Frequently asked questions
Related WordPress tools
More tools for WordPress SEO and security.
Protect your crawl budget in one click
Free account. 50 credits per day. Access to 75+ tools instantly.
Create free account →