Guides › Hosting, domain & email › Security & hacks

Website Defaced or Showing Hacker Message: Emergency Steps

Take it offline, restore and secure.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Security and hacking

If your site shows a message from a hacker, act in order. Speed matters, but so does keeping evidence and not making things worse.

1Take the site offline2Take a backup of the current state3Change all passwords4Restore a clean backup5Update everything6Find the cause7Tell the right peopleFixed? Test the site. If not, get help.
The steps in order. Work down the list and stop when the problem is solved.

Step 1: Take the site offline

Illustration for Step 1: Take the site offline

Put it in maintenance mode or ask your host to suspend it. This protects visitors from the defacement and from any malware.

Step 2: Take a backup of the current state

Illustration for Step 2: Take a backup of the current state

Keep it as evidence, separate from your clean backups. Do not overwrite your good backups.

Step 3: Change all passwords

Illustration for Step 3: Change all passwords

Hosting, FTP and SSH, the database, every WordPress admin, and the email account used for them. Use a different device if you think yours is infected.

Step 4: Restore a clean backup

Illustration for Step 4: Restore a clean backup

Use one made before the defacement. If you have none, reinstall WordPress core and plugins from fresh copies and clean the files.

Step 5: Update everything

Illustration for Step 5: Update everything

WordPress core, plugins and themes. Delete anything unused.

Step 6: Find the cause

Illustration for Step 6: Find the cause

Check the access logs and old plugins to find how they got in, so they cannot return. Look for unknown admin users and unknown files.

Step 7: Tell the right people

Illustration for Step 7: Tell the right people

If customer data may be affected, follow your legal duty to notify, and tell your host.

Still stuck?

If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-22.