What to do when your website gets hacked
The order of operations: limiting damage, restoring service, keeping your data — and why removing the malicious code isn't enough.
In short
The order: restrict access, preserve evidence, restore from a clean backup, rotate every password, and close the hole they came through. Skip the last step and you'll be back here within a week.
First actions
- Take the site offline — a holding page beats a page infecting visitors.
- Copy the compromised state: you'll need it to work out how they got in.
- Change passwords: hosting, admin, database, email, domain.
- Review the admin user list — attackers often create their own account.
- Check mail settings and forwarding rules for changes.
Restoring
Deploy a backup made before the breach. File modification times and log entries help you identify the date.
With no clean backup you're cleaning by hand: hunting modified files, foreign scripts, added users. Slower, and with no guarantee you found everything.
Afterwards
- Update the platform and every module.
- Look for forgotten entry points: old scripts, test pages, unused modules.
- Enable two-factor authentication everywhere it's available.
- Check the search console: is the site flagged as compromised?
- Set up off-server backups if there weren't any.
Search and reputation
If a search engine flagged the site as dangerous, request a review in the console after cleaning. While the flag stands, visitors see a warning — and that hurts traffic more than the breach itself.
Site been hacked?
We'll restore service, find the entry point and close it — so it doesn't happen again.
Service
Website development at Alba Creation — end to end, directly with the developers.
Starting at 150,000 ₽
Read next
Rebuild or refresh: deciding an old site's fate
Which is cheaper? Five questions whose answers show whether to keep investing in the existing site or start over.
2 min readSetting up work with a remote contractor
What replaces walking over to someone's desk: communication rhythm, checkpoints, tools and the rules that make remote work predictable.
2 min readHow to write tickets developers understand
A template for tickets that land first time: what to describe, what to leave out, and why "make it look nice" is the most expensive brief.
2 min read