Remove Wordpress version to increase security

remove_action('wp_head', 'wp_generator');
This snippet removes the version of Wordpress you are using from the header. Attackers will be unaware of what version you are using and therefore any known security weaknesses linked to your version of Wordpress.

Add snippet to your functions.php file. Also remember to delete the readme.txt file in your root which also contains version details.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.