WordPress Site Security Tips

blogtheme_04

Internet is like a secured Bank vault that has a direct access from the street. Anyone can try his luck to break in. Having your site hacked is not fun. Despite using 3rd party security plug-ins, there are still a handful of potential security risks, when running a website, that we have no control over. You, the website owner, need to pay attention to these potential security risks, in order to keep your website safe. With that in mind, here are 10 things you can do to improve your WordPress security.

1. Move to a secure hosting

When choosing a web hosting provider, try to avoid the cheapest you can find around. Not all web hosting companies are created equal and, in fact, week hosting related security account for a huge percentage of WordPress sites being hacked. Do your own research, and make sure you use a well-reputed agency with a consistent track-record for solid security measures.

It’s always worth paying a bit extra for the peace of mind you get from knowing your site is in safe hands.

2. Response to update notices immediately

Every new release of WordPress contains patches and fixes that address real or potential vulnerabilities. If you don’t keep your website updated with the latest version of WordPress, you could be leaving yourself open to attacks.

Many hackers will intentionally target older versions of WordPress with known security issues, so keep an eye on your Dashboard notification area and don’t ignore those ‘Please update now’ messages.

The same applies to themes and plugins. Make sure you update to the latest versions as they are released. If you keep everything up-to-date your site is much less likely to get hacked.

3. Use strong passwords

Around 10% of hacked WordPress websites are down to weak passwords. If your WordPress administrator password is anything like ‘xyz123’, ‘12345678’, or ‘password’, you need to change it to something secure as soon as possible. Always include at least 1 uppercase letter and 1 symbol in your password and make sure the password is at least 8 character long.

If you tend to procrastinate, you can also use a password manager like Roboform to remember all your passwords for you. If you use this method, make sure your master password is long and strong.

4.“admin” is always a bad username

Few years ago, there was a round of brute-force attacks launched at WordPress websites across the web, consisting of repeated login attempts using the username ‘admin’, combined with a bunch of common passwords.

If you use “admin” as your username, and your password isn’t strong enough, then your site is very vulnerable to a malicious attack. It’s strongly recommended that you change your username to something less obvious.

To fix this, simply create a new administrator account for yourself using a different username, log in as that new user and delete the original “admin” account. If you have posts published by the “admin” account, you can assign all the existing posts to your new user account after deleting it.

5. Set minimum Login Attempts

In the case of a hacker or a bot attempting a brute-force attack to crack your password, it can be useful to limit the number of failed login attempts from a single IP address. Limit Login Attempts does just that, allowing you to specify how many retries will be allowed, and how long an IP will be locked out for after too many failed login attempts.

There are ways around this, as some attackers will use a large number of different IP addresses, but it’s still worth doing as an additional precaution.

6. Hide your username from the author archive URL

Another way an attacker can potentially gain access to your username is via the author archive pages on your site.

By default WordPress displays your username in the URL of your author archive page. e.g. if your username is John, your author archive page would be something like http://yoursite.com/author/John

This is less than ideal, for the same reasons explained above for the “admin” username, so it’s a good idea to hide this by changing the user_nicename entry in your database, as described here.

7. Disable file editing via the dashboard

In a default WordPress installation, you can navigate to Appearance > Editor and edit any of your theme files right in the dashboard. The trouble is, if a hacker managed to gain access to your admin panel, they could also edit your files that way, and execute whatever code they wanted to. Therefore, it’s a good idea to disable this method of file editing, by adding the following to your wp-config.php file:

define( ‘DISALLOW_FILE_EDIT’, true );

8. Maintain a regular backup

I can’t overemphasize the importance of making regular backups of your website. This is something that many people put off until it’s too late. Even with the best security measures at your disposal, you never know when something unexpected could happen that might leave your site open to an attack. If that happens you want to make sure all of your content is safely backed up, so that you can easily restore your site to its former glory.

The WordPress Codex tells you exactly how to backup your site, and if that seems like too much hard work, you can use a plugin such as WordPress Backup to Dropbox to schedule regular automatic backups.

9. Try to avoid using free themes

As a general rule, it’s better to avoid using free themes, if possible, especially if they aren’t built by a reputable developer. The main reason for this is that free themes can often contain things like base64 encoding, which may be used to sneakily insert spam links into your site, or other malicious code that can cause all sorts of problems. If you really need to use a free theme, you should only use those developed by trusted theme companies, or those available on the official WordPress.org theme repository.

The same logic applies to plugins. Only use plugins that are listed on WordPress.org, or built by a well-established developer.

10. Install security plugins

In addition to implementing all of the measures above, there are many plugins you can use to improve your site’s security.

This may all sound pretty intimidating, especially if you’re a beginner. This article is not intended to scare anyone, it’s just important to discuss the topic of security regularly, as we want to make sure you stay one step ahead of the hackers! You don’t have to do everything on this list (although it certainly wouldn’t hurt). Even if you just remove the ‘admin’ username and start using stronger passwords, that will reduce the likelihood of being hacked.