User-agent: * Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/plugins/ Disallow: /wp-content/themes/ Disallow: /wp-login.php Disallow: /wp-register.php Disallow: /readme.html Disallow: /license.txt Disallow: /cgi-bin/ # Allow crawling of admin-ajax.php for AJAX functionality Allow: /wp-admin/admin-ajax.php # Allow Googlebot and other search engines to crawl CSS and JS files User-agent: Googlebot Allow: /wp-content/ Allow: /wp-includes/ # Optional: Block specific bots known for scraping User-agent: AhrefsBot Disallow: / User-agent: SemrushBot Disallow: /