11 Ways To Secure Your WordPress Blog

secure wordpressSecuring 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.

Image credit: rommel_md

Damien Damien

Damien Oh started writing tech articles since 2007 and has over 10 years of experience in the tech industry. He is proficient in Windows, Linux, Mac, Android and iOS, and worked as a part time WordPress Developer. He is currently the owner and Editor-in-Chief of Make Tech Easier.


  1. 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.

  2. @ 5

    WP 2.6.1. creates the version info between head and /head by itself

    your info about deletion is false

    regards Monika

  3. 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?

  4. Wow – these are all great tips. All of my blogs are WordPress and I am off now to make some changes to increase security.

    1. That seems to be an useful plugin. It is still in beta. I will test it out and see how it fares.

  5. 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?

  6. Good Article . Thanks . Another one I found is good and very step by step hands on approach :


  7. Hmm just moved to WP ……and was thinking that if my account can be hacked….how to protect it…..?
    And got some points here….

  8. 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.

  9. 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


  10. 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 ;)

  11. great security tipps! thank you so mutch. now i have downloaded and install some of the plugins in your post :)

    regards tobias

  12. if u use plugins, it shows in head profile. how do u hide the plugin info from showing in head( ie: . )

    1. 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.

  13. 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.

  14. You forgot an extremely important tip – use a host that doesn't suck. Some hosts are vulnerable to security breaches and will lead your site to be hacked even if you have the best security practices.

  15. That will apply to all websites, not only wordpress site. The best way is to google around for various webhost reviews before commit yourself to a good host.

  16. Fair nuf, though the current wave of viral infections targeting a certain host seem to be both host and wordpress specific =) great article, thanks!

  17. Very nice info there…certainly security is a major concern which should be taken seriously.

  18. Thank you for putting this list together… I was actually looking for some sort of https wordpress login… does it exist! the search goes on.

Comments are closed.