Free SSL on every plan • 24/7 expert support • 30-day money-back guarantee Contact UsKnowledge BaseBlogStatus Choose currency ₦NGN €EUR £GBP $USD

My website has been hacked — what should I do?

1 min read · Updated 24 Nov 2026

1. Change passwords

Change your client area, control panel, FTP, database and CMS (e.g. WordPress) admin passwords. Remove any admin users you don't recognise.

2. Restore a clean backup

If you have a backup from before the hack, restoring it is the fastest fix. Then immediately update everything. With CodeGuard you can restore the whole website, or just the changed files, from any of the last 90 days.

3. Or clean the site

  • Update the CMS, themes and plugins; delete anything unused.
  • Replace core files with fresh copies.
  • Look for recently changed files and unfamiliar PHP files in uploads folders.
  • Scan with a reputable security scanner.

SiteLock Pro and Business, and cWatch Web, can repair an existing infection for you and then keep the website protected.

4. Find how they got in

Outdated plugins and weak or reused passwords are the usual causes. Fix the cause, or the site will be hacked again. A firewall (SiteLock Pro and Business, or cWatch Web) blocks most attacks before they reach your website.

5. Ask for help

Contact us — we can help you find infected files and restore backups.

Was this article helpful?

We use cookies to keep this website working and, with your permission, to understand how visitors use it so we can improve it. You can accept, decline, or choose in Settings. Read more