How to hide WordPress Version to Improve Security
One of the easy ways hackers can determine if your website can be easily compromised is to look at WordPress version. It is because as WordPress.org publishes a new version, it will state an update of what has been change, this includes exposing some vulnerabilities in terms of security that hackers can exploit. Although, hiding your WordPress version is just one of the ways and NOT the best ways (the best way could still be upgrading your WordPress to the latest version.
To manually remove it from your blog, open up your Theme Editor, and find the functions.php.
Add the following code to the end of your function.php file.
<?php remove_action('wp_head', 'wp_generator'); ?>
WordPress also adds some unnecessary code to the header. To remove this code using WordPress 3.0 or higher add these following codes to the end of your function.php file.
<?php
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'start_post_rel_link');
remove_action('wp_head', 'index_rel_link');
remove_action('wp_head', 'adjacent_posts_rel_link_wp_head');
?>
Related Posts
If you enjoyed reading this article, please check out other articles below:


Subscribe through Email