In this guide: wordpress website hacked what to do. Finding out your WordPress website was hacked is stressful, and the worst time to work out what to do is while it is happening. The order matters: contain the damage first, then change every password, then clean the site, then close the hole the attacker used, and only then ask Google to review it. Skipping a step, or doing them in the wrong order, is how a cleaned site gets hacked again the next week. This article walks through the sequence in the order that works.
Before you start, take a breath and do not delete anything yet. Deleted files can destroy the evidence of how the attacker got in, and a hasty deletion can take your site down completely. Work through the steps below, and keep notes on what you find. If you are not comfortable doing any step yourself, stop at the point where you are unsure and get help — a half-cleaned site is often worse than a hacked site you have contained.

Not every strange thing on a website is a hack. A plugin update can break a layout, a host outage can show an error page, and a slow site is usually a performance problem, not an attack. Check for the real signs first.
Common signs of a hack include: your homepage shows content you did not publish, visitors are redirected to another website, new admin users appear that you did not create, pages or posts exist that nobody on your team wrote, your site shows a warning in Google search results, or your hosting provider has suspended the account for sending spam. Any one of these is worth investigating. Two or more together almost certainly mean the site is compromised.
Check the site the way a visitor sees it. Open it in a private browser window, on a different device if you can, and look at the homepage and two or three other pages. Then check Google: search for your business name and your domain, and see whether the results show strange text or links you do not recognise. Then log in to WordPress and look at the users list and the most recently changed posts and pages. Note anything you did not do, with the date and time if the system shows it.
If you are not sure, ask your hosting provider. Most hosts can tell you quickly whether they have flagged your account for malware or spam, and that answer settles the question.
Containment means stopping the hack from getting worse while you work out how to fix it. Do these things before you start cleaning.
Put the site into maintenance mode. A simple maintenance page tells visitors the site is temporarily unavailable, instead of showing them hacked content or redirecting them to a scam. Most hosts and many plugins offer a maintenance mode. If you cannot enable one, ask your host to do it.
Tell your host. Contact your hosting provider’s support team and say you believe the site is hacked. Ask whether they have a malware scan, a backup you can restore from, or a security team that can help. Some hosts will scan and clean the site for you. Others will only tell you what they found. Either way, they need to know, because a hacked site on shared hosting can affect other customers, and because your host can see server logs you cannot.


This step comes before cleaning, because an attacker who still has a working password can undo your cleaning as fast as you do it. Change every password connected to the site, and do it from a computer you believe is clean — not the one you normally use if you suspect it is infected.
Change these, in this order:
Use a different, strong password for each one, and turn on two-factor authentication wherever it is offered — WordPress, hosting, and email at minimum. A password manager makes this practical. Reusing one password across all five is how a single stolen password becomes a full takeover.
Cleaning means removing the malicious code and restoring the site to a known-good state. There are two ways to do it, and the right choice depends on your backups.
If you have a clean backup, restore it. A backup from before the hack is the fastest and most reliable clean-up. “Before the hack” means a backup dated before the first sign of trouble, not the most recent backup — a recent backup may already contain the hack. Restore the backup, then immediately update WordPress, your theme, and every plugin, and check the site again. If your host keeps backups for you, ask them which backup predates the hack and whether they can restore it.
If you do not have a clean backup, clean by hand or with a scanner. A reputable security plugin can scan the site and identify changed or added files. WordPress’s own guidance recommends comparing your files with fresh copies from WordPress.org, and replacing any core file that has been changed. Themes and plugins should be reinstalled from their original sources, not patched in place. Database entries that contain spam links or injected code need to be cleaned too, and that is the part most often missed by a quick scan.
A practical cleaning checklist:
Do not restore a backup and then skip the updates. A restored site running the same old, vulnerable versions will be hacked again through the same hole.

Cleaning without fixing the cause is temporary. Attackers get into WordPress sites through a small number of common routes, and you need to work out which one applied to you.
Outdated software. The most common route by far. An old version of WordPress, a theme, or a plugin with a known vulnerability is an open door. Update everything, delete what you do not use, and turn on automatic updates for minor WordPress releases at least. Check for updates weekly from now on.
Weak or reused passwords. If an admin password was weak, or the same password was used on another service that was breached, the attacker may have simply logged in. Strong unique passwords and two-factor authentication close this route.
A vulnerable plugin or theme. Some plugins have security flaws even when they are up to date. If your security scan flags a particular plugin, or your host tells you which file was exploited, remove that plugin and find a maintained alternative. Free plugins from unknown authors, and paid plugins downloaded from unofficial sources, are the highest risk.
Write down what you believe the cause was and what you changed. If the site is hacked again, that note is the first thing you, or anyone helping you, will need.
If Google flagged your site as hacked, or your search results show a warning, you need to ask Google to check the site again after you have cleaned it. Do not do this before the cleaning is finished — a review request on a site that is still hacked will be refused, and you will have to wait and ask again.
First, check Google Search Console, if you have it set up. It shows security issues Google has found on your site, including hacked content and malware. Work through each issue it lists. When they are all resolved, use the “Request Review” option in Search Console and describe what you fixed.
If you do not have Search Console set up, set it up now. It is free, and it is the channel Google uses to tell site owners about security problems. While you are there, check the “Security issues” report and the “Manual actions” report for anything else Google has flagged.
A review can take days, not hours. While you wait, keep the site in good order, keep everything updated, and do not make further changes that could reintroduce a problem. When Google clears the site, the warning disappears from search results.
A hacked site that has been cleaned and reviewed needs a maintenance routine. Most small business sites are hacked again because nothing changed after the first hack. These five habits prevent most repeat attacks:
None of this requires a security expert. It requires a routine, done on the same day each week, by someone who owns it. If nobody owns it, it will not happen.
You can handle a simple hack yourself if you have a clean backup and you are comfortable following the steps above. Get help promptly if any of these apply: you have no backup, customer data may have been exposed, the site keeps getting re-hacked after cleaning, your host has suspended the account, or you are not comfortable editing files and the database. A professional can clean the site, find the entry point, and set up the maintenance routine so it does not happen again. The longer a hacked site stays up, the more damage it does — to your search rankings, to your customers, and to your reputation.
Brainiac Business offers General Small-Business IT Support, including WordPress security and recovery help. Support is quoted per job after a requirements assessment — there is no fixed price, because every hacked site is different. To request a free consultation or a quote, contact Brainiac Business at [email protected] or call +1 (236) 799-9959. Bottom line: wordpress website hacked what to do is worth getting right for your business.
Related reading: WordPress Website Hacked What to Do.
The first hour after discovering a hack sets the tone for the whole recovery. The core of wordpress website hacked what to do is simple: do not panic, do not delete things at random, and do not keep the hacked site live while you decide. Take the site offline or put it in maintenance mode so visitors and search engines stop seeing hacked content.
Next, change your passwords. WordPress admin, hosting account, database, and FTP or file manager access should all get new, strong passwords. If you know wordpress website hacked what to do, you know this step comes before cleaning, because an attacker with a working password can undo your cleaning in minutes.
Then make a copy of the hacked site before you clean anything. It feels strange to back up a hacked site, but that copy is evidence, and it lets you check later what changed. WordPress website hacked what to do always starts with containing the damage, not with wiping it.
Cleanup means finding every changed file and every unknown user account. Compare your core WordPress files against a fresh copy, check your theme and plugin files, and look for admin users you did not create. The practical side of wordpress website hacked what to do is methodical, not clever: check everything, assume nothing is clean until verified.
Plugins and themes are the most common entry point. Remove any plugin or theme you do not use, and update everything you keep. An old, forgotten plugin is how many small sites get hacked in the first place, so wordpress website hacked what to do includes removing the doors you forgot you had.
Scan with a security plugin after the manual check, and scan again after you restore from a clean backup if you have one. Two different checks catch more than one. If the scan still finds problems, get help rather than guessing, because a half-cleaned site gets hacked again fast.
Getting back online is not the end of wordpress website hacked what to do. Ask Google to review the site if it was flagged, check that your search results no longer show hacked pages, and tell your customers if their data may have been affected. Honesty now is far cheaper than a discovery later.
Then fix the cause. If the hack came through a weak password, use a password manager and two-factor authentication. If it came through an old plugin, set a monthly update routine. The question in wordpress website hacked what to do is not only how to clean up, but how to stop it happening again.
Finally, set up a backup that runs automatically and that you have tested by restoring it. A backup you have never restored is a hope, not a plan. After any hack, the best version of wordpress website hacked what to do ends with a tested backup and a short list of security habits you actually follow.
Yes, if the backup is from before the hack and you have checked it is clean. Restore, then update everything and change passwords. A clean backup is the fastest reliable answer to wordpress website hacked what to do, and it beats cleaning file by file.
Common signs are strange new pages, redirects to other sites, a warning from Google, or admin users you did not create. If you see any of these, treat it as a hack and start the wordpress website hacked what to do steps right away.
A small, simple hack is often cleanable by a careful owner. A large or repeated hack needs a professional. If you are unsure, get help early, because a wrong cleanup can make wordpress website hacked what to do harder, not easier.
When you discover a hack, the question of wordpress website hacked what to do has a short answer: contain, clean, and prevent. Use this checklist in order.
That checklist is the practical core of wordpress website hacked what to do. If any step finds something you do not understand, get help before continuing, because a half-cleaned site gets hacked again fast.
Prevention is the cheapest part of wordpress website hacked what to do, and it is the part most owners skip until after the first hack. The habits are simple: strong unique passwords, two-factor authentication on every account, prompt updates for WordPress, themes, and plugins, and removal of anything unused. Each habit alone is small; together, they stop most attacks.
Limit login attempts and change the default admin username. Automated attacks try the username “admin” with common passwords thousands of times a day. A different username and a limit on login attempts block that whole class of attack. The login hardening in wordpress website hacked what to do prevention takes minutes to set up and protects the site every day.
Keep a backup that runs automatically and that you have tested by restoring it. A tested backup turns a hack from a disaster into a bad day, because the site can be restored in hours. The backup habit is the final piece of wordpress website hacked what to do prevention, and it is the one that matters most when everything else fails.
Update promptly whenever a security release appears, and check for updates at least weekly. The update habit in wordpress website hacked what to do prevention is simple, but it is the one that closes the holes attackers actually use.
It helps, but it is not a substitute for the basics. A security plugin adds monitoring and login protection, and it is a useful layer in wordpress website hacked what to do prevention, but passwords, updates, and backups matter more.
New admin users you did not create, strange pages, redirects to other sites, or a warning from Google. If you see any of these, start the wordpress website hacked what to do recovery steps immediately, because early action makes recovery far easier.
Further reading: Get Cyber Safe.
Brainiac Business