WordPress Site Hacked? What to Do in the First Hour
Contain it, preserve evidence, find how they got in, then rebuild from clean sources and rotate every credential. The order matters, and skipping a step is how sites get reinfected.
A suspension notice, a vulnerability report, a legal or copyright letter, a renewal invoice or a Search Console alert.
Do this first
Diagnose it
Website owners get a steady stream of alarming messages. Some are real and have deadlines. Many are scams that copy the look of real notices. The rule for all of them is the same: never act from inside the message. Confirm it by going to the service yourself.
| What arrived | What it usually is |
|---|---|
| Your host says the account is suspended for malware, phishing or spam | Often real. Confirm by logging in to the hosting panel directly. See hosting account suspended. |
| A stranger reports a "vulnerability" such as a missing DMARC record or clickjacking header and asks about a bounty | A beg bounty: an automated scan sent in bulk, hoping for payment. Rarely urgent. |
| A copyright or DMCA claim with a link or attachment to "see the evidence" | Often a malware lure. Real takedown notices usually reach you through your host and name the exact URL and work. |
| An invoice or "final notice" to renew your domain or a "search engine listing" from a company that is not your registrar | A renewal or listing scam. Paying may transfer your domain to them or buy nothing. |
| "Your domain or SEO will be suspended" or "we found errors on your site, reply for an audit" | Sales spam dressed up as a warning. |
| A login alert or "verify your account" message from your host, registrar or email provider | Either real or a phishing copy. Check the sending domain and never sign in through the link. |
| Search Console: a new owner was added, or Security issues or Manual actions were found | Real if you see it inside Search Console. An unknown new owner is a sign of compromise. |
| A legal letter or email about website accessibility | Can be real and have deadlines. See accessibility complaint or demand letter. |
| A plugin vendor or security service says a plugin you use has a vulnerability | Usually real and public. See plugin vulnerability alert. |
Nothing on this page is legal advice. If a message claims legal consequences and it checks out as genuine, talk to a lawyer where you are.
1. Check who your real registrar is and when the domain expires.
whois example.com | grep -iE 'registrar:|expir'
Run it in your own computer’s terminal, replacing example.com with your domain (or use the domain lookup tool). Good: the renewal notice comes from the registrar named here and the date matches. Bad: a letter from a company that is not listed here, or a "final notice" months before the real expiry.
2. Read the message headers. In Gmail, open the message, then the three-dot menu, Show original. In Outlook, open the message, then File, Properties, or View message details. Find the Authentication-Results line. Good: spf=pass, dkim=pass and dmarc=pass for the provider’s real domain. Bad: a fail, or a pass for a different look-alike domain (an extra word, a swapped letter, or the brand name inside a free email address). A pass only proves who sent it, not that the content is honest.
3. Check every link before you click. Hover the mouse over a link (on a phone, press and hold) and read the real address. Good: the provider’s own domain. Bad: a shortener, a file-sharing site, or a domain that only looks similar. When in doubt, type the provider’s address into the browser yourself.
4. Compare a vulnerability report with what you actually run.
wp core version
wp plugin list --fields=name,status,version,update_version
Run these in an SSH terminal inside the site’s folder (the one with wp-config.php). update_version shows the newer version waiting to be installed. Good: the report names something you do not use, or a version you already updated past. Bad: it names a plugin and version you run that has a published fix. Update that first, whoever sent the report.
5. See whether you publish a security contact.
curl -s https://example.com/.well-known/security.txt
Run it on your own computer. A security.txt file tells researchers where to report problems and whether you offer rewards. Nothing found is normal for small sites. The hardening cheat sheet shows how to add one.
Did this fix it?
Still stuck? Start again from what you can see in the Emergency Room.
The full fix
Contain it, preserve evidence, find how they got in, then rebuild from clean sources and rotate every credential. The order matters, and skipping a step is how sites get reinfected.
Your host suspended the account over malware, phishing or outgoing spam. Decode the abuse notice, find the mailer script or stolen mailbox, clean every site on the account and get reinstated.
Getting bounces for mail you never sent, or customers reporting fake emails from your domain? Learn how spoofing works and how to lock your domain down with DMARC.
You got an alert that a plugin you run is vulnerable. Read the advisory, decide how urgent it is, patch or replace the plugin, and check whether you were already exploited.
An accessibility complaint or demand letter landed in your inbox. Here is how to respond calmly, triage your site against WCAG, fix what matters first and document it.
A practical, plain-English checklist for small business sites: find what your site collects, then sort out the privacy policy, cookies, analytics, form data and processors.
Someone asked for a copy of their data or for it to be deleted. Run the request with WordPress tools, find the data they miss, and keep a record you can rely on.
An email says your site has a vulnerability, broke copyright, is about to lose its domain or will be suspended. Most are scams, some are real. Verify each one by logging in to the real account yourself, never through the link in the email.
Someone is in your mailbox: contacts get spam from you, replies vanish or your provider blocked sending. Lock the attacker out, remove their rules and forwarding, then get delisted.
The European Accessibility Act has applied since 28 June 2025. Work out whether your site is an in-scope service, whether the microenterprise exemption covers you, and what a practical plan looks like.
Search the field manual
Or jump straight to a symptom
Press / to search from any page, Esc to close