My WordPress Site Got Hacked. What Do I Do Now?
Your site is redirecting to a pharmacy in another country. Or Google is showing a big red warning. Or a customer texts you a screenshot of something you definitely didn’t put there. Take a breath. This is fixable, and it happens to a LOT of small business sites.
The short answer
Change your passwords, take a backup of the hacked site for reference, then clean it: remove the bad code, update or reinstall WordPress, your theme and every plugin, and delete anything you don’t use. If Google flagged the site, request a review in Search Console once it’s clean. Then set up updates, backups and security so it doesn’t happen again.
The first hour
- Change every password: WordPress admins, hosting, FTP and the database. Use new, long ones.
- Check your users in WordPress. Delete any admin you don’t recognize.
- Call or chat with your host. Many hosts can scan the site and tell you what they see. Some will take the site offline to protect visitors, and that’s okay.
- Take a backup of the site as it is now. You’ll want it if something goes wrong during cleanup.
How sites usually get hacked
Most of the time it’s not a mastermind. It’s an outdated plugin or theme with a known hole in it, a weak password, or a “free” premium plugin downloaded from a sketchy site. The hackers use tools that scan thousands of sites for the same old problems.
Cleaning it up
This is the part that takes skill. The goal is to get rid of every bit of bad code, not just the part you can see. If you miss one hidden file, the hack comes right back.
- Reinstall WordPress core files from a fresh copy.
- Reinstall your theme and plugins from their official sources, at the latest versions.
- Delete themes and plugins you’re not using.
- Look for strange files in your uploads folder and changes to files like .htaccess.
- Check the database for spam links or users that don’t belong.
If you have a clean backup from BEFORE the hack, restoring it can be faster. Just make sure you also fix whatever let them in, or they’ll be back.
Getting Google’s warning removed
If Google flagged your site, you’ll see it in Google Search Console under Security issues. Once the site is truly clean, you request a review there and explain what you fixed. Google checks the site and removes the warning if it’s clean. That can take a few days to a few weeks, so don’t resubmit while you wait.
Keeping it from happening again
- Keep WordPress, your theme and plugins updated, every month at least.
- Use strong passwords and two-factor login for every admin.
- Daily backups stored somewhere other than your hosting account.
- A security plugin or firewall that watches for attacks.
That’s exactly what a WordPress care plan is for. My care plans include updates, daily backups and security monitoring, so you’re not finding out from a customer. If the bigger problem is that nobody owns your tech at all, that’s fractional IT for small business.
Book a free 15-minute call and tell me what you’re seeing. If it’s an emergency, say so up front.