You open your site and something’s off. A strange redirect. A red warning screen from Google. A hosting email with the word “suspended” in the subject line.
Website disaster recovery and malware removal can feel like a job for a big IT team. Small business sites get hit every day, because bots scan the web for old plugins and weak passwords and don’t care who owns the site.
The good news: most hacked websites come back. The bad news is that the first few hours matter a lot, and the wrong move can make things worse.
Here’s the plan I’d follow: spot the hack, contain it, clean it, restore the site and close the door behind you. You can handle a lot of it yourself. A few parts you probably shouldn’t.
Work through it in order. If your site is down right now, skip to the first-hour checklist.
Some hacks are loud. Others sit quietly for weeks, sending spam or siphoning off your visitors. Check for both.
These are the ones you’ll notice first:
These take more digging:
Start with the Security issues report in Google Search Console. It shows what Google has flagged.
Then run a free external scan such as Sucuri SiteCheck, and look up your domain in Google’s Safe Browsing site status tool.
One more thing. Visit your site while logged out, on your phone’s mobile data, after clicking through from a Google search. Some malware hides from site owners and only attacks everyone else.

Speed matters. Panic costs more. Do these in order.
If you take payments, contact your payment provider too. And if customer data may have been exposed, move to the breach steps in the recovery section below.
Don’t start deleting files yet. Deleting without a plan is how people wipe out the evidence and miss the backdoor.
Disaster recovery means getting a working, safe site back. Malware removal is one piece of it. Here’s the full sequence.
You have two routes.
Restore from a clean backup. This is the fastest option if you have a copy from before the infection. The catch is timing. Attackers often sit inside a site for days or weeks, so a backup from last night may already carry the backdoor.
Clean the site in place. This is slower, but you keep recent orders, posts and form entries. You also have to find every infected file.
My rule of thumb: if you can prove a backup predates the first sign of trouble, restore it and patch right away. If you can’t, clean in place or rebuild the core files from fresh copies.
Look for new admin accounts, exported user tables and strange scripts on checkout or login pages. Payment skimmers hide in exactly those spots.
If personal information may have been exposed, you might have legal duties. In Canada, PIPEDA requires organizations to report breaches of security safeguards that pose a real risk of significant harm and to tell the people affected. US states have their own notification laws.
Rules differ by place and by industry, so ask a lawyer or your insurer early.
Cleaning without finding the entry point is like mopping a floor under a leaking pipe. Common causes:
Ask your host for access logs. Look at the timestamp of the earliest modified file and read what happened in the logs just before it.

Work on the offline site or a staging copy. The examples below use WordPress because it’s the most common platform, but the logic fits any CMS.
Download a clean copy of your CMS from the official source. Replace the core folders and root files, but leave your content folder and config file alone for now.
If you have command line access, WP-CLI can compare your files against the official versions:
wp core verify-checksums
wp plugin verify-checksums –all
Anything that fails the check was changed, and you want to know why.
Delete each plugin and theme, then reinstall from the official source. Remove anything you don’t use. Remove anything pirated too, since those “free premium” downloads are a classic way in.
A backdoor is a small hidden file or code snippet that lets the attacker walk back in after you clean up. Missing one is the top reason sites get hacked again within days.
Check the uploads folder first. It should hold images and documents, not PHP files. Then look at files with recent modified dates that nobody on your team edited, plus odd filenames that imitate real ones.
Search for functions attackers love, like eval, base64_decode and gzinflate. On a server you can run:
grep -rl “base64_decode” wp-content/
Some legitimate plugins use these functions too, so check every hit before you delete it. Pay special attention to your config file and your .htaccess file. Both are favourite hiding spots.
Back up the database first. Then look for admin users you don’t recognize and delete them.
Search your posts and settings tables for injected <script> and <iframe> tags, plus spam links hidden in old content. Hackers often plant these in the database because file scans skip it.
These hosted platforms handle the server side, so attacks usually go after staff accounts and third-party apps. Reset passwords, remove staff accounts you don’t need, review installed apps and look through your theme code for scripts you didn’t add. Then contact platform support.
The site looks clean. Don’t flip the switch yet.

Change every password again, now that the backdoors are gone. That includes hosting, SFTP, the database and every admin account. Update the database password in your config file after you change it.
Generate new security keys and salts if you run WordPress. This logs out every active session, including any the attacker still holds.
Update the CMS, plugins and themes to their latest versions. Then run another scan and check your logs for a day before you trust the result.
If Google flagged your site, open the Security issues report in Search Console. Fix what it lists, then request a review. Reviews usually take a few days, so a lingering warning doesn’t mean you failed.
If spam pages got indexed, make sure they return a 404 or 410 error. Use the Removals tool in Search Console to hide them from results faster, and submit a fresh sitemap.
Check your robots.txt file and your sitemap too. Attackers sometimes edit them.
Google isn’t the only one. Look up your domain on the Safe Browsing site status page and in your email provider’s reputation tools. If your host suspended the account, send them the cleanup details and ask for reinstatement.
If your emails land in spam since the attack, give it a week or two and test again.
There’s no shame in calling for help. Plenty of owners should.
Approach | Pros | Cons | Best for |
Do it yourself | Lowest cost and full control | Easy to miss a backdoor. Takes time | Small brochure sites with no customer data and a clean backup |
Your hosting provider | Often free or cheap, and they know the server | Some only restore a backup and skip root cause | First call for every hack |
A malware removal service | Experienced eyes, written report and faster turnaround | Costs money. You’ll share access to your site | Ecommerce stores, reinfections and sites with customer data |
Call a pro if any of these apply:
A good malware removal service should answer these without dodging:
Be wary of anyone promising a full cleanup in minutes without scanning anything. Be wary too of anyone who wants your main hosting password when a limited account would do.
A backup you’ve never restored is a hope, not a plan. Here’s how to build one that works on a bad day.
Keep 3 copies of your site, on 2 different types of storage, with 1 copy off the server. If your only backups live on the same hosting account as the site, an attacker who gets in can wipe both.
Back up the files, the database and your config. Also write down your DNS records and email settings somewhere safe, because they’re painful to rebuild from memory.
Frequency depends on how often your site changes:
Keep at least 30 days of history. Slow infections need you to reach back past the first sign of trouble.
Once a quarter, restore a backup to a staging site and click around. Check that images load, forms send and checkout works. You’ll find problems now instead of at 2 a.m. during an attack.
Two questions shape everything: how long can the site stay down, and how much recent data can you afford to lose? Your answers set your backup schedule.
Then put a one-page plan in a shared folder. List who calls the host, where the logins live, who can approve spending and who tells customers. Add your host’s emergency contact and your domain registrar’s login.
This is the heart of any website backup and restore plan. Our website backup and disaster recovery guide goes deeper on the technical side. When the site goes down, nobody wants to hunt for a phone number.
It depends on the size of the site and how deep the infection runs. Here are typical ranges for a small business site.
Stage | Typical time | What happens |
Containment | First hour | Site offline, backup taken, host contacted, passwords changed |
Diagnosis | A few hours | Scans, log review and a decision to restore or clean |
Cleanup | Several hours to 2 days | Core files replaced, backdoors removed, database checked |
Hardening and relaunch | Half a day to 1 day | New passwords, updates and a final scan |
Google and blocklist review | A few days | Review request submitted and warnings cleared |
Search traffic recovery | Weeks, sometimes longer | Rankings return as Google recrawls clean pages |
Large stores and sites with years of spam pages take longer. A clean backup and a written plan can cut the first three stages dramatically.
Traffic is the slow part. Even after the warnings disappear, rankings need time to return, so keep publishing and keep your site fast while you wait. If rankings stay flat for weeks, our SEO services can help, and our guide on why your website isn’t ranking covers the first fixes.
OWASP’s Top 10 list of web risks includes vulnerable and outdated components, and that matches what shows up in real cleanups. NIST’s Cybersecurity Framework also treats recovery as a core function next to protecting and detecting. You need all of them.
Here’s what I’d put in place first (our website security guide goes deeper):
Staff matter too. Many hacks start with a phishing email, so teach your team to check the sender before they click anything. And if constant patching wears you out, an older site may cost less to rebuild than to keep fixing. Our website design and development team builds on current platforms.
Put a monthly 30-minute reminder in your calendar and run through the list. It’s boring. It works. If you’d rather hand the list off, our website maintenance and security plans cover updates, backups and monitoring.
These show up again and again.
One more: installing a pirated plugin to “fix” the problem. Pirated code often carries its own hidden backdoor, so that move can turn a small hack into a long one.
Website disaster recovery and malware removal come down to order and speed. Contain the site, find the way in, clean everything and lock the doors behind you.
If you’re in the middle of an attack right now, start with the first-hour checklist and call your host. If your site is fine today, set up an offsite backup and test one restore this week.
Want an expert to handle it? Contact our team for a malware scan and a written quote. We’ll tell you what we find and what the fix involves.
It can. Spam pages, redirects and security warnings all send bad signals and scare visitors away. Rankings usually recover after you clean the site and Google recrawls it, but the timing varies.
Yes. Some malware pushes fake update prompts or downloads onto visitors’ devices. Payment skimmers go after card details typed into your checkout. That’s why taking the site offline early matters.
A plugin helps you detect problems and block repeat attacks. Automatic cleanup often misses backdoors, so use it as one layer and finish with a manual review.
Prices vary with site size, platform and how deep the infection runs. For ongoing protection costs, see our breakdown of website maintenance cost. Ask for a written quote that spells out what’s included, such as root cause analysis, a report and the Google review. Then compare it with what each day offline costs you.
If personal data may have been exposed, you likely have legal duties, and telling customers promptly is the right move anyway. If no data was touched, a short honest note about downtime is often enough. Check with a lawyer for your situation.
Yes, but it’s slower. You’ll replace core files with fresh copies, reinstall plugins and themes, and clean the database by hand. Content stays in the database, so you rarely lose it.