Anyone with a WordPress website needs to take responsibility for it and keep it secure. That means being super vigilant with passwords and ensuring that WordPress core and plugin updates are implemented as soon as they are available. If you don’t want to take on this level of responsibility, hire someone to do it. Lots of developers provide a managed service contract.
Hacking can be a problem and it is not pleasant to suddenly find you are selling blue movies from your site footer!
Action you can take
- Keep WordPress themes and plugins up to date. Always, without fail. These addresses security issues and bugs.
- Make sure that the anti-virus on your own computer is up to date. Key-loggers or malware on your machine can compromise your site if you are using it to access the WordPress admin.
- Avoid cheap hosting, security is paramount. No matter what you do to secure your site, it will make no difference if the host is not safe. Look for hosts with solid support, who are transparent about issues/outages and who take regular backups that you can access. Security should be good enough to stop other sites on your server from cross infecting. 40% of WordPress hacking happens through hosting servers.
- Never ever use ‘admin’ as your WordPress username. If your site has been set up with ‘admin’ as the user name, here’s how to change it »
- Give users the privileges they need, setting everyone as an administrator is a security risk. Usually the author role will suffice if they need to add and edit posts, otherwise leave them as subscribers.
- Make sure everyone’s password is secure, a mix of letters, numbers and special characters – this is important use PassCreator» to create your passwords!
- Change your passwords once a month.
- Never install a free theme that is not from the WordPress theme repository. Many of the top Google results for free themes have malware embedded in the code!
- Remove themes & plugins from your site that are not in use.
- Keep plugins to a minimum – thus reducing the chance of a security breach.
- Never ever install a free plugin that is not from the WordPress plugin repository. Ever. They have to pass stringent tests to get in there.
- If there is a choice, choose the plugin with the highest download count. This is tried and tested.
- Make sure the plugin is regularly maintained, i.e. has been updated in the last 6 months. You can see all of this on the WordPress plugin page.
- Remove inactive plugins from your site, always.
- Unfortunately WordPress does not limit the number of login attempts by default, so install the Limit Login Attempts plugin from the WordPress plugin repository.
- Take regular backups install a plugin or better still get VaultPress by the WordPress people, it doesn’t cost much and the peace of mind is worth it more on backup plugins here »
- Delete any redundant user accounts.Disallow search engines from indexing anything that is not your main content – if you install SEO for WordPress by Yoast, it will do much of that for you.
Install a Security Plugin
If you wish to go down the plugin route for security, here are some you can use:
Advanced developer tools
- Lock down the WordPress admin, prevent file editing through the dashboard using the WordPress configuration file.
- Ensure file permissions are correctly set for the whole site
755 for directories
644 for files.
- Ensure your WordPress configuration file is not readable by anyone – add this to your .htaccess file
deny from all
- Make sure the WordPress configuration file contains the necessary encrypted security keys (salts) – you get those here »
- Hide WordPress version information and much of the unnecessary header outputs.
- If you are the only one accessing the site or if all users are in the same office. Nail down Admin access to your IP address.
- Choose a custom table prefix – the default is wp_ you can change this to something else through the WordPress configuration file.