# Block access to certain WordPress admin files User-agent: * Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/plugins/ Disallow: /wp-content/themes/ Disallow: /wp-content/cache/ Disallow: /wp-json/ Disallow: /trackback/ Disallow: /xmlrpc.php Disallow: /feed/ Disallow: /comments/ Disallow: /cgi-bin/ # Allow access to specific admin-ajax.php for functionality Allow: /wp-admin/admin-ajax.php # Block WordPress login page Disallow: /wp-login.php Disallow: /wp-signup.php # Block search result pages (to avoid duplicate content issues) Disallow: /?s= Disallow: /search/ # Allow all content directories User-agent: * Allow: /wp-content/uploads/ # Block other unnecessary files from being crawled Disallow: /?author= Disallow: */trackback/ Disallow: */comments/ Disallow: */comment-page-*/ # Specify sitemap location Sitemap: https://www.ablogtohome.com/sitemap_index.xml # Crawl-delay for Bingbot (useful for reducing server load) User-agent: Bingbot Crawl-delay: 10 # Block all crawlers from accessing specific sensitive files User-agent: * Disallow: /readme.html Disallow: /license.txt Disallow: /wp-config.php Disallow: /error_log Disallow: /php.ini Disallow: /phpinfo.php # Ensure the site is optimized for performance and security while allowing necessary pages to be crawled effectively.