Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to remove WordPress Generator Tag or Version Number from header?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.07k
    Comment on it

    In WordPress, it is very easy to identify the wp version of website via checking source of web page and this information might be a security leak on your site, if you are not running the most updated version of WordPress. therefor you are providing the hacker with the useful information by telling them which WordPress version you are currently running in your website.


    So to minimize the threat, we should remove the wp version from header so we need a code which remove that information from web page and wp provides a hook functionality for this.


    To minimize this threat, you need to insert a piece of code into your WordPress website, which will automatically remove the WordPress version from your header and so increases the security, because many robots are searching for that type of meta tag. Below is the code and follow the step-


    Paste this code inside "function.php" in your active theme


    remove_action('wp_head', 'wp_generator');

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: