WordPress is the most popular blogging platform all over the world. As you become popular in search engine and getting traffic, you may be inviting hackers to test your protection system against them. Hacking can be happened any moment, so you should not wait it to happen and then take action.
When I was checking my Wassup traffic details this morning, I found that 3 suspicious records trying to get access using SQL Injection. Thankfully nothing happened and they got tired trying. However, I searched online for WordPress protection and got some tips for it. I compiled all the tips and came with the following:
Updating WordPress became very easy now. From WordPress 2.7+, you can now update your blog with just a click. So don’t feel lazy upgrading your blog – as soon as they release any updated version, try to upgrade your blog. If you are using older version, you can use WordPress Automatic Upgrade plugins and update to the latest version.
Update Your Plugins Too
As plugins are developed by third-party programmers, they may be more vulnerable than WordPress itself. I would suggest you to check plugins profile to read the comments and stats before using any. Update your plugins regularly as well.
Protecting Your Admin Profile
Create a new user and give it full administrative privileges. Once you have done that delete your old “admin” user’s profile. As a result hacker has to crack both your user name and password.
Stop Creating Guest Account
If your blog is not Multi User blog, there is no need to allow visitors to create Guest account. Uncheck Settings > General > Membership > Anyone can register option.
Use Strong Password
Don’t use any obvious words sequence, numbers sequence, your name, town, date of birth etc as password. Try to use a combination of small letter, capital letter and numbers in your password. You can use Strong Password Generator for create your password. This website also give you easy way to remember your password.
Protect Your wp-admin Folder
You can add a .htaccess file in your wp-admin folder and block all IP addresses except the IP address you use, may be your home IP, office IP etc.
Even though most of the Hosting providers offer regular backup, still you should not rely on them. Couple of months ago, I found my website was unavailable and I contacted GoDaddy support. They informed they are resolving the problem and they took 5 days to fix. Horribly on 3rd day they informed me that all my records has be wiped out, so I may not get my database and files back. Fortunately, I had my website backup in my pc, and they fix my problem, I already transferred my website to Hostgator and kept my website running.
Use Login Lockdown Plugins
Login Lockdown Plugins records each failed login attempts and lock a particular IP for a while for a number of failed login attempts.
Delete WordPress Version
Hackers may find out your WordPress version and exploit its vulnerabilities. You may want to delete the WordPress version from your website source. Go to Appearance > Editor and choose the Header.php file and delete <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> from the source code to hide your WordPress version.
Move the wp-config.php file
Also since version 2.6, WordPress allows you to move the wp-config.php file to a higher level. Because this system file contains by far more sensitive information than any other, and because it is difficult to access the parent file server level, it certainly makes sense to store it outside of the actual installation. WordPress automatically looks at the highest underlying index for the configuration settings file. Any attempt by users to adjust the path is thus useless.
Use Security Plugins
If you found that you are being targeted frequently, you can use security plugins to ensure more security for your blog. You can find some useful security plugins for wordpress here
Source: How to protect WordPress blog?