Better Robots.txt – AI-Ready Crawl Control & Bot Governance source code

By Pagup, on WordPress.org since 2018. 5,000+ active installs.

Browse code Download zip

Better Robots.txt replaces the default WordPress robots.txt workflow with a smarter, structured version you can configure and preview before publishing. Below is its source code for every one of its 20 releases, what changed in the latest one, and how often it ships.

What changed in 3.2.0

Released Dec 1, 2026, 1 week after 3.1.8
  • Added the shared AI training preference in Step 2, in Free, Pro and Premium: do not express a preference, express a refusal, or express a favourable preference, written with the __usage_ai-training policy token in a dedicated group of the generated robots.txt.
  • Preserved existing sites: a missing setting means no preference expressed, no managed group is added until you choose, presets keep your choice, and the generated robots.txt is unchanged until then.
  • Added a result panel that shows the generated lines and the preference for the paths you examine, recognizes __usage_ai-training groups in your custom rules, and lists dated provider information (announced, not confirmed).
  • Saving, importing and restoring stop before any write when __usage_ai-training is also declared outside the managed group (custom rules, a custom crawler list or another setting, with any licence), when the rules cannot be read with certainty for the token, or when exceptions are not valid next to a choice.
  • One change of the robots.txt settings at a time: a save, an import or a restore that meets another one in progress changes nothing and asks you to try again. The lock is an empty file in the uploads directory (.better-robots-txt-write.lock), left in place at uninstall; imports and restores (Pro) that change the physical robots.txt file need it.
  • Fixed: the save dialog no longer says the settings are applied when visitors receive another robots.txt file from the site root (a manually managed file, or a physical file that could not be written or updated); it says the settings are saved and which file is served.

11 files changed since 3.1.8: 10 modified, 1 added, 0 removed.

And 1 more.

Compare 3.1.8 with 3.2.0

Release history

20 releases since May 2018
  1. 3.2.0 Dec 1, 2026 Added the shared AI training preference in Step 2, in Free, Pro and Premium: do not express a preference, express a refusal, or express a favourable preference, written with the __usage_ai-training policy token in a dedicated group of the generated robots.txt.
  2. 3.1.8 Nov 22, 2026 Added a dedicated OAI-AdsBot (ChatGPT Ads) crawl-policy control in Step 11, in Free, Pro and Premium: follow existing rules, allow public pages while keeping site exclusions, or disallow OAI-AdsBot crawling.
  3. 3.1.7 Nov 11, 2026 Hardened the per-post Disallow rules printed in Legacy Mode; each rule path now matches the post’s permalink exactly (for example /sample-page/ instead of /sample-page).
  4. 3.1.6 Oct 27, 2026 Improved mobile layouts and keyboard navigation in the Free and Pro settings screens.
  5. 3.1.5 Oct 18, 2026 Added an optional Fy2Press discovery card after the plugin settings, with local images and direct links without tracking.
Full Better Robots.txt – AI-Ready Crawl Control & Bot Governance changelog with diffs

Source of 3.2.0

275 files
Browse all Better Robots.txt – AI-Ready Crawl Control & Bot Governance 3.2.0 files Browse trunk