Websites, plugins and SEO in Rwanda Kigali Start a project

Care / Field note 16

Your WordPress site was hacked: what to do first

Strange pages, a warning from Google, customers sent to another website. It is stressful, but it is fixable. What matters most is doing things in the right order.

An open padlock resting on a computer keyboard
Photo by Sasun Bughdaryan on Unsplash
The useful part

Do not delete things in a panic. Keep a copy, change every password, clean or restore from a backup made before the attack, update everything, then ask Google to check the site again.

01

Signs it has happened

  • Google shows “This site may be hacked” under your name, or Chrome shows a red warning page.
  • Visitors are redirected to another website, often only on phones.
  • Pages, links or users you did not create appear.
  • Your hosting company suspends the account or emails you about malware.
  • Your emails suddenly start going to spam.
02

The first hour, in order

  1. Keep a copy of the site and its database as it is now, even infected. It helps find how they got in.
  2. Change every password: WordPress admins, hosting, the database, and the email used for those accounts.
  3. Remove admin users you do not recognise.
  4. Tell your hosting company. Many can help, or can restore a clean backup.
  5. Note the date you first saw a problem. It tells you which backups are likely clean.
03

Cleaning the site

There are two safe routes.

RouteWhen it fits
Restore a backup from before the attackYou have a backup older than the first sign of trouble, and you can accept losing changes made since.
Clean the current siteNo clean backup exists. Replace WordPress, the theme and plugins with fresh copies from official sources, then check the uploads folder and database for anything planted.

Either way, update everything afterwards and remove plugins and themes you do not use.

04

Telling Google it is clean

If Google flagged the site, open Google Search Console, look at the Security issues report, and request a review once the site is clean. Google rechecks it and removes the warning if it agrees.

Our Search Console guide explains how to get access if you have never used it.

05

Making it less likely next time

  • Install updates every month, with a backup first.
  • Use long, unique passwords, and two step login where you can.
  • Give admin access only to people who need it.
  • Keep backups somewhere other than your hosting.
  • Remove what you do not use.

This is exactly the routine in Website Care. For a site hacked before care starts, the clean up is quoted once as a separate job.

06

Prepare a useful recovery request

Write down the website address, the symptoms and when they first appeared. Include the wording of any hosting or search warning. Confirm whether the business controls the hosting account, the domain and a backup stored separately from the website.

Avoid repeatedly restoring files without investigating how the problem started. A working page does not prove that unexpected accounts, vulnerable software or other access routes have been removed. Keep a record of changes and agree on the tests needed before reopening the site.

Triad’s hacked WordPress recovery service begins with that review and a written scope. Ongoing WordPress maintenance can follow the recovery, with responsibilities for updates, backups and alerts agreed separately.

Further reading

Official documentation behind the technical guidance in this article.