Getting rid of the WordPress Version number

One way to help secure your WordPress install is to remove the version number from your meta tags:

<meta name="generator" content="WordPress 3.0.1" />

In my opinion all this does is tell any potential hackers exactly what exploits to attempt first. There are a few ways to do this but according to this post the best way to do it is

function remove_version() {
return '';
add_filter('the_generator', 'remove_version');

The reason being that it not only removes the version number from your HTML sources but also from your various RSS feeds. Remember to keep your WordPress version up to date as that is the best way to keep your WordPress site safe.

Leave a Reply