WordPress Site Hacked: What to Do First, How to Clean It and Why It Keeps Happening

A hacked WordPress site is stressful and fixable. Here are the signs to look for, the first steps in order, why a cleaned site can be hit again and when a rebuild is the better answer.

Free, no obligation

How Do You Know Your WordPress Site Has Been Hacked?

You know a WordPress site has been hacked when it does something you did not set it up to do. The site is sending visitors somewhere else, showing pages you never wrote, creating users you did not add or being flagged as dangerous by a browser or by Google.

WordPress's own guide to a hacked site lists the signs. The site has been flagged for distributing malware, readers say their antivirus is warning them about it, you are told it is being used to attack other sites, or you notice behaviour you did not authorise, such as new users appearing. Sometimes the damage is visible and sometimes it is hidden, which is why a clean-looking homepage does not prove the site is safe.

Hackers often go after what they can reach most easily. That usually means an old plugin with a known flaw, a weak or reused password or software that has not been updated, which is why WordPress advises keeping plugins updated and deleting any you do not use. The hack is rarely personal, and it is usually automated.

I help Irish businesses recover from hacked WordPress sites, and I will tell you honestly whether the site is worth cleaning or better rebuilt. It starts with a free check. The WordPress care and repair hub covers the wider picture, and the fix my WordPress website page covers the repair itself.

What Are the Signs That a WordPress Site Has Been Hacked?

The signs range from obvious to subtle, and any one of them is enough to take seriously.

Visitors Sent Elsewhere

The site redirects people to another website, often only on a phone or only from Google, so you may never see it yourself.

Pages You Did Not Write

New pages or posts that sell something unrelated, or spam in another language, appear on the site or in its sitemap.

Warnings From Browsers or Google

A browser warns visitors off the site, or Google Search Console reports a security issue.

Users You Did Not Create

New administrator accounts appear in the dashboard that nobody on your side added.

The Site Slows or Falls Over

Hidden code can use up the server's resources, so the site slows down or the host suspends it.

Your Host Contacts You

A host that finds malware or sees the site attacking others will often suspend it and write to you.

An old tarnished brass lock lying beside a new bright brass lock on a linen cloth shot from above

My WordPress Site Was Hacked: What to Do Next, Step by Step and in Order

The order matters, because some steps make the others possible. WordPress's own guide sets out the sequence.

First, make the site safe. If visitors could be harmed, such as being sent to a harmful page, take the site offline or put it into maintenance mode while you work. Then change the passwords, for the WordPress admin accounts, the hosting account, the database and any FTP access. WordPress notes that this also forces anyone who is still logged in out.

Second, take a backup of the site as it is now, even though it is compromised, so you have a record to work from. WordPress calls backups a critical piece of continuing your operations, and says to plan for them from now on.

Third, scan the site. WordPress notes that there are external remote scanners and application-level scanners, that each looks for different things and that no single solution is best, so using more than one is sensible. The scan shows what has been changed and where. Keep a note of what is found and when, because it helps you work out how the attacker got in, and it is what anyone helping you will ask to see first.

WordPress Malware Removal and Why a Cleaned Site Can Be Hit Again

Cleaning a hacked site is not just deleting the visible damage. Without finding the way in, the same door is still open.

A hack usually leaves more than one thing behind. There may be altered files, extra users, hidden code in themes and plugins and a backdoor that lets the attacker return after you have cleaned the visible damage. If any of those are missed, the site can be compromised again within days.

WordPress advises that once the site is clean you should update it to the latest software, because older versions are more prone to hacks, and then change the passwords again. The second password change matters, because the attacker may still hold the first set if the site was not fully clean when you changed them.

The way in has to be closed as well as the damage repaired. That usually means an outdated plugin or theme, a weak password or an old unused account, so each is checked, updated or removed. Without that step a clean-up is only a pause.

Clean a Hacked WordPress Site or Rebuild It From Scratch?

A hacked site can be cleaned or rebuilt, and the right choice depends on how it happened and how often. The table sets out the trade-offs.

How cleaning a hacked WordPress site and rebuilding it compare
What mattersClean the hacked siteRebuild the site
How quickly it is doneUsually quicker, if the damage is limitedSlower, because the site is built again
Chance of a repeatHigher if the way in is not foundLower, because the old code is gone
What it costsLess up frontMore up front, with less to maintain after
What carries overEverything, including old pluginsThe content, built into a cleaner site
Best suited toA first hack with a clear causeA site hacked repeatedly, or one running a lot of old plugins
A brass lantern lit in a stone porch at dusk beside a closed painted door in a warm glow

Why Does My WordPress Site Keep Getting Hacked After I Clean It?

It is nearly always because the way in was never closed, or because the site is made of parts that keep opening new ones.

The usual causes are old plugins and themes with known flaws, passwords that are weak or reused across accounts, and a site that is not kept up to date. WordPress advises making sure plugins are always updated and deleting the ones you are not using, which removes some of the easiest routes in.

A hidden backdoor is the other common cause.

If it happens more than once, take it as information. A site that is repeatedly compromised is telling you that something in its make-up cannot be kept safe with the time and attention available, and that is the moment to consider a simpler, smaller build.

How a Hacked WordPress Site Is Recovered, Step by Step

Recovery follows the same four steps, and the aim is a site that stays clean, not just one that looks it.

  1. Contain and Back Up

    The site is made safe, the passwords are changed and a backup is taken as evidence.

  2. Scan and Find the Way In

    The files and database are scanned, and the weakness that let the attacker in is identified.

  3. Clean and Update

    Malicious files and users are removed, the software is updated and the passwords are changed again.

  4. Watch and Decide

    Search Console and the logs are watched, with a plain recommendation on whether to keep or replace the site.

A worn brass padlock with a keyhole lying on an oak surface

How Long Does a Hacked WordPress Site Take to Recover in Google?

The clean-up can be quick, and recovery in Google takes longer, because Google has to see that the problem has gone.

If Google has flagged the site as hacked, Search Console will report a security issue. After the clean-up you request a review, and Google rechecks the site before removing the warning, so the time depends on how quickly it recrawls and how confident it is that the site is clean.

Rankings may take longer than the warning. Spam pages added by the hack can be indexed, and they have to be removed and dropped from the index, and the site's reputation recovers as Google sees it is clean over several weeks. There is no honest way to give a date.

The practical answer is to fix it properly the first time, because a second hack soon after restarts the process and can make it longer. The security updates spoke covers keeping the site patched afterwards.

WordPress Site Hacked: Questions, Answered

What should I do first if my WordPress site has been hacked?

Make the site safe, taking it offline if visitors could be harmed, then change every password and take a backup. WordPress advises that changing the passwords also forces anyone still logged in out.

How can I tell if my WordPress site has been hacked?

Signs include visitors being sent elsewhere, pages you did not write, warnings from browsers or Google, users you did not create and the host contacting you. WordPress lists malware flags and unauthorised behaviour among them.

Can I clean a hacked WordPress site myself?

Sometimes, with a backup, a scanner and care, following WordPress's guide. The risk is missing a backdoor, so the site is hacked again, which is why many owners get help.

Why does my WordPress site keep getting hacked after I clean it?

Usually the way in was never closed, such as an old plugin, a weak password or a hidden backdoor. Cleaning the visible damage without fixing that only pauses the problem.

Do I need to change my passwords more than once?

Yes. WordPress advises changing them at the start and again once the site is clean, because the attacker may still hold the first set if the site was not fully clean.

Should I clean the site or rebuild it?

A first hack with a clear cause can often be cleaned. A site hacked repeatedly, or running many old plugins, is usually better rebuilt, because the old code is gone. The <a href="/website-migration/wordpress">WordPress migration services</a> page covers the choice.

How long does it take to recover in Google?

After the clean-up you request a review in Search Console, and Google rechecks the site. Rankings can take weeks to recover, and a second hack soon after restarts the process.

Will my hosting company help?

Often they will suspend the site and write to you, and some offer a restore from a backup. Their help usually stops short of finding and closing the way in, which is the part that prevents a repeat.

Is a security plugin enough to stop hacking?

It helps, and it is not a cure. WordPress notes firewall plugins and services can help, but that keeping everything updated and removing unused plugins matter at least as much.

Could a PHP flaw be behind a hack?

It can be, since PHP runs the site. The <a href="/wordpress/security-updates">WordPress security updates</a> spoke covers the PHP flaw of October 2026 and how to check your version.

What does a hack cost an Irish business?

Lost enquiries while the site is down or flagged, the time to clean it and the damage to trust. A quick, proper recovery is usually cheaper than a slow one that is repeated.

Should I move off WordPress after being hacked?

Only if it keeps happening or the site is held together by old plugins. A site with no plugins or database on the public side has far less to attack. A free check will tell you plainly whether to stay or go.

Can you check my site for me?

Yes. Send me the address and what you have seen, and I will tell you plainly what I find. The <a href="/fix-wordpress-website">fix my WordPress website</a> page explains how it works.

Sources

Checked on 24 November 2026. Rules and guidance change, so the official pages named below are the place to confirm the current position.

  1. WordPress.org Documentation: FAQ My site was hacked
  2. WordPress Developer Resources: Hardening WordPress

WordPress Care and Repair Built to Keep Your Site Working

Send me your current website address and I will tell you plainly what is working, what is holding it back and whether a fix, a plan or a move is the right call. Free, with a fixed price agreed before any work starts.

Get your free audit A plain-English look at your site, with no obligation. Go now →