My website has been hacked — what do I do?

Quick answerBeginnerUpdated

Short answer

Change every password first, then take a copy of the site as evidence before cleaning anything. Find and remove the malicious files, update everything, and only then bring the site back. Restoring a backup without closing the original hole just gets you reinfected.

The part people skip is removing the attacker’s access — a hidden admin user, an added SSH key or a backdoor file in an unexpected folder. If you clean the visible damage but leave that, the site is reinfected within days.

Learn more

Step-by-step

All security questions · All questions and answers

Popular

Tip: press / to search from any pageSee all results