Created
March 6, 2014 05:17
-
-
Save mavisland/9383031 to your computer and use it in GitHub Desktop.
Hiding the WP version info is a small step to prevent bots from crawling your site, it does not prevent fingerprinting, but every little bit helps. In your theme’s functions.php add the following:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// remove version info from head and feeds | |
function complete_version_removal() { | |
return ''; | |
} | |
add_filter('the_generator', 'complete_version_removal'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment