How To Remove WordPress Version Generator Tag

WordPress blogs as with other blogs with different softwares are prone to being hacked despite security measures put in place by the software makers. So it’s always good to seek better ways of increasing their level of security.

A good way of preventing your blog from being hacked is by removing the Meta Generator Tag. This tag makes your version of wordpress known to the world at large, hackers included. Any knowledge of your wordpress version, helps the hacker perpetrate his evil acts.

To remove the Meta Generator Tag do this:

  1. Open your theme’s header.php file and look for this tag: <meta name="generator" />. If it’s present, delete it and save the file.
  2. Open up wp-includes/general-template.php and search for the following function :  function the_generator( $type ) { echo apply_filters(‘the_generator’, get_the_generator($type), $type) . “\n”; }. Place a # before echo, save the file and you’re done. The result should look like this function the_generator( $type ) {
    #echo apply_filters(‘the_generator’, get_the_generator($type), $type) . “\n”;
    }

The above tutorial was made possible by Semlab’s post How to Stop Your WordPress Blog Getting Hacked.

P.S: To see if the above has worked, simply open a page on your site, right click on it and choose View Page Source. This tag <meta name=”generator” content=”WordPress 2.7.1″> will not be shown again.



Related Articles You May Like To Read
  1. How To Add Content After The More Tag In WordPress
  2. How To Add Nofollow To WordPress Tags and Tag Cloud
  3. Remove Dates and Time WordPress Blog Posts and Comments
  4. How To Secure WordPress Blogs With Plug-ins
  5. Remove Trackbacks & Pingbacks From Recent Comments

Disclosure: Please note that each time you make a purchase via any referral link on this site, I make a commission. Click here for more info.


One Comments so far. Leave Yours Below

If you want to ask a question regarding anything from blogging to making money online and wordpress plugins tips, do please make use of the floating search bar at the bottom of this site. If you don't find what you're looking for, then feel free to ask your question

ALL COMMENTS WITH KEYWORDS AS NAMES WILL BE DELETED! TAKE NOTE!


Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.


  1. Philippe says:

    Thanks for the information.Really it will helpful for us to protect the blog from hacking.