DOCS

Hacked website: what to do

Steps to stop an attack, clean malicious code and prevent it from happening again.

Updated 05.10.2026. 2 min read

Signs of a hack: unknown pages or ads, redirects to other addresses, a browser or search engine warning, unexpected files or spam being sent from your domain.

  1. Do not panic and do not delete everything. First make a copy of the current state (Files → Backup or a download) for investigation.
  2. Change passwords: cPanel, FTP, database, WordPress administrators and email. See Account security and passwords.
  3. Enable 2FA: Two-factor authentication.
  4. Find what is infected. In File Manager sort files by modified date and look for unknown .php files, especially in wp-content/uploads. Check .htaccess too.
  5. Restore a clean state. The fastest and safest option is restoring from a backup from before the attack.
  6. Update everything and remove unused plugins and themes: WordPress security.

Tell us#

Send a ticket describing the problem, when you noticed it and the site address. Tips for the ticket: What to include in a ticket. Do not send passwords.

After cleaning#

  • Check the site in a browser using an incognito window.
  • Make regular backups.
  • If your site was marked as dangerous, request a re-check through the search engine's tools.

Messages claiming your site was hacked and demanding a payment are usually scams: Known scams.

Was this article helpful?

Related articles

Still need a hand?

Open a ticket and we will reply by email. The whole team sees your request.