Anyone can read your plugins' exact versions
General instructions. Open this article from your PageCheck report to see it filled in with the readme files your site publishes and the rule for its web server.
What it is
Every plugin and theme in the WordPress directory ships a readme.txt file, and its Stable tag line names the release installed. The file is there for the directory's own page, not for the site: WordPress stopped reading it in version 5.8, and nothing requires it to be readable over the web — the directory asks for the file inside the package, and the licence obliges the plugin's author towards you, not you towards your visitors.
What is wrong
On a site that serves these files, anyone can read the exact version of every plugin it runs, one request at a time.
Why it is worth fixing: most attacks never ask for these files — they simply fire a known exploit at every site. The ones that do ask are looking for a specific version. When a vulnerability in a plugin you run becomes public, this file is what lets a scanner confirm, in a single request, that your site is worth attacking, and it is what puts your site on lists of confirmed vulnerable installs. Hiding the file is not a security fix in itself: it only makes your site harder to pick out.
How to fix
1. Update the plugins first. A hidden file protects nothing if the version behind it has a known hole. Update every plugin and theme under Dashboard → Updates, after a backup, and keep them updated — that is the fix that matters. The steps below only stop the versions being readable from outside.
2. Stop the web server serving them. Use the rule for your web server (your host can tell you which one it is):
Apache or LiteSpeed: in the .htaccess file in the site's main folder, above the "# BEGIN WordPress" line
# BEGIN Block plugin and theme readme files
<FilesMatch "^(readme|read_me|changelog|change_log|license|licence)([-._][A-Za-z0-9._-]+)?\.(txt|html?|md)$">
Require all denied
</FilesMatch>
# END Block plugin and theme readme filesnginx: in the site's server block
location ~* /wp-content/(plugins|themes)/.*/(readme|changelog|license|licence)[^/]*\.(txt|html?|md)$ { deny all; }
location ~* ^/(readme\.html|license\.txt)$ { deny all; }
Block them by name, never every .txt file: robots.txt, ads.txt, security.txt, llms.txt, /.well-known/ must keep answering, or you lose search engine instructions, advertising verification and the automatic renewal of your certificate.
3. Check it.
Open https://example.com/wp-content/plugins/contact-form-7/readme.txt: it should now answer "Forbidden" (403) or "Not found" (404) instead of the file. Then open the site's pages, the admin area and robots.txt to see that nothing else was caught by the rule.
One effect to expect: after this PageCheck can no longer read your plugin versions either, so later reports will say less about which of them are out of date. That is the trade — which is why updating comes first.
Stop my WordPress site from serving the plugins' and themes' readme, changelog and licence files, which publish the exact version of every plugin installed. Why it matters: when a vulnerability in one of those plugins becomes public, one request to such a file confirms the site as a target and puts it on lists of confirmed vulnerable installs. It is not a fix in itself — keeping the plugins updated is — but there is no reason to publish the versions. Steps: 1. Update every plugin and theme (after a backup) — that is the real fix. 2. Deny HTTP requests to files named readme/changelog/license/licence with the extensions .txt, .htm, .html and .md: a FilesMatch block in .htaccess on Apache/LiteSpeed (above # BEGIN WordPress), or deny location blocks on nginx, placed in the server block. Also close the WordPress core files /readme.html and /license.txt. 3. Match by file name only, never by extension: robots.txt, ads.txt, security.txt, llms.txt and /.well-known/ (ACME certificate renewal) must keep answering 200. 4. Verify one plugin readme answers 403 or 404, that robots.txt and /.well-known/ still answer 200, and that the site and its admin area work. Tell me exactly which files you changed. Resources: - Updating WordPress (WordPress.org): https://developer.wordpress.org/advanced-administration/upgrade/upgrading/
Subject: example.com – the plugins' readme files publish our exact versions Hi, A website audit (PageCheck) found that our plugins' readme.txt files can be read by anyone, and that each one names the exact version installed: Why it matters: when a vulnerability in one of those plugins becomes public, a single request to such a file confirms our site as a target. The site does not need those files — WordPress stopped reading them in version 5.8. Please: 1. Update all plugins and themes (after a backup) — that is the main fix. 2. Block web access to files named readme, changelog, license and licence (.txt, .html, .md) at the web server — by name only, never all .txt files. 3. Check that robots.txt, ads.txt, security.txt and /.well-known/ still answer normally, and that the site works. Resources: - Updating WordPress (WordPress.org): https://developer.wordpress.org/advanced-administration/upgrade/upgrading/ Thank you!
Audit your site to see whether it has this problem. Audit a website