User-agent: * Disallow: /wp-admin/ Disallow: /wp-includes/ User-agent: Googlebot Disallow: /wp-admin/ Disallow: /wp-includes/ Crawl-delay: 10 User-agent: Bingbot Disallow: /wp-admin/ Disallow: /wp-includes/ Crawl-delay: 10 User-agent: serpstatbot Disallow: / # Enhanced robots.txt for WordPress # Last updated: 2025 # Block all bots from sensitive WordPress areas User-agent: * Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/plugins/ Disallow: /wp-content/cache/ Disallow: /wp-content/themes/ Disallow: /wp-json/ Disallow: /xmlrpc.php Disallow: /wp-login.php Disallow: /wp-register.php Disallow: /wp-config.php Disallow: /readme.html Disallow: /license.txt Disallow: /wp-trackback.php Disallow: /feed/ Disallow: /comments/feed/ Disallow: /trackback/ Disallow: /*?* Disallow: /*? Disallow: /search/ Disallow: /?s= Disallow: /author/ Crawl-delay: 5 # Allow major search engines with specific rules User-agent: Googlebot Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/plugins/ Disallow: /wp-content/cache/ Disallow: /wp-json/ Disallow: /xmlrpc.php Disallow: /wp-login.php Disallow: /*?* Allow: /wp-content/uploads/ Crawl-delay: 3 User-agent: Bingbot Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/plugins/ Disallow: /wp-content/cache/ Disallow: /wp-json/ Disallow: /xmlrpc.php Disallow: /wp-login.php Disallow: /*?* Allow: /wp-content/uploads/ Crawl-delay: 5 # Block aggressive SEO/marketing bots User-agent: AhrefsBot Disallow: / User-agent: SemrushBot Disallow: / User-agent: MJ12bot Disallow: / User-agent: DotBot Disallow: / User-agent: serpstatbot Disallow: / User-agent: BLEXBot Disallow: / User-agent: PetalBot Disallow: / User-agent: YandexBot Crawl-delay: 10 Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/plugins/ # Block social media bots that can be resource intensive User-agent: facebookexternalhit Crawl-delay: 5 User-agent: Twitterbot Crawl-delay: 5 # Block AI training bots (optional - remove if you want AI to crawl) User-agent: GPTBot Disallow: / User-agent: ChatGPT-User Disallow: / User-agent: CCBot Disallow: / User-agent: anthropic-ai Disallow: / User-agent: Claude-Web Disallow: / # Sitemap location (update with your actual sitemap URL) Sitemap: https://yoursite.com/sitemap.xml