Webmasters and bloggers often have a huge fear of being hacked, and the more a website is popular, the more it is exposed to various hacking attempts. Here are 5 tips and plugins that will allow you to secure your Wordpress install, because prevention is always better than cure!

1 – Dump your database with WP-database backup

Here’s the first advice I would give to anyone: Make backups, and made it often. Of course, you can go through the phpMyAdmin on your host, or dump your database by using the command line if you have a ssh access to your server, but this plugin will really simplify the task: you’ll just have to login to your Wordpress admin panel, and click on a few links.
A note, WP-Database Backup offers to daily e-mail you a backup of your database . A must have for every blogger!

2 – Scan your Wordpress install to find security holes

We now have a very good plugin to dump our dear database on a daily basis. The next step is to scan our Wordpress installation in order to verify that no security hole is present. For doing so, we’ll use the excellent plugin called WP Security Scan , that will allow us to identify vulnerabilities on our blog and will tell us how to fix these problems.
This excellent plugin also offers to rename tables prefixes, test your password strenght, delete the admin account and verify that your blog directories have the good rights (chmod).
Wordpress Security Scan

3 – Protect your blog from brute force

Brute force consist to try the maximum possible combinations of letters/numbers/etc in order to find a password. There is even a Python script used to try to discover the password of a blog running Wordpress.
It’s obvious that if your password is the name of your blog or something like “secret”, brute force can easily find your password. The first thing to do is to use a very strong password, with tiny, capital letters, numbers and special characters. You can also rely on the generator password included in WP Security Scan.

Even if having a strong password is a very good thing, adding an Apache login form to the wp-admin directory is another way to provide an efficient protection for your blog. The Ask Apache plugin allows you, among other things, to protect your wp-admin directory by an authentication server level ( htpasswd ).
Note also that the plugin allows you to disable hotlinking, or direct access to your wp-content and wp-includes directories.
Ask Apache

4 – Beware of plugins

Some plugins can contain security vulnerabilities. For this reason, it is necessary to hide the contents of the / wp-content/plugins directory . You just have to create an empty file named index.html and upload it to the wp-content/plugins directory.

Since the time that this kind of disappointment is known, I must admit that I’m surprised that Wordpress does not always hide the contents of this directory by default.
Protect wp-content/plugins

5 – Hide the Wordpress version

If a security hole exists in a particular version of WP, a possible hacker will only have to display your blog source code in its browser and see if the version you used corresponds to the vulnerable one: By leaving the meta version , you’re indicating that you are potentially vulnerable. Simply delete the line in the header.php of your theme.
Similarly, there is also a plugin which allow you to lie about the Wordpress version you’re using.

Related Posts

No related posts.
 

32 Comments

  1. Posted July 27, 2008 at 12:34 am | Permalink

    Good advice, especially on the plugins directory one. That never occurred to me and, sure enough, browsing to that folder on my blog left the whole thing visible for the world to see. Fixed that little hole now.

  2. Posted July 27, 2008 at 1:19 am | Permalink

    This is great stuff, I have a question you said upload an empty index.hmtl to protect from plug-in sec issues, you mean an empty text file named index.html? Can you elaborate on that a bit?

    And, also the hide the word-press version, what do you actually delete from the header.php?

    Sorry new to the whole blog and code thing here,
    Thanks,
    JR

  3. Thursday
    Posted July 27, 2008 at 4:18 am | Permalink

    Chris Swenson has a great Greasemonkey script to secure logins, as well — it’s at http://www.caswenson.com/?p=56.

  4. Posted July 27, 2008 at 5:18 am | Permalink

    I wrote a Greasemonkey script to help with the password problem as well:

    http://www.caswenson.com/?p=56

  5. Posted July 27, 2008 at 9:33 am | Permalink

    @All: Thanks for your contribution and the Greasemonkey script!

    @JR: Yeah, an empty text file named index.html is all good. When someone will try to go to yourblog.com/wp-content/plugins, he’ll only see a blank page, not a directory listing of all plugins.
    To hide the Wordpress version, you can delete the meta in the header.php file. I heard new Wordpress versions doesn’t allow that hack anymore, so you should read this post for more explanations.

  6. Posted July 27, 2008 at 12:45 pm | Permalink

    The Ask Apache plugin looks good, and thanks for pointing out the way anyone can look at my plugins directory.

    I’ve found two other ways of protecting it.

    1. Inside the “wp-content” file is an index.php file. You can just copy this into “wp-content/plugins”

    2. You can prevent people from looking inside your plugins directory by creating a file in there called “.htaccess” and adding the following line:

    Options -Indexes

    This is the more “correct” way of doing this, since it then tells the web browser “You’re not allowed in here”.

    http://bmw.ws.utk.edu/htaccess/examples/ has more interesting things your .htaccess file can do.

  7. Posted July 27, 2008 at 4:38 pm | Permalink

    @James: Thanks for your contributions, both are great!

  8. Posted July 28, 2008 at 8:11 pm | Permalink

    These are good tips! I had all of them set up already, except for the plugin’s directory lockout. @James, your .htaccess file worked perfectly!

    For defeating brute force attempts, I’ve installed Login Lockdown. It blocks out an IP address block for one hour after three missed attempts in five minutes. Seems like it would take a while to brute force it under those limitations. What do you guys think?

    http://wordpress.org/extend/plugins/login-lockdown/

  9. Posted July 28, 2008 at 8:46 pm | Permalink

    I didn’t know Lockdown, and it seems to be a pretty good solution. The only problemwith AskApache is that iPhone seems to cannot remember the password, so you have to re-type it again and again when you want to see a new page in the wp-admin directory.
    So thanks a lot matthew, it will check out Lockdown!

  10. Posted July 30, 2008 at 5:54 am | Permalink

    Thanks for the tips. I’ll sleep a little easier at night after this one.

  11. Posted August 7, 2008 at 3:04 pm | Permalink

    Excellent list of plugins! I’ve had issues in the pass with SQL injection hacks and since then take securing my sites very seriously. Thanks for sharing.

  12. Posted August 7, 2008 at 6:04 pm | Permalink

    The WordPress Tweaks plugin can take care of #4 and #5.

  13. Posted August 7, 2008 at 6:36 pm | Permalink

    @Gio: You’re welcome :)

    @John: Thanks for the info!

  14. Posted August 8, 2008 at 9:15 am | Permalink

    Oh,that’s great,thanks, but i really don’t want to install so many plugins,i think it will slow down the speed of my bolg.

  15. Posted August 8, 2008 at 9:47 am | Permalink

    I don’t really know if plugins can slow down blogs, I probably depends how they’re coded. We have more than 10 active plugins here at CatsWhoCode but I never felt that the blog slowed.

  16. Posted August 10, 2008 at 4:54 pm | Permalink

    Wordpress adds meta generator code (version info) in its core.It is not just that themes add them.You need to modify the wordpress core to hide the version info.

  17. Posted August 10, 2008 at 6:21 pm | Permalink

    Yeah, I heard about that recently. I think Kyle from Hack Wordpress gave a solution to solve this problem without modifying WP core. Thanks for the info!

  18. Posted August 25, 2008 at 5:54 pm | Permalink

    Ah, thanks for a nice grouping of plugins to safeguard our blogs.

  19. Posted September 15, 2008 at 10:19 pm | Permalink

    This is a great top 5… especially liked the tip about hiding the plug-in directory!

  20. Posted November 26, 2008 at 2:25 am | Permalink

    Awesome advice, I’m going to start implementing these on my blog immediately.

    Jeremy Reeves
    http://www.controlbeatingcopy.com

  21. Posted December 4, 2008 at 11:43 pm | Permalink

    On another blog I have been reading the similar post and shocked to know that someone can create an account with username admin and then admin can do everything which your blog which an administrator could. I am wondering why wordpress has these security hole. In these days my one blog is under spam attack and couple ten spam users are created. I am very confused how to stop that.

  22. Posted December 16, 2008 at 7:47 pm | Permalink

    Wow, I never paid so much attention to security issues, I just got struck about it a few days ago and I thought I should research and work on it.Thats how I landed up here. Thanks for bringing out the possibilities.

  23. Wordpress Secure Login
    Posted January 3, 2009 at 6:49 pm | Permalink

    You can use wordpress stealth login like this tutorial http://xtremenitro.org/2008/12/29/stealth-login-secure-your-wordpress-login.html

  24. Posted January 15, 2009 at 5:09 pm | Permalink

    Great article. And really good advice. Securing my WordPress blog was something I had to take loads of time and consideration. This article will be really helpful to ma friends who are just started blogging. Thanks for the information

  25. Posted January 22, 2009 at 5:39 am | Permalink

    Great. I had security trouble with my earlier blog. And unfortunately I didn’t come across this article then Sigh! Anyway, really useful information. After the attack on my earlier blog I went through several security articles. But this is the most simplest and effective article so far. Awesome work. This would be extremely useful for new bloggers. Keep up the good work. Cheers

  26. Posted February 5, 2009 at 8:42 am | Permalink

    Neat. I’ve always been crappy when it came to securing my blog. But I worked on few of your tips and now it’s really secure. Just thought to drop by and say thank you. glad I came across this article. your blog has helped me so much. Cheers

  27. Posted February 11, 2009 at 5:40 pm | Permalink

    NICE, really good advice. Simple but extremely effective. I was having a lot of trouble with security so was checking for solutions, thats when I came across this article. Made a huge impact, Thanks.

  28. Posted February 22, 2009 at 5:05 am | Permalink

    Interesting and informative write-up. Really good stuff here. Securing your blog is one of the most important aspects needed to be covered and most of the time neglected by bloggers. They are concerned more on the themes and designs more than security. Which I believe is a really bad practice. Anyway this is a really good article. Keep it up. Love your blog.

  29. Posted March 1, 2009 at 12:20 pm | Permalink

    Well, those are some of best security measure which we can take to save a wordpress blog and we can’t survive without them anymore. It is not about to just have wordpress blogs but to care about them and how to save them. I like one plugin which takes backup and send it to your specified email on daily bases. I think that is the best security measure which is essential. On the other hand, I have completely disabled registration on my all blogs, I think there is no need to enable that as nobody is going to write the content other than comments.

  30. Posted March 3, 2009 at 12:22 am | Permalink

    Your article was very helpful to me. I recently encountered some security threats to my wordpress blog and was so confused as to how it was happening. I will take your advice and address all measures contained in this blog.

  31. Posted April 19, 2009 at 7:09 am | Permalink

    I started my blog recently and found this information extremely useful though most of the things are really simple. All of them were really effective.

  32. Posted June 25, 2009 at 8:36 pm | Permalink

    That security plugin is really cool and I am wondering that why I missed it so far. One of my blogs was hacked last week and I am really worried to fix all security holes.

15 Trackbacks

  1. [...] una lista de 5 tips y plugins que te permitirán proteger tu blog. Nunca está demás a la hora de protegerte de esos [...]

  2. [...] you can make your website a little safer from getting into harm’s way. Cats Who Code has five plug-ins and tips you can use to protect your Wordpress install. Some of the tips are common sense advice that can apply to [...]

  3. By secure Wordpress blog on July 27, 2008 at 10:40 am

    [...] 5 plugins and tips to secure your Wordpress blog WP Security Scan WordPress Plugin [...]

  4. [...] you can make your website a little safer from getting into harm’s way. Cats Who Code has five plug-ins and tips you can use to protect your Wordpress install. Some of the tips are common sense advice that can apply to [...]

  5. By Web 2.0 Announcer on July 27, 2008 at 11:14 am

    5 plugins and tips to secure your Wordpress blog…

    [...]Webmasters and bloggers often have a huge fear of being hacked, and the more a website is popular, the more it is exposed to various hacking attempts. Here are 5 tips and plugins that will allow you to secure your Wordpress install, because preven…

  6. [...] 資料來源:Jas9 Taipei相關網站:catswhocode [...]

  7. [...] you can make your website a little safer from getting into harm’s way. Cats Who Code has five plug-ins and tips you can use to protect your Wordpress install. Some of the tips are common sense advice that can apply to [...]

  8. [...] you can make your website a little safer from getting into harm’s way. Cats Who Code has five plug-ins and tips you can use to protect your Wordpress install. Some of the tips are common sense advice that can apply to [...]

  9. By pligg.com on July 29, 2008 at 4:58 pm

    5 plugins and tips to secure your Wordpress blog…

    5 plugins and tips to secure your Wordpress blog…

  10. [...] a hat tip cats who code and aaron wall for pointing out a few of these plugins. Related [...]

  11. [...] Kaynak [...]

  12. By WordPress Talk - August 7, 2008 on August 7, 2008 at 10:00 am

    [...] 5 Plugins to Secure Your WordPress Blog – Our friend Jean of Cats Who Code who published a great list of WordPress plugins that help you secure your WordPress installation. [...]

  13. [...] na podstawie wpisu 5 plugins and tips to secure your Wordpress blog, przygotowany przez ekipę WordPress Polska Tagi: Bezpieczeństwo, WordPress  Brak [...]

  14. [...] 5 плъгина за повишаване на сигурността на блога ви, както и интересна възможност за сдобиване [...]

  15. [...] a hat tip cats who code and aaron wall for pointing out a few of these plugins. Related [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may 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>

Subscribe without commenting

  • Smashing Network
WordPress Appliance - Powered by TurnKey Linux