This WordPress suggestion is all about concealing the WordPress version header. Envision yourself. The life of A hacker is made very easy if they know what version of WordPress you are using.
Because if they understand what version this is You’re currently using, they could specifically attempt to attack your website.
When the version isn’t known by them, it would be a hit and miss a strike. Into an attack which is likely to succeed, if they do know the model, they could zone in on the other hand.
There are two methods for concealing the WordPress version – the wrong way(s) and the right way.
If you would like to stop WordPress from getting hacked, then you really should check out this comprehensive article. Hiding the WordPress version isn’t enough, and is a way to make it harder – but not by much. It’s called security by obscurity and is a means of attempting to secure your WordPress.
However, Brute-forcing against all versions of WordPress would work if you don’t perform from getting hacked measures to stop WordPress.
If You’re concerned about your website getting hacked, you are better off choosing a WordPress safety plugin such as among the following: 6 Best Security Plugins.
Hiding the WordPress version
Add the following function to you functions.php
function dartcreations_remove_version() { return ''; } add_filter('the_generator', 'dartcreations_remove_version');
Alternate Approach To Hide the WordPress Version
This is another way to hide the model from styles and out of the head and scripts:
// remove version from head remove_action('wp_head', 'wp_generator'); // remove version from rss add_filter('the_generator', '__return_empty_string'); // remove version from scripts and styles function collectiveray_remove_version_scripts_styles($src) { if (strpos($src, 'ver=')) { $src = remove_query_arg('ver', $src); } return $src; } add_filter('style_loader_src', 'collectiveray_remove_version_scripts_styles', 9999); add_filter('script_loader_src', 'collectiveray_remove_version_scripts_styles', 9999);Share This
Be the first to comment