Skip to the content
Start free

The WordPress version can be read

The WordPress version shows in the page, a feed or readme.html, telling anyone which known problems to try.

Low priority Security and HTTPS

Why it matters #

WordPress can print its version in a generator tag, in feeds and in the addresses of its files. readme.html, which comes with every install, confirms to anyone that the site runs WordPress.

A version number is a clue, not a hole. What matters is that WordPress, plugins and themes are kept up to date; a hidden version on an old site is still unsafe.

How to fix it #

Turn on automatic updates for WordPress, and keep plugins and themes updated. Then remove the generator tag and version numbers with a security or SEO plugin.

Delete readme.html after each update, or block it at the server, because updates put it back. Check again with the WordPress Security Checker.

What it looks like, and fixed #

The problem
<meta name="generator" content="WordPress 6.4.2" />

The generator tag WordPress prints in the page head. The same version also appears in feeds.

Fixed
// In a small custom plugin or the child theme's functions.php:
add_filter( 'the_generator', '__return_empty_string' );

Removes the generator text from the page head and from feeds. Keep WordPress updated as well.

Fix it with your AI assistant #

Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.

Your instruction for the AI
Help me tidy up [your website address], a WordPress site on [your host, e.g. Apache shared hosting or nginx]. A checker says the WordPress version can be read from the page, a feed or readme.html. First check: read the page source and the feed at /feed/ (or ask me to paste them), and see whether /readme.html opens. Tell me which version is showing and, plainly, whether it is the current release, because keeping WordPress, plugins and themes updated matters far more than hiding the number. Then give me the changes: switch on automatic updates, remove the generator text with the the_generator filter in a small custom plugin or child theme, and block /readme.html at the server. Rules: back up first, do not edit WordPress core files, do not break the block editor or caching, and do not remove ?ver= numbers unless my cache setup still refreshes files after updates. Give exact code and where it goes. Finally, tell me to re-check with the URSY.com WordPress Security Checker at ursy.com/wordpress-security-checker/.

We find the problems, and help you fix them

  1. Check Run a free tool or the full audit.
  2. Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
  3. Re-check Come back, check again, and watch each fix turn green.

How the AI Fix Pack works, with a sample to download

Fix it on your platform #

WordPress

Turn on automatic updates for WordPress, plugins and themes. Then remove the generator tag with a security or SEO plugin, or the filter shown above.

Your server or hosting

Block readme.html, which updates put back. On nginx: location = /readme.html { deny all; }. On Apache: <Files "readme.html"> Require all denied </Files>.

Check it is fixed #

Run the WordPress Security Checker again: it should not find the version in the page or feed, and readme.html should not be public.

Official source #

WordPress.org: Hardening WordPress

Questions #

Will hiding the version stop attacks?

No. Attack tools try known holes whatever the number says. It is updates that close the holes.

Should I remove the ?ver= numbers on files?

Be careful. They help browsers fetch fresh files after an update, so remove them only if your caching still refreshes files when they change.

More problems in Security and HTTPS

See every problem in the library

For AI assistants and developers: Instructions for AI · Developers · How to cite URSY.com