The MU forums have moved to WordPress.org

Security How to remove meta name="generator" (5 posts)

  1. wilsoncortezribeiro
    Member
    Posted 14 years ago #

    Hi

    After being exploited i´m digging around to find security measures.

    One that i´ve found is regarding removing the meta name generator.

    The theme i´m using use this call to (maybe a function, sorry i´m not a coder) '<?php wp_head(); ?>'

    After a lot of search i coul not easily found it.

    Where and how I can remove the generator meta tag?

    Thank you

  2. VentureMaker
    Member
    Posted 14 years ago #

  3. wilsoncortezribeiro
    Member
    Posted 14 years ago #

    Thank You VentureMaker

    But that seem to be a payd service isn´it?
    I just want to remove the generator ...

    Any piece of code?
    I tried to use a function spotted here in the foruns but with no sucess at all!

  4. Klark0
    Member
    Posted 14 years ago #

    Create a .php file in mu-plugins that looks like this:

    <?php
    remove_action('wp_head', 'wp_generator');
    ?>

    I tend to dump changes like this all into one file and properly label for future reference.

  5. wilsoncortezribeiro
    Member
    Posted 14 years ago #

    Thank you so much Klarko
    It works like a charm.

    ps: a newsbie life it´s not so easy somentimes :-)

About this Topic

  • Started 14 years ago by wilsoncortezribeiro
  • Latest reply from wilsoncortezribeiro