Skip to main content

What to do if your website or hosting account has been hacked

Signs your site was hacked and what to do, in order: check for malware, clean the site with SiteSafe or a backup, change your passwords, and prevent it from happening again.

If you think your website or hosting account has been hacked, act in this order: check for malware, clean the site, change your passwords, then close the hole that let the attacker in. The sooner you start, the easier it is to recover your site without losing content.

Signs that your site may be hacked

  • Browsers or Google show a warning when people visit your site.

  • Your site has pages, links, images or redirects you didn't add.

  • Your email account sends spam you didn't write, or people tell you they got strange emails from you.

  • Your WordPress (or other software) has admin users you don't recognize.

  • We emailed you that we found malware on your account. In serious cases we may suspend the account to protect the server and other customers.

Step 1: Check your account for malware

On Canadian Web Hosting plans, Imunify360 scans your files and lists anything suspicious in cPanel. See how to manage security with Imunify360 in cPanel. On WordPress sites, Imunify Security also blocks attacks and cleans malware it finds; see what Imunify Security does.

Step 2: Clean your site

You have two options:

  • Have our security team clean it. Activate SiteSafe Protection on the infected website, then ask for a cleanup. SiteSafe covers one website per subscription and includes unlimited cleanups while it's active, so you keep your latest content.

  • Restore a clean backup yourself. Pick a backup from before the infection. You lose any changes made after that date. See how to choose the right type of backup restore.

A restored backup brings back the same weak spot that let the attacker in. Do steps 3 and 4 right after, or the site can be hacked again.

Step 3: Change your passwords

Assume the attacker saw every password stored on the account. Change them all, starting with the most powerful:

Step 4: Stop it from happening again

If you have a dedicated or cloud server

A server compromised at the root (administrator) level is very hard to clean reliably. Back up the files you need, reinstall the operating system and control panel, then restore your content only after checking that it's clean. Keep the server's software up to date from then on.

How websites get hacked

Almost always in one of two ways: a password was guessed, reused or stolen, or the site ran software with a known security hole, often an outdated WordPress, plugin or theme. Most attacks are automated scripts that scan the internet for these weak spots, not someone targeting you personally.

Did this answer your question?