A Happy Freelance Web Developer
July 2, 2008

Wordpress Plugin: Hide Wordpress Version from Hackers

The first thing hackers see before trying to apply any cracking attempts on your wordpress-based websites is the version of wordpress you are having. Experts say you should hide that version number from your output html to make it difficult for crackers to get into your site.

Prior to wordpress 2.5, this was written in header.php theme file. So you could simply delete that line:

<meta name=”generator” content=”WordPress <?php bloginfo(’version’); ?>” />

But from wordpress 2.5 onward, this is generated automatically by wordpress core engine and inserted in <head> part of your site’s HTML. I have written a little plugin “hide-wp-generator” that hides meta-generator tag altogether and thus helps you keeping your site secure.

Download the Plugin Here

Written by Sohail at 3:35 pm | Posted in Wordpress

Comments

  1. Dan Spielman Says:

    Thanks for the simple script, how can I check to make sure it is working.

  2. Sohail Says:

    View source of your blog. You should not see this line: <meta name=”generator” content=”WordPress 2.5.1” />

  3. UTP Says:

    I was afraid to comment here…you wont come and hack my site right?

    Cheers…stay sane…

  4. Sohail Says:

    UTP - Welcome to my blog. And no, I wont :)

Leave a Comment