My WordPress Site Has Been Hacked. What Do I Do Now?
By Cham de Silva, Founder, Foundry & Folio ·

If your WordPress site has been hacked, do three things first: take a full backup of the site as it is now, change the passwords on your hosting account and every WordPress admin login, and do not type a password into the site's login page until it is fixed. Then get the site properly cleaned, because deleting the obvious malware almost never removes the way back in.
The rest of this guide covers how to tell it is a hack, what a real clean-up involves, what it costs in Australia, and how to stop it happening again.
How do I know if my WordPress site has been hacked?
The clearest signs are things you did not do: pages you never made, visitors sent to other websites, or admin accounts you do not recognise. Look for these:
- Google shows strange results for your site, often spam titles in Japanese or Chinese, or pharmacy and product pages.
- Visitors land on ads or scam pages, sometimes only the first time they visit, so you never see it yourself.
- The site has become very slow or keeps timing out. Hacked sites often fetch spam from another server on every page load.
- Your browser, Google or your host warns that the site is unsafe, or your host has suspended it or blocked its email.
- New admin users appear, often with names like admin001 or emails ending in a made-up domain.
The hard part is that many hacks are built to hide from the owner. They show spam only to Google and send only new visitors elsewhere. A site can stay compromised for months while it looks normal to you.
What should I do in the first hour?
In the first hour, back up the site, lock down your hosting account and stay out of the site's login page. Contain it before you try to fix it, in this order:
- Back up everything as it is. Files and database. It feels odd to back up a hacked site, but you need it to see what changed, and it protects your content if a clean-up goes wrong.
- Change your hosting account password and turn on two-step sign-in. The hosting account is the master key.
- Do not log in through the site itself yet. Some hacks rewrite the login form so your username and password go straight to the attacker.
- Write down what you noticed and when. It helps whoever cleans the site find where the attack started.
- Check Google Search Console if you have it. The Security Issues report shows whether Google has flagged the site.
Do not start deleting files at random. Removing the visible malware while the backdoor stays in place is the most common reason sites get reinfected within days.
How does a proper hacked website clean-up work?
A proper clean-up finds every way the attacker can get back in, not just the files that look wrong. A recent clean-up we did is a good example: the site had malware in the theme, but also two hidden admin accounts, five remote-control files buried in the images folder, two backdoors set to load on every page, and the site's own address quietly changed to the attacker's domain. Removing only the theme code would have left all of that in place.
A thorough job looks like this:
Close-up of HTML code displayed on a computer monitor, showcasing web development.- Check every file against the official copies. WordPress publishes checksums for its core files and for plugins from WordPress.org, so anything added or changed stands out.
- Look beyond the files. Hidden admin accounts, changed settings in the database, scheduled tasks and rewritten site addresses are common.
- Quarantine, do not delete. Removed files are set aside so anything removed by mistake can come back.
- Update and harden. Out-of-date plugins and PHP are the usual way in, so the clean-up is not finished until they are current. Updates should be tested on a copy first, because old themes can break on new plugin versions.
- Change every password and key. Admin logins, the database password and the security keys that sign everyone out, the attacker included.
- Check from the outside. Load every page the way customers and Google see it, not just from the admin dashboard.
How much does it cost to fix a hacked WordPress site in Australia?
Prices range from under $100 for a quick freelance scan to several thousand dollars for an agency incident response. What you pay for is how much of the list above gets done. A cheap scan that removes the visible malware and leaves the backdoors usually costs more in the end, because the site is hacked again.
Our prices are fixed and in AUD plus GST:
- Emergency Clean-up, $790. Malware and backdoors out, unknown admins removed, site address and login restored, passwords changed, backup first and a plain-English summary. For a simple infection caught early.
- Full Hacked Site Recovery, $1,560. Everything above, plus a file check against official copies, plugin, theme and PHP updates tested on a copy, database and hosting passwords changed, a verified off-server backup, a written incident report and a follow-up check a week later. For sites hacked for a while or running old software.
- Website Care & Security, $79 a month. Updates, daily malware and uptime monitoring, off-server backups, and a re-clean included if the site is ever hacked again.
We look at the site first and confirm which one it needs before you pay. Details are on our hacked website repair page.
How did my site get hacked in the first place?
Almost always through something out of date, something unused, or something exposed. The common causes we see:
- Old plugins and themes with known security holes, still active years after the last update.
- An old version of PHP, the language WordPress runs on, that no longer gets security fixes.
- File manager plugins, which let files be uploaded straight onto the server.
- Backups left in the public folder, where anyone can download the whole site, passwords included.
- Guessable admin usernames, such as "admin" or the business name shown on the site.
How do I stop it happening again?
Keep the site updated, keep it lean, and give every person their own strong login. WordPress publishes its own hardening guide, and the short version is:
- Update WordPress, plugins and themes monthly, and remove what you do not use.
- Keep PHP on a supported version. Your host can switch it in a few clicks.
- Store backups off the server, never in the public web folder.
- Give each admin their own account, a private username, a long password and two-step sign-in.
- Set up monitoring so a problem is caught in days, not months.
If you would rather not think about it, that is what a care plan is for. And if your site is old enough that patching it is a losing battle, it may be time to look at affordable web design in Sydney and start on something you can keep secure.
FAQ
Can I clean a hacked WordPress site myself?
You can remove obvious malware yourself, but finding every backdoor takes experience and the right checks. If the site keeps getting reinfected, something was missed.
Will Google penalise my site after a hack?
Google may show a warning or remove spam pages from its results while the site is infected. Once the site is clean, you can request a review in Search Console so Google checks it again.
Do I need to tell my customers?
If customer details may have been exposed, check your obligations under the Notifiable Data Breaches scheme on the OAIC website and get advice for your situation.
Think your site has been hacked? Get in touch and we will take a look.
Written by Cham de Silva, who runs Foundry & Folio and builds the sites these guides describe.