fbpx
Home » Blog » Removing the WordPress Version Number

Removing the WordPress Version Number

Displaying the WordPress version number in your website’s source code may help hackers target exploits.  Remove it today!

To see if your site is displaying a WordPress version number view your site’s home page source (in Chrome press <CTRL>+U).

Look towards the top of the source code for the line that starts with <meta name=”generator”

WP Meta Generator

You probably don’t have to worry if you are keeping your website up-to-date regularly and by regularly I mean weekly.

WordPress releases core updates regularly and these contain fixes to known exploits.

Displaying your WordPress version gives hackers valuable information allowing them to target specific weaknesses that have since been fixed in later updates.

Don’t make things easy for them!

Add the following line to your functions.php file located in your theme folder.

remove_action(‘wp_head’, ‘wp_generator’);

Ha ha – in your face Mr Hacker!

Get Your Free Security Fundamentals eBook

Enhance your website security with this free, quick and easy to implement guide.

3d-cover
  • This field is for validation purposes and should be left unchanged.

Keep In Touch

Wil

Wil is a dad, consultant, developer, conference organiser, speaker and business mentor. He co-organizes the WordPress Sydney meetup group and has been on the orgnising committee for WordCamp Sydney since 2014. He speaks at many technical events and contributes to the WordPress open source project. His likes are chillies, craft beer and electrogravitics.
If You Enjoyed This Post
Join Our Newsletter
Give it a try, you can unsubscribe anytime.
Close