Menu
Other2026-06-28

What to do if my website was hacked: step-by-step

Short answer

If your site was hacked, follow 7 steps: 1) Temporarily take site offline to protect visitors, 2) Change all passwords (hosting, FTP, CMS, DB), 3) Restore clean backup or do clean CMS reinstall, 4) Find entry point (server logs, temp files), 5) Close vulnerabilities (update CMS, plugins), 6) Remove malicious code, 7) Request review in Google Search Console to remove 'This site may harm your computer' warning. SEO recovery: 1–6 months.

If your site was hacked, act in the right order: protect visitors first, then restore, then deal with SEO consequences. Every day with a hacked site = ranking loss, "this site may harm your computer" warning risk, customer data leak.

7 recovery steps

  1. Take site offline temporarily (503 status).
  2. Change all passwords (hosting, FTP, CMS, DB).
  3. Restore clean backup or clean CMS reinstall.
  4. Find entry point via server logs.
  5. Close vulnerabilities (update CMS, plugins).
  6. Remove malicious code (Sucuri, Wordfence scan).
  7. Request review in Google Search Console.

Prevention

  • Daily backups for e-commerce.
  • 2FA everywhere.
  • Weekly CMS/plugin updates.
  • Remove unused plugins.
  • Strong passwords (password manager).
  • Firewall (Cloudflare free tier).

SEO consequences

  • "This site may harm" warning — 90% CTR loss.
  • Pages removed from index.
  • Position loss.
  • Recovery: 1–6 months.

This question is also asked as:

  • website hacked what to do
  • recover hacked website
К
Команда Adaptive Lab
AI-SEO эксперты

Need an expert look at your case?

Free SEO audit within 24 hours — we'll identify your growth bottlenecks and give a concrete action plan.