Cyber Security

Your Site Was Hacked: The First 5 Steps

How to recover a hacked website calmly, without losing data and while protecting your reputation.

Your Site Was Hacked: The First 5 Steps

Seeing pages you did not create, strange redirects or a “This site may be hacked” warning on Google? What you do in the first hours determines how big the problem becomes.

1. Stay calm and record what you see

Take screenshots and note the date and time. Do not start deleting files yet; those traces help find out how the attack happened.

2. Change every password

Change admin, hosting, FTP, database and email passwords and turn on two-factor authentication wherever possible. Make sure the computer you use is clean.

3. Back up the current state

Back up the site as it is now, even though it is compromised, and keep any clean backup separately. Close the hole before restoring, or the site will be hacked again.

4. Find and close the hole

Most attacks come from outdated plugins and themes, weak passwords or insecure upload forms. Remove malicious files, update software and delete unused plugins.

5. Inform Google and your customers

After cleanup, request a review in Google Search Console. If personal data was affected, review your notification obligations with a legal advisor.

So it never happens again

  • Regular backups stored away from your site
  • Up-to-date software and plugins
  • Strong passwords and two-factor authentication
  • A firewall and monitoring