WordPress Security ServicesMalware Removal
Scan Findings Explained

WordPress readme.html and Version Disclosure: Is It a Real Security Risk?

Automated security scanners love to report "WordPress version disclosure" and "readme.html file found", often in alarming red. It's one of the most common findings in WordPress security reports, and one of the least important. Here's what it means, why it's low risk, and how to tidy it up anyway.

Sergey By Sergey, WordPress security specialist Updated 1 min read
In this guide
  1. What the finding means
  2. How serious is it?
  3. How to fix it anyway

What the finding means

WordPress ships with a readme.html file in the site’s root folder. It identifies the site as WordPress. Scanners check for it, along with other hints, to work out which WordPress version you run. Knowing the version can help an attacker look up vulnerabilities that apply to it.

Other ways your version or software can be detected include:

  • the generator meta tag in your page source;
  • the generator line in your RSS feed;
  • the ?ver= numbers on scripts and stylesheets;
  • license.txt and other files that come with WordPress.

How serious is it?

Low. Here’s why:

  • Bots don’t usually check versions first. They simply try known exploits against every WordPress site they find.
  • If you’re running the current version, there’s little to look up.
  • If you’re running an old version, hiding the number doesn’t make it any less vulnerable.

So version disclosure matters mainly as a symptom: if a report shows an old version, the real problem is the old version.

How to fix it anyway

Block readme.html (Apache)

Add to the .htaccess file in your site’s root:

<Files "readme.html">
  Require all denied
</Files>

Deleting the file also works, but it comes back with every core update.

Remove the generator tag

Most security plugins (Wordfence, Solid Security, AIOS and others) have an option to hide the WordPress version. Or add this to a small custom plugin or your child theme’s functions.php:

remove_action( 'wp_head', 'wp_generator' );
add_filter( 'the_generator', '__return_empty_string' );

Update

The fix that actually matters: keep WordPress, plugins and themes current, so there’s nothing useful to discover.

From my audit work: clients often arrive worried about a report with 20 findings. Version disclosure, readme.html and similar items take up half the list, while the one finding that actually matters, an outdated plugin with a known vulnerability, sits in the middle in the same color. Part of my security audit is sorting those findings by real risk.

Sergey, WordPress Security Specialist
About the author
Sergey, WordPress Security Specialist

10 years in WordPress security and incident investigation, and more than 200 websites cleaned of malware. Top Rated on Upwork with a 100% Job Success score. More about me

Frequently Asked Questions

Will deleting readme.html make my site secure?

No. It removes one way of fingerprinting WordPress, which may quieten a scanner, but it doesn't fix any vulnerability. The real protection is running current versions of WordPress, plugins and themes.

Will readme.html come back after I delete it?

Yes. WordPress core updates restore it. Blocking it with a server rule, or a security plugin that hides it, is more permanent than deleting it.

My penetration test report lists this as a finding. Do I have to fix it?

It's usually rated informational or low. It's quick to address, so it's worth doing, but it shouldn't come before real issues like outdated plugins, weak login protection or missing backups.

Need a hand?

Let me clean your WordPress site for you

Send me your site URL and what you're seeing. I'll reply with what I think is going on and the next step.

$95 per infected site · 1-month guarantee · direct contact with the specialist

Get My Site Cleaned →