Before touching anything: a symptom check to tell whether it's a hack, a broken site or normal noise, and the steps for each case.
Breathe. A site that "looks wrong" causes panic, and panic leads to deleting things, reinstalling blindly or paying whoever answers first. There's almost always time to do it in order: understand what's happening first, act second.
Reviewed in
What does "I got hacked" actually mean?
"I got hacked" is used for very different things: a site that won't load, a strange email, an ad that appears out of nowhere. And the movie image of someone at a black screen attacking you personally is almost never the real one. Usually it's one of these four:
- It isn't a hack: the domain expired, the hosting suspended the account or an update broke something.
- It's noise: bots trying passwords or sending spam to every site in the world, yours included.
- Someone got into an account: WordPress, hosting or email, almost always through a reused or leaked password.
- The site is compromised: an automated program found an outdated plugin and left code to send spam or redirect visitors.
Each one is fixed differently, and what helps one can make another worse. So before touching anything, tick what you see.
Vulnerability, exploit, malware, CVE? What each word means, and how much is at stake in each case, is in this other guide.
Symptom check
Tick everything you see, even if it seems minor. The check tells you which of the four cases is most likely and takes you to its steps.
Doesn't look like a hack: the site is down or broken
What you ticked is usually a technical or admin problem, not someone breaking in.
An expired domain or hosting plan, an update that broke a plugin, a PHP version change on the server or a certificate that didn't renew look just as alarming as an attack, but they're fixed differently: without deleting anything.
Steps, in order
Not a hack: it's the normal background noise of the internet
Annoying, but it doesn't mean anyone got in.
Every WordPress site gets automated password-guessing attempts and form and comment spam every day. Trying isn't succeeding. And if you get bounces of emails you didn't send, someone is using your domain as the sender (spoofing): that's an email configuration problem, not a site problem.
Steps, in order
Someone got into one of your accounts
The priority is getting back in control, starting with your email.
It's almost always a password reused on another service that leaked, or access that was shared and never revoked. First you recover the accounts; then you check whether they left anything on the site.
Steps, in order
The site is compromised
Someone added code or content to it. It can be fixed, methodically.
It's almost never personal: automated programs crawl millions of sites looking for outdated plugins or weak passwords, and use the ones they find to send spam, redirect visitors or rank other sites on Google.
Steps, in order
So it doesn't happen again
- WordPress, plugins and theme kept up to date (turn on automatic minor updates).
- Few plugins, from official sources; never "nulled" versions.
- Unique passwords and two-factor authentication on WordPress, your hosting and your email.
- Automatic backups stored off your hosting, and test restoring them now and then.
- Everyone with their own user and only the permissions they need.
- Someone who checks the site every month, you or a maintenance service.
FAQ
How do I know if my WordPress site was hacked?
Why would anyone hack me if my site is small?
Is restoring a backup enough?
Does a security plugin fix it on its own?
How long does the Google warning take to go away?
Related services
Would you rather we took a look?
Send us the site's link and what you ticked in the check. We'll tell you what it is and what to do.