Skip to content

Instantly share code, notes, and snippets.

@inetbiz
Created April 24, 2014 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inetbiz/11239763 to your computer and use it in GitHub Desktop.
Save inetbiz/11239763 to your computer and use it in GitHub Desktop.
wordpress-security-obscurity.php
//Remove WordPress Generator Meta Tag as a obscurity measure
remove_action('wp_head', 'wp_generator');
// Remove it from your RSS feeds
function remove_generator_version_rss() {
return '';
}
add_filter('the_generator', 'remove_generator_version_rss');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment