In WordPress, it is very easy to identify the wp version of website via checking source of web page and this information might be a security leak on your site, if you are not running the most updated version of WordPress. therefor you are providing the hacker with the useful information by telling them which WordPress version you are currently running in your website.
So to minimize the threat, we should remove the wp version from header so we need a code which remove that information from web page and wp provides a hook functionality for this.
To minimize this threat, you need to insert a piece of code into your WordPress website, which will automatically remove the WordPress version from your header and so increases the security, because many robots are searching for that type of meta tag. Below is the code and follow the step-
Paste this code inside "function.php" in your active theme
remove_action('wp_head', 'wp_generator');
0 Comment(s)