my site was hacked, what do i do now? the order that limits the damage
web · 2026-10-13 · 5 min
your site redirects to a casino, google shows a red warning, or a client asks why your shop emails viagra ads. first: do not start by deleting things. deletion destroys the evidence of how they got in, and the same door welcomes them back tomorrow. the order below limits the damage.
1. contain (first hour)
take the site offline or into maintenance mode. change every password from a clean device: hosting, cms admin, database, ftp. revoke api keys and sessions. the goal is stopping the bleeding, not fixing anything yet. screenshot everything suspicious first: ransom notes, strange files, unknown admin users.
2. assess (same day)
how did they get in: outdated plugin or theme (the usual), stolen password, nulled theme, соседний site on shared hosting. scan with the host's tools plus a security plugin. list every modified file by date. check google search console's security issues section: google tells you what it found, which is useful triage.
3. clean and restore
restore from a backup made before the hack, then update everything before going back online. no clean backup: rebuild the core files fresh and reimport only content you inspected. assume persistence: hackers leave second doors (rogue admin users, scheduled tasks, hidden files). find all users, all plugins, all files you do not recognize.
4. tell google and the clients
request a review in search console after cleaning, or the warning stays and the traffic with it. if client data may have leaked (orders, emails, passwords), data law requires notification, quickly. hiding a breach converts a technical problem into a legal one.
5. close the door class, not the door
update policy (auto-updates where safe), unique passwords plus two-factor everywhere, least-privilege accounts, verified off-site backups. the full prevention list is the self-check: is my website secure. hacks repeat through the same class of door, not the same door.
FAQ
how long does recovery take?
hours with a clean backup and a competent person. days without one. weeks if the blacklist review cycles drag. the backup is the whole difference: how to back up my website.
should I pay the ransomware?
no. payment funds the industry, decryption often fails, and your backups (now verified, forever) make payment unnecessary.
if this is happening right now near Parma and you need a pair of hands, write me: web development in Parma. then read the backup post so this never repeats.