It’s a nightmare scenario. You go to your website only to find a nasty message from a hacker bragging about hacking your site. And nothing else. As far as you can tell your content is gone and you can not even find a way to log into your WordPress dashboard.
Would your business survive your website being shut down, even temporarily?
That’s exactly the situation that my friend of mine found herself in recently.
Fortunately we were able to help her out, rescue (most of) her files and get her back up and running relatively quickly. But that is not always the case.
Turns out she could have done some things to better protect herself. She learned her lesson well and she’s in much better shape today than she was before the attack.
Have You Really Been Hacked?
A lot of times people come to me saying, “My site’s been hacked,” when it really has not. With WordPress sometimes plugin conflicts can cause issues that seem to the user like a hacker has messed with something. This is most common when upgrading to a new version of WordPress if a plugin has not been made compatible with the new version yet.
While that can cause your site to crash, it’s not caused by hackers.
Not only that, but most of the sites I’ve seen that have been hacked were not just taken down by them. Most of the malicious hacks I’ve seen involved injecting some code into the site, usually with the end goal to redirect site traffic to some other website.
Without going into the gory details, my friend’s case was a little different. Her site actually showed an all white screen with an error message along the lines that a plugin conflict might produce and the hacker just wanted to crash her site. Turns out he was into stealing something else.
When I did some troubleshooting I was able to get her site back up and running in fairly short order. In her words:
I must add here, that it only took Chris 45 minutes to decipher and fix what was a rather sophisticated hack!
While I’ve never promised to be able to recover a hacked site that quickly, I do have a good track record recovering hacked WordPress sites.
Here are some things you can do to minimize the chances you’ll end up getting hacked and maximize the chances to fully recover quickly should your site crash (for whatever reason).
1. Use Strong Passwords.
I honestly think this was my friend’s biggest mistake. Again in her words,
This is what got me – I just used numbers and letters and the password was – well – kinda obvious.
Make your passwords not only hard to guess, but make them more difficult for sophisticated hackers to break as well. Randomly mix in special characters (found on the number keys with the shift button) as well as numbers and upper and lower case letters. Strong passwords make a huge difference.
Both WordPress and cPanel will tell you how strong your password is. Stronger passwords offer better protection.
The trouble is, having strong passwords also makes them harder to type in. That’s why I use 1Password to manage my passwords on my Macs. I can use really strong passwords and I do not have to remember them or type them in. 1Password will auto fill web forms for me. It’s the best of both worlds: good security & user friendly.
2. Keep Your WordPress Updated.
One of the most common ways WordPress websites get hacked is because their owners do not keep their software up to date. What happens is that older versions of WordPress can have known security weaknesses. These weaknesses are fixed by newer releases of the software.
But if you do not update your software, you leave yourself exposed.
This also holds true with plugins and themes. Beside, the newer versions of WordPress make keeping everything up to date remarkably easy. There’s not much of an excuse to keep you from updating things.
3. Backup Regularly and Often.
A good backup can cover for a ton of other issues by making it possible to revert back to how things were before your site crashed. When it comes to WordPress you need to back up your
- Theme Files
- Media Uploads
There are several different plugins and services to handle backups of your WordPress site.
But the point is backup early and backup often!
I do not believe any site is completely “hack proof.” A determined hacker with enough resources can break into most anything. Just watch an episode of NCIS!
But if you do these three things you will greatly reduce your risk of being hacked and make it much easier to recover if you do run into a problem.
Source by Chris Cree