wordpress security tip: remove your wordpress version number

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55679

    #1

    wordpress security tip: remove your wordpress version number

    Gonna make this quick since Im posting this on my iphone.

    Some of your, infact a lot that do this are doing it incorrectly.

    This is what 95% of the people have that I see.

    Code:
    remove_action('wp_head', 'wp_generator');

    This will remove it from your theme, but it will still show up in your feeds.


    All you have to do is add this to your themes functions.php file. (this is the proper way)

    Code:
    add_filter('the_generator',create_function('$a',"return null;"));
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.
  • area51 - BANNED FOR LIFE
    So Fucking Banned
    • Aug 2009
    • 3163

    #2
    nice tip frissy

    Comment

    • mikesouth
      Confirmed User
      • Jun 2003
      • 6334

      #3
      good idea but where in the file does it actually go?
      Last edited by mikesouth; 09-11-2009, 10:48 AM.
      Mike South

      It's No wonder I took up drugs and alcohol, it's the only way I could dumb myself down enough to cope with the morons in this biz.

      Comment

      • woj
        <&(©¿©)&>
        • Jul 2002
        • 47882

        #4
        good tip there
        Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
        Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
        Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

        Comment

        • fris
          Too lazy to set a custom title
          • Aug 2002
          • 55679

          #5
          Originally posted by mikesouth
          good idea but where in the file does it actually go?
          Your theme can have a functions.php file which you can have your own custom functions you can use for your theme, you can also override current core functions.

          Here are a couple links worth reading

          http://codex.wordpress.org/Theme_Dev...Functions_File

          http://www.pearsonified.com/2008/05/...-functions.php

          http://yoast.com/wordpress-functions-supercharge-theme/

          http://www.flowdrops.com/blog/wordpr...functions-php/
          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

          Comment

          • Tjeezers
            Webmaster
            • Mar 2007
            • 16602

            #6
            thanks for sharing man
            You are a true Ninja

            Get 43 FREE Backlinks when joining SWAG Live - Click my banner to get the links!

            Comment

            • Davy
              Confirmed User
              • Apr 2006
              • 4323

              #7
              What's "$a"?
              ---
              ICQ 14-76-98 <-- I don't use this at all

              Comment

              • fris
                Too lazy to set a custom title
                • Aug 2002
                • 55679

                #8
                Originally posted by Davy
                What's "$a"?
                Priority over the default

                Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                Comment

                Working...