Remove WordPress version info from your site

When you install WordPress and create a new site, the system will leave its version number available for anyone to find. While this information can be very useful for tracking companies which give those amazing information about how many websites are powered by our beloved platform, others can use it for malicious acts.

Those who want to exploit information on your site can easily get the WP version number from your website header. After they read the info, hackers can instantly know from which position to attack your site. And that’s something you don’t want. You can easily test your website with Security Ninja which will tell you if your WP website has revealed that information, plus many other useful information.

While you can still tell the world how proud you are because of working with WordPress, you can still easily hide that crucial number – the version number. In this article, we are going to show you how to do that.

All you need to hide the information is a simple function:

  1. Open functions.php file
  2. Copy the following function and paste it into the file:
  3. function remove_version() {
    return '';
    }
    add_filter('the_generator', 'remove_version');
    
  4. Save changes

If you still want a plugin to do your job, you can remove the WordPress version number with a free and simple plugin. Once you install it, there are no extra steps needed. Remove Version will remove Meta, RSS, and Javascript & CSS parameters from the core files and make your site less prone to attacks.

There are plenty of things you do to protect your WordPress website. To get you started, here’s how to hide specific folder from public and how to stop showing unnecessary login information.

START YOUR OWN BLOG

This guide is an introduction to mastering the art of blogging. It provides easy to follow steps to start, maintain, and grow your blog.

Read the guide

Leave a Reply

Your email address will not be published. Required fields are marked *