Posted on: April 18, 2016
Categories: Implementation support, Five minute briefing, Troubleshooting and consultancy, services
Wordpress is at the heart of many thousands of websites around the world. Just by virtue of its popularity it’s become vulnerable to attack. That doesn’t mean that Wordpress is insecure. It’s just that sometimes organisations run it in an insecure way.
We would like to propose three sets of actions, which, when put together, will make a strong defence for any Wordpress site:
Policies and practices
- Keep the number of people with admin rights to a bare minimum. Ideally have just two administrator logins (so that one can be used if you lose the password for the first).
- Don’t use an administrator login for general use, eg. writing posts and editing pages.
- Never share usernames or passwords between people. You’ll want to be able to audit who did what.
- Only select plugins and themes that have been tested with your version of Wordpress, have been updated within the last few weeks, and have a solid number of happy users.
- Ensure your files and data are backed up regularly (the frequency will depend on how often things change, but weekly would be a minimum) - and know how to restore them if the worst should happen. There are plugins, like Akeeba Backup, that can help with this.
- Ensure your plugins and themes, and the Wordpress core code is updated immediately new versions are released. The Wordfence plugin will email you whenever there’s something to update.
- Use strong passwords, and store them securely - eg. with a password vault such as LastPass.
- Change any default usernames or passwords to something new. This applies to Wordpress, to the Database, and to your FTP user.
- Make sure your database user cannot access other databases - and especially isn’t the root user.
- Consider restricting access to the Admin dashboard from known IP addresses (although this may not be practical if people are moving around a lot).
- Use a plugin such as Rename WP login to change the URL of the login page
- Only get plugins and themes from known sources, such as the Wordpress repository.
- Remove any plugins or themes that you are not using.
- Use a plugin like Wordfence to keep an eye on your site. It provides a number of tools to check for strange activity and changes in the code. You will need to get a little bit technical to interpret whether the warnings it gives can be ignored safely.
- Set up a regular monitor to see whether your site is behaving properly. There are many services that do this, some free. The paid for ones will offer more frequent monitoring, and usually a better user interface. Most will give you a free trial period.
- Consider using a plugin like Enhanced Plugin Admin which will show at a glance which of your plugins may be out-of-date.