⏱️ The first hour
Seven steps, in this order
Doing these out of order is what turns a bad afternoon into a lost week.
Not sure it was hacked? The common signs: your browser or search engine warns
visitors about the site, pages you never wrote appear in search results, the site
redirects somewhere else on mobile only, admin users exist that nobody created, or
your host emails you about abuse.
1️⃣
Take the site out of harm's way
Put up a maintenance page, or ask your host to suspend the site. If it is
serving malware or a scam page to visitors, every minute it stays up costs
you reputation and search standing.
Don't wipe anything yet — taking it offline is enough for now.
2️⃣
Take a full copy first
Download the files and export the database before touching
anything, and keep that copy untouched. It is the only record of what
happened and how — and it is the difference between fixing the cause and
guessing at it.
From here on, one person writes down what is done and when — it is what your
host, or anyone you ask for help, will need first.
3️⃣
Change credentials from a clean device
Hosting panel, FTP/SFTP, database, site admin accounts, and the email
address they all recover to. Use a device you're confident is not itself
compromised, and make every password unique.
Turn on two-factor authentication everywhere it is offered.
4️⃣
Check the accounts around the site
Look for admin users you didn't create, forwarding rules added to your
mailbox, and changes to your DNS records or domain registrar contact
details. Attackers routinely leave a second way back in.
5️⃣
Tell your host
They can see server-level logs you can't, may already have detected it,
and can confirm whether other sites on the same account are affected.
Most have a documented procedure for exactly this.
6️⃣
Work out how they got in
This is the step people skip, and it is the only one that stops a repeat.
Cleaning without finding the entry point means the same compromise returns —
often within days.
7️⃣
After the clean-up, clear the warnings
Check whether the site was flagged — Google's Safe Browsing site status, and
the mail blocklists if your email has started bouncing. Then request a review
from the Security issues report in Google Search Console: that is the recovery
path for a site marked unsafe.