Knowledgebase article

My website was hacked. What should I do?

Strange pages, redirects to spam sites, a warning from Google, or an email from Romeo about malware? It feels like a betrayal, we know. Stay calm and follow these steps. Romeo is right beside you.

1. Change all your passwords, now

  • client area password
  • cPanel password
  • WordPress (or other CMS) admin passwords, and remove any admin users you don't recognise
  • FTP and email account passwords
  • database user password (then update it in wp-config.php)

Use new, strong, different passwords for each.

2. Scan with Imunify360

  1. In cPanel, go to Security > Imunify360.
  2. Look at the Malware Scanner results. Infected files are listed there.
  3. Use the clean-up option where available, or note the files for the next steps.

3. Clean up WordPress

  • Update WordPress, all plugins and all themes in WordPress Manager by Softaculous.
  • Delete plugins and themes you don't use. Old, forgotten plugins are the most common way in.
  • Reinstall WordPress core files (in the dashboard: Dashboard > Updates > Re-install version).
  • Look in wp-content/uploads for .php files. There shouldn't be any there.

4. Or restore a clean backup

If you have a backup from before the hack, restoring it is often the quickest way back. See How to back up and restore your website in cPanel. Then update everything and change passwords again, or the same hole will be used again.

5. Check for leftovers

  • Cron Jobs (Advanced > Cron Jobs): delete any jobs you didn't create.
  • Email > Forwarders: remove strange forwarders.
  • FTP Accounts: delete accounts you don't recognise.

6. If Google flagged your site

After cleaning, request a review in Google Search Console (Security & Manual Actions > Security issues).

Need help?

Open a ticket with the Support department. Romeo will help you find the infected files and get your site clean and safe again.

Was this answer helpful?

Related articles

Still stuck? Romeo's got you.
Our support team replies around the clock, real humans who know your server.