Plugin Directory

WordPress Robots.txt optimizer (+ XML Sitemap) – Boost SEO, Traffic & Rankings

WordPress Robots.txt optimizer (+ XML Sitemap) – Boost SEO, Traffic & Rankings


Better Robots.txt generates a virtual robots.txt for WordPress, enhancing your website’s SEO (indexation capabilities, Google ranking, etc.) and its loading performance. Our plugin is compatible with Yoast SEO, Rank Math, Google Merchant, WooCommerce, and directory-based network sites (MULTISITE) and features now (2023) exclusive Artificial Intelligence (OpenAI) optimization settings for greater performance.

With Better Robots.txt, you can specify which search engines are permitted to crawl your website and provide clear directives about their allowed activities. You can also set a crawl-delay to shield your hosting server from aggressive scrapers. Better Robots.txt empowers you with complete control over your WordPress robots.txt content through the custom setting box.

Minimize your site’s ecological footprint and the production of greenhouse gas (CO2) associated with its online presence.

According to ChatGPT (OpenAI), the robots.txt produced by the PRO version of Better-Robots.txt is the most sophisticated and comprehensive available on the WEB for a WordPress site.

A quick overview:


Better Robots.txt plugins are available and translated into the following languages: Chinese –汉语/漢語, English, French – Français, Russian –Руссɤɢɣ, Portuguese – Português, Spanish – Español, German – Deutsch.

Did you know that…

  • The robots.txt file is a straightforward text file positioned on your web server that instructs web crawlers (like Googlebot) on whether they should access a file or not.
  • The robots.txt file governs how search engine spiders perceive and engage with your web pages;
  • This file and the bots it communicates with, are integral components of how search engines operate;
  • The initial thing a search engine crawler examines when it visits a page is the robots.txt file;

The robots.txt is a reservoir of SEO potential that’s ready to be tapped into. Give Better Robots.txt a try!

About the Pro version (additional features):

1. Enhance your content visibility on search engines with your sitemap!

Ensure your pages, articles, and products, even the most recent ones, are recognized by search engines!

The Better Robots.txt plugin is designed to integrate with the Yoast SEO plugin and Rank Math (arguably the best SEO Plugin for WordPress websites). It will automatically detect if you are using Yoast SEO / Rank Math and if the sitemap feature is enabled. If so, it will automatically add instructions to the Robots.txt file directing bots/crawlers to review your sitemap for recent changes on your website (allowing search engines to crawl any new content).

If you wish to add your own sitemap (or if you are using a different SEO plugin), you simply need to copy and paste your Sitemap URL, and Better Robots.txt will incorporate it into your WordPress Robots.txt.

2. Safeguard your data and content

Prevent harmful bots from scraping your website and exploiting your data.

The Better Robots.txt plugin assists in blocking most common malicious bots from crawling and scraping your data.

There are both beneficial and harmful bots that crawl your site. Beneficial bots, like Google bot, crawl your site to index it for search engines. However, others crawl your site for more malicious reasons such as repurposing your content (text, price, etc.) for republishing, downloading entire archives of your site, or extracting your images. Some bots have even been reported to crash entire websites due to excessive bandwidth usage.

The Better Robots.txt plugin shields your website against spiders/scrapers identified as harmful bots by Distil Networks.

3. Conceal & safeguard your backlinks

Prevent competitors from discovering your profitable backlinks.

Backlinks, also known as “inbound links” or “incoming links,” are created when one website links to another. The link to an external website is called a backlink. Backlinks are particularly valuable for SEO as they signify a “vote of confidence” from one site to another. Essentially, backlinks to your website signal to search engines that others endorse your content.

If numerous sites link to the same webpage or website, search engines can deduce that the content is link-worthy, and therefore worth displaying on a SERP. Thus, earning these backlinks can positively impact a site’s ranking position or search visibility. In the SEM industry, it’s common for specialists to identify the sources of these backlinks (competitors) to select the best ones and generate high-quality backlinks for their own clients.

Given that creating highly profitable backlinks for a company is time-consuming (time + energy + budget), allowing your competitors to identify and replicate them so easily is a significant loss of efficiency.

Better Robots.txt aids in blocking all SEO crawlers (aHref, Majestic, Semrush) to keep your backlinks hidden.

4. Prevent Spam Backlinks

Bots that populate your website’s comment forms with messages like ‘great article,’ ‘love the info,’ ‘hope you can elaborate more on the topic soon’ or even personalized comments, including the author’s name, are widespread. Spambots are becoming increasingly sophisticated over time, and unfortunately, comment spam links can seriously damage your backlink profile.

Better Robots.txt assists in preventing these comments from being indexed by search engines.

5. Artificial Intelligence at the service of Robots.txt

In 2023, we added a robots.txt optimization feature based on OpenAI’s (ChatGPT) recommendations for any WordPress site. These settings maximize the efficiency of robots.txt for search engines to streamline the crawling of a website. More improvements are on the way…

In 2023, ChatGPT 4, after auditing several million robots.txt files available on the WEB, assessed that the robots.txt deployed by the PRO version of the Better-Robots.txt plugin was the most advanced, comprehensive, and sophisticated configuration currently available for WordPress environments. A point of pride for our team!

6. SEO Tools

In the process of enhancing our plugin, we’ve incorporated shortcut links to two crucial tools for those concerned about their search engine rankings: Google Search Console & Bing Webmaster Tool. If you’re not already utilizing them, you can now manage your website’s indexing while optimizing your robots.txt! We’ve also provided direct access to a Mass Ping tool, enabling you to ping your links on over 70 search engines.

Additionally, we’ve created four shortcut links to some of the best Online SEO Tools, directly accessible through Better Robots.txt SEO PRO. This means you can now check your site’s loading performance, analyze your SEO score, identify your current SERP rankings with keywords & traffic, and even scan your entire website for dead links (404, 503 errors, etc.) directly from the plugin.

7. Stand Out

We thought we could add a unique touch to Better Robots.txt by introducing a feature that lets you “customize” your WordPress robots.txt with your own distinctive “signature.” Many major companies worldwide have personalized their robots.txt by adding proverbs (https://www.yelp.com/robots.txt), slogans (https://www.youtube.com/robots.txt), or even drawings (https://store.nike.com/robots.txt – at the bottom). Why not do the same? That’s why we’ve dedicated a specific area on the settings page where you can write or draw anything you want (really) without affecting your robots.txt efficiency.

8. Prevent Crawling of Redundant WooCommerce Links

We’ve introduced a unique feature that blocks specific links (“add-to-cart”, “orderby”, “filter”, cart, account, checkout, etc.) from being crawled by search engines. Most of these links demand a significant amount of CPU, memory & bandwidth usage (on the hosting server) as they are not cacheable and/or create “infinite” crawling loops (while they are unnecessary).

By optimizing your WordPress robots.txt for WooCommerce when running an online store, you can allocate more processing power to the pages that truly matter and enhance your loading performance.

9. Dodge Crawler Traps

“Crawler traps” are structural issues within a website that lead crawlers to discover a virtually infinite number of irrelevant URLs. In theory, crawlers could get stuck in one part of a website and never finish crawling these irrelevant URLs.

Better Robots.txt aids in preventing crawler traps, which can harm crawl budget and result in duplicate content.

10. Growth Hacking Tools

Today’s fastest-growing companies, including Amazon, Airbnb, and Facebook, have all achieved breakout growth by aligning their teams around a high-velocity testing/learning process. This is referred to as Growth Hacking. Growth hacking is a process of rapidly experimenting with and implementing marketing and promotional strategies that are solely focused on efficient and rapid business growth. Better Robots.txt provides a list of over 150+ tools available online to propel your growth.

11. Robots.txt Post Meta Box for Manual Exclusions

This Post Meta Box allows you to manually set if a page should be visible (or not) on search engines by injecting a dedicated “disallow” + “noindex” rule inside your WordPress robots.txt. Why is this beneficial for your ranking on search engines? Simply because some pages are not meant to be crawled/indexed.

Thank you pages, landing pages, pages containing exclusively forms are useful for visitors but not for crawlers, and you don’t need them to be visible on search engines. Also, some pages containing dynamic calendars (for online booking) should NEVER be accessible to crawlers because they tend to trap them into infinite crawling loops which directly impacts your crawl budget (and your ranking).

12. Ads.txt & App-ads.txt Crawlability

To ensure that ads.txt & app-ads.txt can be crawled by search engines, the Better Robots.txt plugin ensures they are by default allowed in the Robots.txt file regardless of your configuration. For your information, Authorized Digital Sellers for Web, or ads.txt, is an IAB initiative to improve transparency in programmatic advertising.

You can create your own ads.txt files to identify who is authorized to sell your inventory. The files are publicly available and crawlable by exchanges, Supply-Side Platforms (SSP), and other buyers and third-party vendors. Authorized Sellers for Apps, or app-ads.txt, is an extension to the Authorized Digital Sellers standard. It expands compatibility to support ads shown in mobile apps.

More enhancements are always on the way…


  • Better Robots.txt Settings Page
  • Better Robots.txt Settings Page
  • Better Robots.txt Settings Page
  • Better Robots.txt Settings Page
  • Robots.txt file output


September 21, 2023 1 reply
Probabil varianta premium e buna dar asta free este jale de ea
March 29, 2023
My site has gone to the top of some search engines Excellent plug in, my site has increased to near the top in most of the search engines.
Read all 102 reviews

Contributors & Developers

“WordPress Robots.txt optimizer (+ XML Sitemap) – Boost SEO, Traffic & Rankings” is open source software. The following people have contributed to this plugin.


“WordPress Robots.txt optimizer (+ XML Sitemap) – Boost SEO, Traffic & Rankings” has been translated into 3 locales. Thank you to the translators for their contributions.

Translate “WordPress Robots.txt optimizer (+ XML Sitemap) – Boost SEO, Traffic & Rankings” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Initial release.


  • fixed plugin directory url issue
  • some text improvements


  • fixed some minor issues with styling
  • improved text and translation


  • added some major improvements
  • allow/off option changed with allow/disallow/off
  • improved overall text and french translation


  • fixed a bug and improved code


  • added new feature “Spam Backlink Blocker”


  • fixed a bug


  • added new “personalize your robots.txt” feature to add custom signature
  • added recommended seo tools to improve search engine optimization


  • added feature to detect physical robots.txt file and delete it if server permissions allows


  • added russian and chinese (simplified) languages
  • fixed bug causing redirection to better robots.txt settings page upon activating other plugins


  • added new feature: Top plugins for SEO performance
  • fixed plugin notices issue to dismiss for define period of time after being closed
  • fixed stylesheet issue to get proper updated file after plugin update (cache buster)
  • added spanish and portuguese languages


  • added new feature: xml sitemap detection
  • fixed translations


  • added new feature: loading performance for woocommerce

  • fixed a bug in disallow rules for woocommerce

  • boost your site with alt tags

  • fixed readability issues

  • fixed default robots.txt file issue upon plugin activation for first time
  • fixed php error upon saving settings and permalinks
  • refactored code

  • added clean-param for yandex bot
  • ask backlinks feature for pro users
  • avoid crawler traps feature for pro users
  • improved default robots.txt rules

  • added 150+ growth hacking tools
  • fixed layout bug
  • updated default rules


  • Added Post Meta Box to Disable Indivdual post, pages and products (woocommerce pro only). It will add Disallow and Noindex rule in robots.txt for any page you choose to disallow from post meta box options.


  • Added multisite feature for directory based network sites (pro only). it can duplicate all default rules, yoast sitemap, woocommerce rules, bad bots, pinterest bot blocker, backlinks blocker etc with a single click for all directory based network sites.
  • Added version timestamp for wp_register_script ‘assets/rt-script.js’


  • Fixed some bugs creating error in google search console
  • Text improvement


  • Added “Hide your robots.txt from SERPs” feature
  • Text improvements


  • Fixed a bug
  • Text improvements


  • Fixed crawl-delay issue
  • Updated translations

  • Fixed a minor issue


  • Security patched in freemius sdk

  • Fixed Multisite Issue for pro users

  • Fixed Yoast sitemap issue for Multisite users

  • Fixed some text


  • Added Baidu/Sogou/Soso/Youdao – Chinese search engines features for pro users
  • Added social media crawl feature for pro users


  • Notification will be disabled for 4 months. Fixed some other minor stuff

  • Updated Freemius SDK v2.3.0
  • BIGTA recommendation

  • Fixed Undefined index error while saving MENUS for some sites
  • Removed “noindex” rule for individual posts as Google will stop supprting it from Sep 01 2019


  • Added 5 new rules to default config. Removed 4 old default rules which were cuasing some issues with WPML
  • Added a search rule to Avoid crawling traps
  • Added several new rules to Spam Backlink Blocker
  • Fixed security issues

  • VidSEO recommendation

  • Fixed some security issues
  • Added new rules to Backlink Protector (Pro only)
  • Multisite notification will be disabled permenantly once dismissed

  • Fixed php notice (in php log) for $host_url variable

  • Fixed php notice (in php log) for $active_tab variable
  • Fixed some typos

  • Added option to Be part of our worldwide Movement against CoronaVirus (Covid-19)
  • Fixed several php undefined index notices (in php log) related to Step 7 and 8 options

  • 👌 IMPROVE: Updated freemius to latest version 2.3.2
  • 🐛 FIX: Some minor issues

  • 🔥 NEW: WP Google Street View promotion
  • 🐛 FIX: Some minor text issues

  • 👌 IMPROVE: Admin Notices are set to permenantly dismissed based on user.
  • 👌 IMPROVE: Top level menu for Better Robots.txt Settings
  • 🐛 FIX: Styling conflict with Norebro Theme.
  • 🐛 FIX: Undefined variables php errors for some options

  • 🐛 FIXED: XSS vulnerability.
  • 🐛 FIX: Non-static method errors
  • 👌 IMPROVE: Tested up to WordPress v5.5

  • 🐛 FIXED: Call to undefined method error.

  • 👌 IMPROVE: Update Freemius to v2.4.1

  • 👌 IMPROVE: Tested up to WordPress v5.6
  • 🐛 FIX: Get Pro URL

  • 👌 IMPROVE: Added some more rules for Woocommerce performance
  • 👌 IMPROVE: Update Freemius to v2.4.2

  • 🔥 NEW: Meta Tags for SEO promotion


  • 👌 IMPROVE: Refactored code to MVC
  • 👌 IMPROVE: New clean design
  • 👌 IMPROVE: Many small improvements

  • 🐛 FIX: Added trailing backslash for using trait


  • 🔥 NEW: Search engine visibility feature (Pro version)
  • 🔥 NEW: Image Crawlability feature (Pro version)

  • 🐛 FIX: Sitemap issue


  • 🐛 FIX: Bugs and improvements
  • 🔥 NEW: Option to add default WordPress Sitemap (Pro Version)
  • 🔥 NEW: Option to add All in One SEO Sitemap (Pro Version)


  • 🐛 FIX: Text issues


  • 🐛 FIX: Security fix


  • 🐛 FIX: PHP warning undefined index


  • 🐛 FIX: SECURITY PATCH. Verify nonce for CSRF attack.
  • 🐛 FIX: PHP 8.2 warning undefined index


  • 🐛 FIX: Removed Be part of movement against CoronaVirus (Covid-19) option


  • 🐛 FIX: Moved Moz bots from Bad bots list to Backlink Protector list.
  • 🔥 NEW: You can select and exclude bots in Backlink Protector list (Pro Version)
  • 🔥 NEW: Bad Bots – “AI recommended setting” by ChatGPT-4 (Pro Version)
  • 🐛 FIX: Security fix


  • 🔥 NEW: ChatGPT Bot Blocker – Block ChatGPT Bot from scrapping your content (Pro Version)
  • 👌 IMPROVE: Encapsulation of Radio Switch Buttons and code refactoring.


  • 🐛 FIX: Class initialization


  • 🔥 NEW: UI/UX with better experience
  • 🔥 NEW: ChatGPT Bot Blocker – Block ChatGPT Bot supported in free version
  • 🔥 NEW: Ads.txt and App-ads.txt support for free version
  • 🐛 FIX: Personalization line break issue
  • 🐛 FIX: Other fixed and improvements