wordpress

As of WordPress 2.5, and beyond, the <meta name=”generator” content=”WordPress” /> meta tag was moved from the template to the core of WordPress. This means that you can no longer simply remove the call from the template. We now need to include a function in functions.php In order to remove meta name generator content tag.

Why would you want to do this I hear you ask? Amazingly as basic as this meta information may appear, you are actually broadcasting to the world which version of WordPress you are implementing and thus inadvertently telling the world which security vulnerabilities you are more likely to be prone to.

To Remove <meta name=”generator” content=”WordPress” />

1. Login to the WordPress backend as a user with administrative roles
2. Click  on the tab Appearance -> Editor and find the Theme Functions (functions.php) from the list of theme files, click on this file to open it up in the editor
3. Anywhere before the closing ?> tag, but not inside any existing functions add the following:

remove_action(‘wp_head’, ‘wp_generator’);

4. Finally click the Update File button to apply these changes.

Viewing the source code of your site should confirm this meta information has been removed.

Do note however this will not make a WordPress blog anymore secure to vulnerabilities..