How To Secure Your WordPress Blog

Comments Add comments

How would you feel if I was telling you that your home is currently door closed but not locked ? To ease your mind, I bet you would make sure it does not happen again. Locking the door is a measure so simple and quick to do that not doing it just does not make much sense.

Blogs are just the same!

Here are a few basic things that you can implement to secure your blog and ease your mind :

Use A Strong Password
That’s the equivalent of the key for your home. A strong password should be having at least 8 characters and a random combination of letters, numbers and symbols. You can have it generated for you using a strong password generator (found easily on the web) or you can create your own. Just make sure you don’t forget it.

Use A Robots File
This is a plain text file that defines search engine access rules to the resources of your blog. You want to have one of those to prevent search engine bots (spiders) from indexing some sensitive part of your website. Among others, this file can avoid duplication of content issues and prevent your blog from being penalized.

Simply create an empty text file called robots.txt and place it at the root of your web server (/www). Now edit this file and define its content. The syntax is quite simple :

User-Agent defines a section of rules for one search engine spider (ex: Googlebot) or for all (*).
Disallow precises the pages that should not be indexed by the spider.
Allow indicates the pages that should be indexed by the spider.

Here is the robots.txt file that I use :

User-agent: *
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /trackback
Disallow: /feed
Disallow: /comments
Disallow: */trackback
Disallow: */feed
Disallow: */comments
Allow: /wp-content/uploads

I explicitly allow the content of my uploads to be indexed. This directory contains images and it can lead to extra traffic.

Use The Latest Version Of WordPress
With each new version of WordPress comes a list of new features, improvements and bug corrections. You want to make sure you are using the latest version of WordPress to benefit from fixes correcting possible security issues from previous versions.

Keep The WordPress Version Hidden
The default installation of WordPress shows the version you use on your blog pages (hidden to the readers but viewable when looking at the source code). It is advised to hide it : a hacker would love to have this information to research specific known flaws of the particular version you use.

To remove the version information :

  • Edit the file Header located in your WordPress administration area under Presentation -> Theme Editor.
  • From the code, remove the line :
    <meta name=”generator” content=”WordPress <?php bloginfo(’version’); ?>”/>.

Hide Your Plugins And Resouces
All the plugins installed in your blog are located in the /plugins/ directory of your website. By default, nothing is done to prevent anybody from spying on you and getting the list of all the plugins that you are using. This again could lead to the usage of hacking methods if some of your plugins are known to bring security issues.

To prevent your list of plugins from being easily available, just upload an empty index.html file in the directory /wp-content/plugins/. A request to the URL http://www.yourSite.com/wp-content/plugins/ will show a nice blank page.

You could do the same for other resources of your website. For example, for the list of all your images located in /wp-content/uploads/.

Update Your Plugins
With WordPress 2.3, it is now possible to know if your are using the latest version available of your plugins. Make sure you update each of them regularly.

Block Admin Folders
For additionnal security, a file can be created to control the IP addresses accessing your administration area. This file called .htaccess should be uploaded in the wp-admin folder. I direct you to Lorelle’s post about .htaccess for more details (attention, in the case of Lorelle the .htaccess file is done to ban from the entire website).

Backup Your WordPress Database
Because you never know what could happen and because you certainly don’t want to lose all the content of your blog, I advise you to backup regularly. Use the following plugins to help you.

WordPress Plugins For A Blog More Secure

WordPress Database Backup
This plugin allows you to backup your wordpress database whenever you choose. The backup can be scheduled to run on a daily basis automatically. It can be then saved on your web server or emailed to you.

Akismet
While checking your comments, I consider Akismet to be a plugin helping with security. Each time a comment is entered on your blog, Akismet web service is called to check its validity. This plugin comes with the default WordPress installation.

Instant Upgrade
Whenever a new version of wordpress is available, this plugin makes the process of upgrading very easy, simply by pushing the button. You will have to make sure that the WordPress files located on your server are writable.

WordPress Version Check
Simply tells you when a new version of WordPress is available.

WordPress Scanner
This plugin scans your WordPress setup, warns you about security issues and sometimes recommends actions.

Admin SSL
This plugin adds security to your login and admin pages through SSL.

Login Logger
The plugin will log information concerning logins to your WordPress.

Conclusion
Hopefully you enjoyed reading this article as much as I enjoyed researching and writing it for you.
I did not implement all the points and plugins described above but that’s a good starting list to consider for securing your WordPress blog. Make sure to backup your WordPress database before any implementation of the above.

I am interested in knowing how you deal with security for your blog. Have you ever had security issues? What did you do about it? How do you make your blog more secure?

Please feel free to comment hereafter for any complementary information.

About this post:
This post is submitted to the Internet Marketers United Group Writing Project.

FabNet Revenue  If you like what you read, please
 consider subscribing to my RSS feed.


You May Also Enjoy:

16 Responses to “How To Secure Your WordPress Blog”

  1. Court said:

    […] How To Secure Your WordPress Blog by Fab at FabNetRevenue.com […]

  2. links for 2007-10-16 :: jason brown said:

    […] How To Secure Your WordPress Blog nice overview with 2.3 tips (tags: wordpress security hackers spam) […]

  3. Localref said:

    Guess which participant will give you the best return for your comment effort.
    Table of Link Values of participants
    Just a quick survey of how many links on each participants article page.
    It will eventually be an article but I thought you would like to see the table. I was amazed!

  4. 44 Internet Marketing Articles That Everyone Should Read: Internet Marketers Group Writing Project | Internet Marketing | Make Money Online | Strategy | Services said:

    […] How To Secure Your WordPress Blog by Fab at FabNetRevenue.com […]

  5. Kalidasa said:

    Thanks for the info, I know I’ll be able to use it sometime. Unfortunately, I am not so educated in the website field. I know plenty about how to heal bodies. Just starting a blog on how to do self healing, so I can use the education. I just hope I can figure out the whole wordpress thing. Thanks to you and Court for doing this project. Heading over to your ‘How to create a regular website with wordpress’ article to see if I can figure out how to sell an ebook with WP. I look forward to learning more.

  6. Fab said:

    Hi Kalidasa,

    Welcome. If you have any topics you would like to see on this blog about WordPress don’t hesitate to mention… I am fairly new to WordPress, but I am trying to learn all the little bits of it and want to write more How To.

    Have a great day.
    Fab

  7. 何如保护你的wordpress博客安全 » Rapid Search said:

    […] Wordpress以其简单易用而又有强大的扩展性成为了世界上最为流行的blog软件,但如同其他cms系统一样,wp也有许多的安全问题,比如Google中搜索wordpress漏洞有103,000项向结果。今天正好看了一篇如何保护你Wordpress博客(How To Secure Your WordPress Blog)的文章,介绍了几条保障你wp blog安全的做法,下面做了简单翻译摘录: […]

  8. Internet Marketers United GWP said:

    […] Of A Link by Sutoco How To Use Google Webmaster Tools - And 5 Reasons Why You Should by James How To Secure Your WordPress Blog by Fab Common Internet Marketing Mistakes by Bryan Ultimate List Of Free Blogging Platforms by Fred […]

  9. Courtney Tuttle’s Internet Marketing Group Writing Project | Newest on the Net said:

    […] Of A Link by Sutoco How To Use Google Webmaster Tools - And 5 Reasons Why You Should by James How To Secure Your WordPress Blog by Fab Common Internet Marketing Mistakes by Bryan Ultimate List Of Free Blogging Platforms by Fred […]

  10. Internet Marketing Articles Writing, Motivation, Business Coaching, Design - Center of Muse — Helping Freelancers, Entrepreneurs Start-Up Small, Home, Businesses Based on Passion. said:

    […] How To Secure Your WordPress Blog by Fab at FabNetRevenue.com […]

  11. Blogging Made Devilishly Simple. » Blog Archive » Courtney Tuttle’s Group Writing Project - the list said:

    […] How To Secure Your WordPress Blog by Fab Common Internet Marketing Mistakes by Bryan Ultimate List Of Free Blogging Platforms by Fred How Do You Build Relationships With Your Blog Visitors? by Pearl The One Thing To Know When Writing With Keywords by Simonne […]

  12. digitalkeyto.info » Internet Marketers Group Writing Project | Internet Marketing | Make Money Online | Strategy | Services said:

    […] How To Secure Your WordPress Blog by Fab at FabNetRevenue.com […]

  13.   CourtneyTuttle.com Internet Marketers Group Writing Project by Internet Marketing Mind said:

    […] How To Secure Your WordPress Blog by Fab at FabNetRevenue.com […]

  14. Idetrorce said:

    very interesting, but I don’t agree with you
    Idetrorce

  15. Fab said:

    Idetrorce: What do you do differently to secure a wordpress blog ?

  16. 渣 » Blog Archive » Wordpress博客安全设置(转载) said:

    […] Wordpress以其简单易用而又有强大的扩展性成为了世界上最为流行的blog软件,但如同其他cms系统一样,wp也有许多的安全问题,比如Google中搜索wordpress漏洞有103,000项向结果。今天正好看了一篇如何保护你Wordpress博客(How To Secure Your WordPress Blog)的文章,介绍了几条保障你wp blog安全的做法,下面做了简单翻译摘录: […]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Close
E-mail It