9 easy ways to secure your WordPress blog

by Ross McKillop on September 10, 2007

Blogging Security

This article outlines 9 different ways you can secure your WordPress blog/site. Security is often an overlooked aspect of blogging, but a few minutes making sure things are secure can save you hours and hours of ‘fixing’ if someone decides to mess with your site.

  1. Download and install the wp-scanner plugin. It performs he following security checks:
    1. WordPress Version Check (currently supports 7 version checks). Future releases will include a file existence version check, for those blogs that have removed their version details.
    2. Tests the WordPress theme template for basic XSS vulnerabilities
    3. Enumerates WordPress Plugins. Future releases will perform additional tests in this area.
  2. Another plugin to install is Login LockDown. It records the IP address and timestamp of every failed WordPress login attempt. If more than a certain number of attempts are detected within a short period of time from the same IP range, then the login function is disabled for all requests from that range. This helps to prevent brute force password discovery. It’s very straight forward and easy to use - I give it a big thumbs up.
  3. Arguably my favorite WordPress security plugin is AskApache Password Protect. It adds a 2nd layer of security to your blog by requiring a username and password to access anything in the /wp-admin/ folder. And it does that by automatically creating and picking all the right settings for the .htpasswd and .htaccess files (including the save locations), but you can easily change those settings to anything you want, right from your WordPress Admin Panel.
  4. From Matt Cutts presentation - remove the tag in your header.php that displays the current version of WordPress. It’s:

    <meta name=”generator” content=”WordPress <?php bloginfo(’version’); ?>” />

    Or, you can just modify it so that the version number isn’t displayed, to something like

    <meta name=”generator” content=”Powered by WordPress” />

  5. Again, from Matt Cutts - put a blank index.html file in your /wp-content/plugins/ directory. By default, you can actually view the contents of this folder, so everyone in the world knows which plugins you have installed.
  6. I won’t bother with the “always use the latest version of WordPress” tip, because that’s just too obvious. However, I will mention that the Automatic Upgrade Plugin can keep your version of WordPress current, and you don’t have to do anything other than install it. I happen to prefer to upgrade WP manually, so I don’t use this one, but I’ve heard nothing but good things about it.
  7. If you have a ‘contact me’ page, make sure it’s a secure one. No one likes spam. Secure Form Mailer is great.
  8. Keep your web server updated. Though this isn’t WordPress specific, no matter how secure WordPress is, if there’s a vulnerability in your actual web server, it won’t matter. So keep an eye out for updates to your web server (ie. litespeed, Apache etc).
  9. Consider bookmarking http://blogsecurity.net (or subscribing to their RSS feed) - they have some great posts and provide info on insecure plugins etc as soon as they find out about them.
Related Posts:
  • Best of Blog Action Day
  • 7 plugins to install immediately after WordPress
  • WordPress Plugin: MyTechnorati
  • How to easily install WordPress in a virtual environment
  • How to install WordPress on your Windows PC
  • Get Simple Help tutorials just like this one in your email inbox every day - for free! Just enter your email address below:

     

    You can always opt out of this email subscription at any time.


    Bookmark and Share

    { 11 trackbacks }

    Iron Wil » Blog Archive » WordPress Protection - No, I don’t mean Maffia
    09.14.07 at 4:07 am
    Site Update - Don’t panic we’re still here and working hard..
    09.15.07 at 7:54 am
    Link Sharing, 9/19/07 » Webomatica - Technology and Entertainment Digest
    09.19.07 at 3:03 pm
    13 Ways I Protected My Blog From Attacks : Elaine Vigneault
    09.23.07 at 7:13 am
    RodeWorks » WordPress security — what you can do
    11.05.07 at 11:26 am
    Secure WordPress - How to prevent your blog from being hacked
    05.21.08 at 2:46 am
    GUYA.NET » Blog Archive » My blog has been hacked
    06.16.08 at 9:17 am
    5 Useful WordPress Posts | Port 16
    06.20.08 at 11:32 am
    phipster » Blog Archive » Secure your Wordpress Blog
    07.18.08 at 11:26 pm
    The end of the 90DC for me - probably - Internet Marketing Forums
    09.08.08 at 7:59 am
    Step By Step Guide for WordPress Total Security (Hacker Free) what would you pay ? - Page 2
    10.03.08 at 10:50 am

    { 4 comments… read them below or add one }

    1 Webomatica 09.14.07 at 7:19 pm

    Cool… I just tried most of the above - the wp-scanner found something up with my search form. Fixed!

    2 paul 12.17.07 at 7:35 am

    wow, thanks so much for these. I hadn’t heard of any of those plugins and I work with WP a lot. I really like the AskApache plugin. thanks again!

    3 鬼故事 06.13.08 at 11:44 am

    呵呵,帮顶!来听听鬼故事……

    4 返利 06.14.08 at 7:30 am

    呵呵,帮你PP顶!也请来返利看看……

    Leave a Comment

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>