Aug 8, 2012

Wordpress Hack to Hide its version

There had been issue and talk going around about wordpress sites being hacked. One main thing that most of the hackers look for is the Version of the wordpress that is being used for the site. Well if you are worried about it, here is a sweet short code that will remove the wordpress version from your source code without having to use any wordpress plugins.

Open your functions.php and add the following line:

remove_action('wp_head', 'wp_generator');

Open header.php and remove the following lines:

<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

No comments:

Post a Comment