• kzq

    (@kzq)


    I want to hide my wordpress version as well as what plugin I am using in my wordpress from html Page Source. Any plugin available for this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Mark Ratledge

    (@songdogtech)

    Put in your theme’s function.php:

    add_action('init', 'removeWPVersionInfo');
    function removeWPVersionInfo() {
        remove_action('wp_head', 'wp_generator');
    }

    To remove plugin paths, you’re going to have to play with .htaccess. And rewrite your theme URL as well, if you want to hide everything WordPress from anyone viewing source.

    There’s very little point in re-writing all the paths (the amount of problems it can cause if you don’t understand how to fix them)..

    Any decent determined hacker will find that information regardless, if this is why you’re doing it.

    The easiest way is generally by making a script throw up an error, so unless you can ensure every script on your site does not throw up errors that expose file paths, then you’re swimming against the tide.

    If you want to use a plugin, then use ones that are well written, documented and have a good user base, trying to hide evidence from the source is going to do very little to help defend against someone looking to exploit it, unless they’re a total idiot…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide WordPress Plugin from HTML Page Source’ is closed to new replies.