Was my WordPress site hacked? First, find out what happened

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.

What you see on the site
What you see on Google
Your accounts
Emails and notices
Urgency: medium

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

Urgency: low

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

Urgency: high

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

Urgency: high

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

FAQ

How do I know if my WordPress site was hacked?
By the symptoms: content or ads you didn't add, redirects to other sites, warnings from Google or Chrome, unknown admin users or a malware notice from your hosting. An error or a blank screen, on the other hand, is almost always a technical problem, not a hack.
Why would anyone hack me if my site is small?
It's almost never personal. Automated programs crawl millions of sites looking for outdated plugins or weak passwords. A small site is just as useful for sending spam, hosting scam pages or redirecting visitors.
Is restoring a backup enough?
It's a good starting point if the backup predates the problem. But if you don't close the door they came through (an outdated plugin, a leaked password), it happens again: restore, update everything and change the passwords.
Does a security plugin fix it on its own?
It helps detect and block, but it doesn't replace the basics: up-to-date software, few plugins from trusted sources, unique passwords with two-factor authentication and backups stored off your hosting. If the site is already compromised, the clean-up still has to be done.
How long does the Google warning take to go away?
After cleaning the site and requesting a review in Search Console, it can take from a day to a few weeks, depending on the type of problem. In the meantime, check that nothing from the attack is left behind.

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.

Related service

Website repair Is your site down, hacked or throwing errors? We diagnose it and get it back online, quickly and without fuss.