This is the 4th post in a series about WordPress security. If you’re the type that likes to start at the beginning, you can pick up on the full series here. If you’re the sort that likes to jump in with both feet, keep reading about how to keep your WordPress site secure.
1. Chose the Correct WordPress Hosting Solution
There is no, one size fits all, “best” hosting solution. Choosing the Wordpress hosting vendor means you pick the solution that works best for you. If you prefer a hands-on hosting solution you need to have a provider that has a strong security team that can support your questions (and problems) as needed. You may also want the provider to have relationships with web security specialist that you can hire if you need them.
If you never want to worry about WordPress security, consider using the simpler WordPress.com hosting solution. You’ll have far less flexibility but the maintenance is taken care of for you.
2. Monitor Your Website
There are a few free, simple things you can do to monitor your website to be sure it is up and clean. I’m recommending three tools: Pingdom, Google Webmaster Tools and the Wordfence WordPress plugin. Some of these tools may be a bit duplicative, but there’s no cost, so no worries.
Pingdom is a free service that monitors your site and sends you an email notification if your site goes down. It also provides a weekly report of your overall site uptime. If I had gotten this notification I would have caught the problem sooner.
Google Webmaster Tools
This recommendation comes from a commenter on this blog. Bhavesh Desai recommended using Google Webmaster Tools to clean my infected site. As you can see below, Google didn’t detect my infection.
HOWEVER, Google Webmaster Tools did have concrete evidence of the outage and if I had set up the email notifications to be more inclusive, I would have been emailed an outage notification.
Wordfence is probably the best tool for monitoring your site and preventing it from attack. I only became aware of this WordPress plugin through writing about my site issues and I’m thankful that a previous commenter recommended it to me. The features you get from the free version is very impressive.
Wordfence free features:
- Realtime security scans
- Scanning of core WordPress and theme files
- File repair
- Malware scanning
- Backdoor scanning
If you want scheduled, frequent scans and premium support you can upgrade to $39/year.
3. Monthly Maintenance Plan
Before the hack I was taking a monthly backup of my WordPress database and saving it in the cloud. Dreamhost provides infrequent backups but I want to have my own, monthly backup that I can rely on. Backing up your WordPress database is pretty straightforward once you figure out the command. Here’s a resource on it. It’s pretty techie, but once you figure it out you can save it and run quickly.
To keep my site secure, this is my new routine:
- Backup WordPress database as described above – monthly
- Review and upgrade WordPress, themes and any plugins – weekly
- Run a Wordfence scan – weekly
- Check pingdom report – weekly
Now if you want to upgrade WordPress core files automatically, you can modify your wp-config.php file to allow for auto upgrades. I went with the “minor” updates which means it will automatically upgrade minor updates, but I will manually do major upgrades, which are pretty infrequent anyway.
define( 'WP_AUTO_UPDATE_CORE', minor );
[important] If you have other tips for keeping WordPress secure, put them in the comments below…[/important]
Photo credit: Flickr