Help Center › Hosting & cPanel

What to Do If Your Website Gets Hacked

If you think your website has been hacked, take these steps right away:

Step 1: Change Your Passwords

  1. Log into cPanel and change all passwords immediately:
    • cPanel password
    • Email account passwords
    • FTP account passwords
    • Database user passwords
    • WordPress/Joomla/etc. admin passwords
  2. Check when your site was last modified using File Manager in cPanel. Look for recently changed files.

Step 2: Restore from Backup

The fastest way to clean a hacked site is to restore from a clean backup:

  1. Go to Backups in cPanel.
  2. Restore your home directory and database from a date before the hack.

Step 3: Scan and Secure

  1. Scan your files for malware with Imunify in cPanel's Security section, and with a plugin like Wordfence if you use WordPress.
  2. Update all software to the latest versions.
  3. Remove any unknown admin users from your CMS.

Step 4: Open a Support Ticket

If you need help, open a support ticket. We can help find how the breach happened and suggest ways to secure your site.

Prevention: Keep your CMS, plugins, and themes updated. Use strong passwords. Avoid nulled themes and pirated plugins.