Website Defaced or Showing Hacker Message: Emergency Steps
Take it offline, restore and secure.
If your site shows a message from a hacker, act in order. Speed matters, but so does keeping evidence and not making things worse.
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

Keep it as evidence, separate from your clean backups. Do not overwrite your good backups.
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

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

WordPress core, plugins and themes. Delete anything unused.
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

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
- WordPress User Can't See Posts They Created: Roles and Permissions
- WordPress Site Health Warnings: What To Fix First
- WordPress: Create a New Admin User via Database When Locked Out
- WordPress Automatic Updates: Enable, Disable and Safe Settings