Wordpress Security

How horrible would it be if you woke up tomorrow and your blog was gone. All that hard work you have put into it up in smoke. Ok, so I think we can agree that it’s worth taking a few precautions to ensure our Wordpress blogs are as secure as possible. Here are some tips to go about achieving this.

Keep Wordpress Current

Keep your Wordpress setup up to date. From time to time people find security issues in Wordpress. These issues get addressed by the developers of Wordpress who then release an update. If you don’t update, you may be vulnerable. Wordpress can be a real pain to update, so the more lazy amongst us tend to leave it for a bit. If this sounds like you then maybe you should download Wordpress Automatic Upgrade Plugin. It automates the process of backing up and upgrading Wordpress.

Backup Your Posts and Comments

Create a folder on your PC and regularly create backups of your blog content. It’s easy enough to do, just go to ”Manage” in your Wordpress dashboard, and select “Export”, then click “Download Export File” to save a copy of all your valuable posts, comments and categories. It’s a good idea to name these export files with a date.

Drop The Version String In Your Header.php File

Quick Online Tips explains how displaying the version of your Wordpress installation can leave you vulnerable. If the version is left viewable, anyone can easily figure out which version of Wordpress you are using just by viewing the source file of your site, then if there is a known flaw in the version you are using you’re in trouble.

To fix this change:

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

To:

<meta name=“generator” content= 

“WordPress” />

Put A Blank index.html In /plugins/ Directory

In a default Wordpress installation, anyone can access your Wordpress plugin folder to see which plugins you have installed. This is a problem if certain plugins are known to have security issues. The default path is “http://www.yourdomain.com/wp-content/plugins/"

If you type this address in your browser using your Wordpress blog’s domain you will see the entire directory with all of your plugins. A method to hide this as describe by Quick Online Tips (and Originally Matt Cutts at WordCamp 2007) is to place a blank file named index.html in the root of your plugin folder. People will no longer be able to view your plugin directory.

Wp-admin Folder

Past versions of Wordpress have had vulnerabilities with the wp-admin folder. So for extra tight security Reuben Yau gives a method to Protect the Wordpress wp-admin folder. However if the computer you access your blog from has a dynamic IP address assigned by your ISP this won’t work. It may be worth looking into if these sorts of security issues keep you up at night.

Login Lockdown Plugin

Login Lockdown is a plugin that monitors how many times a person tries to log in during a short period of time. If they exceed some key number, LogInLock down will lock them out from logging for some period of time. This will stop those types who will try and guess your user names and passwords.

I hope this information has helped you to secure your Wordpress blog.

www.pingable.org

41 Responses to “How To Make Your Wordpress Blog Safer”

  1. MDB on September 13th, 2007 3:36 am

    Thanks for the information. Had never really thought about it myself, but have implemented the suggestions. Looks like you’ve got a few more interesting posts here as well. Will check them out.

  2. Brian Purkiss on September 13th, 2007 6:40 am

    I have thought about WP Security…
    But I didn’t think of all those - lol
    I’m going to have work on those!
    Thanks for the heads up!

    P.S. - Because of your comment, I’m back!

  3. Simon on September 13th, 2007 6:45 am

    That’s great Brian, I am happy to have you back as a reader. You wouldn’t believe what a hit my feed count took in the days following that ProBlogger article. Maybe I need to place more focus on topics that aren’t blogging…i.e. more web design stuff to ensure I am not labled as a blogger that blogs about blogging. Cheers for coming back though Brian :)

  4. Website Design on September 13th, 2007 7:37 am

    Nice post. I noticed the version string was killing me for a while. Once removed, a lot of spam actually ceased. It’s been a few months and I’m pleased with the results. Nice that you posted it as well.

  5. Simon on September 13th, 2007 7:47 am

    Ironically Akismet thought your comment was spam :)

  6. Simon on September 14th, 2007 6:33 am

    I have entered this article into a group writing project contest at: http://www.bluejar.com/how-to-group-writing-project/ - Check it out, there is still a few days left before the deadline, so there is plenty of time to write an article an enter.

  7. GnomeyNewt on September 15th, 2007 12:57 am

    Thanks for entering my project. Good advice you have shared here, I guess I should probably go update my WP :c). Also thanks for mentioning my group writing project, everybody has until next week on the 18th to enter.

  8. TenthOfMarch on September 18th, 2007 8:32 am

    This is a good list and thanks for the idea ;-)

  9. Madhur Kapoor on September 19th, 2007 9:26 am

    Great article Simon , this reminds me to update my WP and create a backup

  10. jayhan on September 22nd, 2007 2:35 am

    Thanks for the useful tips!

    One point above that i always did is “Backup Your Posts and Comments”. I export my content after I submit a new post.

    I shall try that Login Lockdown Plugin :)

  11. JoLynn Braley on September 23rd, 2007 7:55 pm

    Thanks for these tips! I use a plugin to backup and I update WP as soon as there is a new version, and I am implementing your other tips. Thanks again, this is a great addition to the writing project.

  12. Oscar on September 24th, 2007 1:42 pm

    Nice tips.

    Another useful thing is to create a good robots.txt file to avoid spiders indexing all directories.

  13. Steve Belt on September 25th, 2007 9:23 am

    Good check list of security vulnerabilities. I was particularly worried about my plug-ins directory, not having considered it before.

  14. Doug Steele on February 17th, 2008 7:55 pm

    Interesting. There are some good ideass presented here. I need to do spend some time reading more about these topics.

  15. Dwayne Charrington on February 19th, 2008 6:50 am

    Thanks for the tips, I will surely put these to use on my blog. I’ve been getting a lot of traffic lately and would hate to compromise my website because of a few simple mistakes.

  16. Dan (future gadgets blog) on February 29th, 2008 8:43 am

    I like your blog theme. I want to use it on my blog.
    Can you please tell me from where I can download these theme?

    Many thanks

    ——————————————————————————–
    Dan owner of the future gadgets blog future gadgets and inventions

  17. Simon on February 29th, 2008 3:25 pm

    Dan, it is a custom made theme by Nathan Rice! His blog design package will cost you $600 - http://www.nathanrice.net/services/.

  18. Yaz Okulu on March 23rd, 2008 11:31 pm

    does anyone knows if there is any other information about this subject in other languages?

  19. Prosperity Writer on April 3rd, 2008 8:11 pm

    this is a great read! i’ve been doing a little research on how to make my WP blog more secured and this is certainly a big help!

  20. trademark registration on April 5th, 2008 4:57 pm

    Great post. I noticed the version string was killing me for a while. Once removed, a lot of spam actually ceased. It’s been a few months and I’m pleased with the results. Nice that you posted it as well. Thanks for that.

  21. Gaf on April 8th, 2008 4:54 am

    thanks very good.

  22. Make Money Online Blogging on May 1st, 2008 5:40 pm

    You should use a secure password as well. I suggest changing your password every month, and the password should not be anything contained in the english dictionary. A blank index file should be located in every folder, whether it has valuable information in it or not. Also it is important that your PHP and MYSQL stay updated and secure. Check with your hosting company as many of them handle the upgrades for those. Also check your logs and look for repeated attempts. A repeated IP could mean an attacker, but they can use proxies so it will be a different IP ever time. Look for attempts on weird port numbers against your server. Also look for attempts at weird directories or commands/files. Most sites get port scanned and scanned for vulnerabilities often. But if it is something that it occuring often (multiple days) then it may be a direct attack against you. If you feel it is a direct attack targeting you soley, then contact your web host. They should be able to check out your logs and they will evaluate. If they are nice, they may give you the IPs to add to your blacklist. If they don’t do that due to policy, then they may block them on their end. If the attempts continue, then notify them and you can pursue an investigation.

    I don’t recommend blacklisting and IPs yourself unless you are 100% positive it is an attack. You may end up banning one of your frequent viewers.

    I used to be at the opposit end of the computer. I wont go into techno babble though.

    Shudogg Dot Com - Make Money Online Blogging

  23. Simon on May 1st, 2008 10:58 pm

    Thanks for the in depth input - Make Money Online Blogging - I will even leave your anchor text for your effort.

  24. SEO Marketing on May 7th, 2008 8:22 am

    I had alot of changed done to blogs. I definately figured out how to rid of all spam. Great post

Trackbacks:

  1. How To Check What Plugins Other Bloggers Are Using? | TenthOfMarch.com
  2. “How-To” Group Writing Project: Final Entries List | bluejar.com - the webmasters guide to the galaxy
  3. Blue Jar Group Writing Project Review
  4. 3 Bloggers That Right Good And Should Win That There BlueJar Contest - Internet Marketing Sucks!
  5. Bluejar’s Group Writing Project : My picks
  6. BlueJar Contest: Voting My Favourites
  7. Blue Jar - How To - Group Writing Project : Pingable.org | Blogging & Design
  8. [2007.09.22] Miscellaneous Updates
  9.   blueJAR.com “How To” Group Writing Contest - My Top Picks by Internet Marketing Mind
  10. » Why You MUST Write Better Headlines J-NE.WS: The “Social Viral Marketing” Weblog: Using Social Media to drive Viral Marketing
  11. Bluejar Group Writing Project: My Picks
  12. Bluejar Group Writing Project: My Picks - Contest Beat
  13. Roberta Ferguson » Blog Archive » BlueJar Group Writing Project - My picks
  14. The Fit Shack
  15. BlueJAR How To Group Writing Contest | Karol Krizka
  16. 150+ Tips and Tricks to Make Money Online | Anthony Jude Lawrence Dot Com
  17. Top 10 Security and Protection Plugins for Wordpress | Creation Robot

Leave a Reply