hello@wpfoss.com
Website securityWordPressPHP

Why your website should not show its software version

Your site may tell every visitor which WordPress or PHP version it runs. Here is why that helps attackers, what hiding it does and does not do, and what to ask for.

By WPfoss Team

Many websites tell every visitor exactly which software and which version they run. Attackers use that to skip the guessing and go straight to the weaknesses known for that version. Hiding the version is cheap and sensible, but it is a small extra layer, not a fix.

If you have ever wondered why a security scan says “your version is on show”, this is what it means, why it matters a little, and why it matters far less than keeping the software up to date.

What “showing your version” means

Every time a browser asks your site for a page, the server answers with the page and a short set of notes called headers. The notes are invisible to visitors, but anyone can read them, and so can software. Two of them can name what you run:

  • The Server header describes the software used by the origin server, for example the web server and its release.
  • The X-Powered-By header describes the technologies behind the site, often the PHP version.

WordPress can also announce itself inside the page code. Your visitors never see it, but a scanner reads it in a fraction of a second.

None of this is a mistake in the usual sense. It is the default on many setups, put there so nobody had to think about it.

Why attackers care

Software flaws are published with the version numbers they affect. If a site announces “version X”, an attacker with a list of flaws in version X knows what to try, without sending a single noisy test.

OWASP, the web security community, explains this in its testing guide. It describes fingerprinting as the task of identifying the type and version of the web server a target runs, so a tester can look for known vulnerabilities. It also says that exposed server information is not necessarily a vulnerability in itself. Both are true: the version is a clue, not a door.

The same logic is behind two of the findings in our scanner. We say a visible PHP or WordPress version is minor, because the problem is the old software behind the label, not the label.

The honest limit: hiding is not protecting

Here is the part many articles skip. OWASP’s own guidance says that when the Server header is removed or changed, a tester can fall back on other clues, such as how a server words its error pages. Its cheat sheet on headers says the same thing in another way: it recommends removing the X-Powered-By header, or the Server header, or giving it a dull value, and adds that attackers can still fingerprint the technology by other means.

So think of hiding the version as closing the curtains. It stops a casual look, and it makes automated sweeps a little less accurate. It does not stop a determined person, and it does nothing at all about a flaw sitting in your software.

That is why the order matters:

  1. Update first. WordPress’s own hardening guide says to always keep up to date with the latest version, and that older versions are not maintained with security updates. It also notes that once a fix is released, details of the flaw are usually public, which makes outdated installs more exposed.
  2. Hide the version second. Once you are current, there is no reason to hand out a free label.

An old version that is hidden is still an old version. An attacker does not need to be told, because they will simply try the exploits anyway.

What to check on your own site

You do not need to touch any code to find out where you stand.

  • Run a scan. Our free website security checker lists what your site tells strangers, including a visible WordPress or PHP version.
  • Check the PHP version too. Our PHP version checker shows what your server announces. If it says nothing, that is not proof you are current, only that nothing is shown. We cannot tell the version from outside in that case.
  • Ask your host which PHP version you are on, and whether it is still supported. This is the question that matters most, and the answer is in your hosting account or with their support team.
  • List your plugins and themes, and ask when each was last updated. Old add-ons are a bigger risk than any label.

What to ask a developer or host

You can hand this list to whoever looks after your site:

  • “Can the server stop announcing its software and PHP version?”
  • “Can WordPress stop announcing its version in the page code?”
  • “Are WordPress, the theme and every plugin on the latest release, and is anything abandoned?”
  • “Is automatic updating switched on for security fixes, and who is told when an update fails?”
  • “What happens to our site if an update breaks something, and is there a recent backup?”

We are deliberately not listing the exact settings here. They differ by host and setup, and a wrong change can take a site down, which is why a developer should make them and test them.

A reasonable view of risk

A shown version is not a reason to panic. It is a reason to ask whether the version is current. If it is, the label is a small leak. If it is not, the label is the least of your problems.

If your scan also shows a missing security rule, a login page open to everyone or an old plugin, deal with those first. They are more likely to be used against you than a version number.

What we are not claiming

We have not measured how many attacks start from a visible version, so we give no figure. This is general guidance, not a promise that a site is safe, and a scan from outside cannot see everything on your server.

Want us to look at what your site gives away?

Start with the free website security checker. If you want someone to read the results with you, rank what matters and fix it in a safe order without taking your site offline, see our website security service.

Sources and further reading

Frequently asked questions

Can a website show which software it runs?

Yes. Servers often announce the web server and PHP version in the headers they send with every page, and WordPress pages can announce their own version in the page code. Anyone can read both without logging in.

Is showing my software version a vulnerability?

On its own it is not a hole. OWASP says exposed server information is not necessarily a vulnerability in itself, but it helps an attacker choose what to try first.

Will hiding the version make my site safe?

No. Attackers have other ways to guess what you run, and hiding does nothing about an old version with known flaws. Updating is the real protection and hiding is a small extra layer.

Should I hide the version or update first?

Update first. A hidden old version is still an old version. Once you are current, hiding the version removes one easy shortcut.

How can I see what my site announces?

Run our free website security checker. It lists what your site tells visitors, including a WordPress or PHP version if one is shown.

Stop impersonation. Control access. Protect your business.

Choose the service you need, or book a security review and we will help you identify the correct starting point.