AkolagTech host
Tutorial 12 min Updated 2026-10-18

WordPress site hacked? What to do, step by step

Illustration of a cracked blue shield with a warning sign, for a hacked WordPress site

Short answer: Do not panic-delete. Back up, change passwords, update everything, check admins and plugins, then ask for help.

  1. 1Back up
  2. 2Change passwords
  3. 3Update
  4. 4Check users
  5. 5Ask for help

A hacked site feels scary. But there is a clear order of steps that works. Follow them one by one.

Warning signs

  • A new Administrator that you do not know.
  • Visitors are sent to strange websites, mostly from Google.
  • Google shows “This site may be hacked”.
  • Pages or products that you never made.
  • Friends tell you they got spam email from your domain.

Do not delete files in a hurry. First make a copy, then clean.

What to do, in this order

Tap a step to open it.

1 Make a backup of the site as it is now

Log in to cPanel and open Backup. Download a full backup to your computer. This keeps the clues safe.

The cPanel Backup page with the Download a Full Account Backup button.
cPanel, then Backup. Download a full backup before you change anything.
2 Change every password

Change your WordPress admin password, your cPanel password and your email passwords. Use a different long password for each.

3 Look at Users and Plugins

In WordPress open Users and click Administrator. Write down any name you do not know. Then open Plugins and write down any plugin you did not install.

The WordPress Users list filtered to Administrator.
Users, then Administrator. Write down any name you do not know.
The WordPress Plugins list with each plugin and its update status.
Plugins. Look for a plugin you did not install. Do not delete it yet, write the name down.
4 Update everything

Go to Dashboard, then Updates. Update WordPress, plugins and themes. An old version is often how attackers got in.

5 Ask for help

Open a support ticket. Tell us your domain name, what you saw and when you first saw it. Do not send passwords in the ticket.

After the clean-up

Questions people ask

Should I delete the strange files myself?

Not first. Deleting in a hurry can break the site and remove clues. Take a backup first, then ask for help.

Will restoring an old backup fix it?

Only if the backup is older than the hack and you update everything straight after. Otherwise the same hole lets the attacker back in.

Who do I tell?

If your site collects customer details, tell your customers once you know what happened.

Keep reading