11 Ways To Secure Your WordPress Blog
Securing your WordPress blog is the most important thing that you must do after you have set it up on your server. There shouldn’t be any reason for you to leave your WordPress wide open for hackers to creep in and steal your information and/or destroy your data. Here are 11 ways that you can use to secure your WordPress blog.
1) Encrypt your login
Whenever you try to login to your website, your password is sent unencrypted. If you are on a public network, hacker can easily ‘sniff’ out your login credential using network sniffer. The best way is to encrypt your login with the Chap Secure Login plugin. This plugin adds a random hash to your password and authenticate your login with the CHAP protocol.
2) Stop brute force attack
Hackers can easily crack your login password and credential using brute force attack. To prevent that from happening, you can install the login lockdown plugin. This plugin records the IP address and timestamp of every failed WordPress login attempt. Once a certain number of failed attempts are detected, it will disable the login function for all requests from that range.
3) Use a strong password
Make sure you use a strong password that is difficult for others to guess. Use a combination of digits, special characters and upper/lower case to form your password. You can also use the password checker on WordPress 2.5 and above to check the strength of your password.
4) Protect your wp-admin folder
Your wp-admin folder contains all the important information and it is the last place that you want to give access to others. Use AskApache Password Protect to password protect the directory and give access right only to authorized personnel.
5) Remove WordPress version info
A large number of WordPress theme include the WordPress version info in the meta tag. Hackers can easily get hold of this information and plan specific attack targeting the security vulnerability for that version.
To remove the WordPress version info, log in to your WordPress dashboard. Go to Design->Theme Editor. On the right, click on the Header file. On the left where you see a lot of codes, look for a line that looks like
<meta name=”generator” content=”WordPress <?php bloginfo(’version’); ?>” />
Delete it and press Update File.
Update: In WP2.6 and above, WordPress automatically includes the version in the Wp_head section. To fix this, you can simply install the WP-Security Scan plugin.
6) Hide your plugins folder
If you go to your http://yourwebsite.com/wp-content/plugins, you can see a list of plugins that you are using for your blog. You can easily hide this page by uploading an empty index.html to the plugin directory.
Open your text editor. Save the blank document as index.html.
Using a ftp program, upload the index.html to the /wp-content/plugins folder.
7) Change your login name
The default username is admin. You can make it more difficult for the hacker to crack your login credential by changing the login name.
In your WordPress dashboard, go to Users and set up a new user account. Give this new user administrator role. Log out and log in again with the new user account.
Go to Users again. This time, check the box beside admin and press Delete. When it asks for deletion confirmation, select the “Attribute all posts and links to:” and select your new username from the dropdown bar. This will transfer all the posts to your new user account. Press Confirm Deletion.
8) upgrade to the latest version of WordPress and plugins
The latest version of WordPress always contains bugs fixes for any security vulnerabilities, therefore it is important to keep yourself updated at all times. The latest version is WP 2.6 (as of this post). You can download it here.
9) Do a regular security scan
Install the wp-security-scan plugin and perform a regular scan of your blog setting for any security loopholes. This plugin can also help you to change your database prefix from wp_ to a custom prefix.
10) Backup your wordpress database
No matter how secure your site is, you still want to prepare for the worst. Install the wp-database-backup plugin and schedule it to backup your database daily.
11) Define user privilege
If there is more than one author for your blog, you can install the role-manager plugin to define the capabilities for each user group. This will give you, the blog owner, the ability to control what users can and cannot do in the blog.
Tags: security, WordPress
Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.





20 pingbacks/trackbacks (Click to open)
- Fatih Hayrio?lu'nun not defteri » 14 A?ustos 2008 web’den seçme haberler » FriendFeed, Nedir, de?ildir, Ba?lant?, Ajax, Niçin, CSS'de, Tan?mlamalar, EtkinlikleriSpecificity, Tasar?mc?
- 11 Ways to Secure your WordPress Blog :: WPLover
- Learn How to Secure Your WordPress Blog
- What Had Happen Wuz! » Blog Archive » How to secure a WordPress blog from hackers!
- Ist Deine Wordpress Installation sicher? | Rol!'s Blog
- 11 formas para aumentar la seguridad de tu blog en WordPress | Blogs Bazaar
- 11 formas de aumentar la seguridad de tu blog en WordPress | Blogs Bazaar
- What blog software to use if not WP
- Wordpress Security Issues | SEO, PPC and Analytics by Ryan Nagy. The Web Whisperer
- Ways To Secure Your Wordpress Blog | im.a.lame.shit
- Grab bag: Capping broadband (Jarrett House North)
- How to Secure Your WordPress Website :: Christopher Ross
- Configure the Settings on a WordPress Blog (Tutorial)
- Ultimate Resources to Help Secure Your Wordpress Blog - blog hacking, blog security, securing wordpress, Wordpress, wordpress hacking, wordpress hacks, Wordpress plugins, Wordpress security, wordpress security plugins, Wordpress tips - Technically Persona
- 15 règles pour sécuriser WordPress | Emmanuel GEORJON
- 36 New Wordpress Tips, Tricks, Tutorials & Hacks | TechnoBuzz.net
- Securing your WordPress blogs — Hoyden About Town
- Securing your WordPress websites
- 11 Ways To Secure Your WordPress Blog | MTA Base
- Is Your WordPress Blog Haunted? | The Blog Herald
[Click to close]27 Responses
You state at point
6.) Hide your plugins folder
to use a blank html page. What about a .htaccess file containing only:
Options -Indexes
This also avoids directory listing of that folder.
Reply
@ 5
WP 2.6.1. creates the version info between head and /head by itself
your info about deletion is false
regards Monika
Reply
Nice writeout ,good tips shared
Reply
thanks for the great article…very help..from Lily–http://www.coolnailsart.com
Reply
Very useful info–thanks for sharing!! from Stephen at http://www.metaloop.com
Reply
On Linux you should use .htaccess files to protect folders – all not just plugins – look at themes!.
Never have a database backup routine in your Admin panel. They hack your Admin panel and then ha, ha they restore an old version and delete all backups.
And what about renaming wp-admin to something else?
Reply
Wow – these are all great tips. All of my blogs are Wordpress and I am off now to make some changes to increase security.
Reply
Most of the suggestions you list are features of this plugin: Maximum Security for Wordpress – Keeps Wordpress Secure
I just ran across it today while looking for info on how to make Wordpress security stronger.
Thanks for your tips too.
Reply
Damien Reply:
January 10th, 2009 at 6:37 am
That seems to be an useful plugin. It is still in beta. I will test it out and see how it fares.
Reply
Point #5 is not accurate anymore, under WP 2.6 or later I think. The generator and version info is now more difficult to remove, but still advised to do it. It is now called in wp_header, instead of simply appearing in the header.php template. Can you repost and explain the current way to remove this revealing information, as many people may wish to disable the version from showing for privacy and security reasons?
Reply
Damien Reply:
January 14th, 2009 at 3:14 am
@Dword: You can easily fix that by installing the Wp-Security scan plugin.
Reply
Good Article . Thanks . Another one I found is good and very step by step hands on approach :
http://www.itoneworldsystem.com/blog/2009/01/12/how-to-protect-your-blog-from-the-hacker/
Reply
Hmm just moved to WP ……and was thinking that if my account can be hacked….how to protect it…..?
And got some points here….
Reply
Nice tips. Thanks for Sharing tips.
Reply
There is an alternative to point #6.
You can also Create an .htaccess file to prevent others from Browsing your Directories.Open Notepad and add the following code :
Options –Indexes
Save it as .htaccess and Upload the file to your plugins and themes directories.This is a more secured and Correct way of denying permissions to the Browsers.
Reply
Damien Reply:
February 16th, 2009 at 12:36 am
Thanks for the tip.
Reply
Handy Damien.
Ha! Just wrapped a security video tutorial about this, because I was fed up of finding such bitty guides everywhere. Wish I’d seen this first… I should have added your points about brute force attacks and encryption! –> Drawing board.
Still, there are some other fresh points there, spelling out .htaccess and stuff, and saving installing AAPP for most folks with apache svr access, so hope that helps too..
Video How-to: 10 Tips To Make WordPress Hack-Proof
http://guvnr.com/web/blogging/10-tips-to-make-wordpress-hack-proof/
Reply
Damien Reply:
February 26th, 2009 at 6:02 am
It’s great of you to create the video to educate the masses. I appreciate that.
Reply
Hey Damien,
Thank you. Hopefully lots more of them.
It’s nice to meet you, Sir. Duly subbed up. Hmmn, gotta find time to read them thar feeds, mind ;)
Reply
great security tipps! thank you so mutch. now i have downloaded and install some of the plugins in your post :)
regards tobias
Reply
if u use plugins, it shows in head profile. how do u hide the plugin info from showing in head( ie: . )
Reply
Damien Reply:
April 3rd, 2009 at 3:49 am
Most plugins show up in the head tag is because they are using extra javascript or css files. You can use the plugin php_speedy to combine them all and show only one file. In this case, your plugin won’t appear in the head tag.
Reply
The AskApache Project is outdated and does not work properly anymore on WP 2.7.1 – only a few items left are working and it is more hassle than help. I would manually setup a .htaccess file for wp-admin and either allow access based on IP address or username/password instead for now.
Reply
Nice writeout, thanks for the tip.
Reply
Thanks for the great tips and plugins!
Reply
Thanks for the tips.
Reply
Hay Damien some good and clean points. Thanks for putting all of them at once place.
Reply