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:
Client Area password: see how to reset your Client Area password. Then check who has signed in to your Client Area.
cPanel password: see how to change your cPanel password.
Email account passwords: see how to update an email account password in cPanel.
FTP, database and WordPress (or other software) admin passwords: see the password list in what to do after cleaning malware from your website.
Step 4: Stop it from happening again
Update WordPress (or your other software), plugins and themes, and delete the ones you don't use. Ask whoever built your site to help, so nothing breaks.
Run a full antivirus scan on every computer that has access to your account. An infected computer can steal the new passwords.
Follow the rest of what to do after cleaning malware from your website and how to secure your website.
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.
