Rune
← All guides
GeneralJune 22, 2026

Website Hacked? Here's What to Do Next

If your website was hacked, here's what to do next — what caused it, what fixing it involves, and how to get back online fast.

Discovering your website has been hacked is one of the worst moments you can have as a business owner. Maybe a customer told you your site is showing strange content. Maybe Google flagged it with a warning. Maybe you noticed something just feels off — redirects to unknown pages, new links you didn't add, or a login that suddenly doesn't work. Whatever tipped you off, that sick-to-your-stomach feeling is completely understandable.

The bad news is that a hacked website is a real problem that needs real attention, and quickly. The longer a compromised site stays online, the more damage it can do — to your customers, your search rankings, your reputation, and your business revenue. Google actively blacklists hacked sites, which means your traffic can drop off a cliff almost overnight. And if your site collects any customer data, the stakes are even higher.

The good news? This is fixable. Businesses recover from website hacks every day. Knowing what you're dealing with and what actually needs to happen next is the first step — and that's exactly what this article is here to help with.

What Causes a Website to Get Hacked

Hacks rarely happen because someone specifically targeted your business. In most cases, you were hit by an automated attack that scans thousands of websites looking for known vulnerabilities. It's opportunistic, not personal — which is a bit of cold comfort, but it's true.

The most common entry points are outdated software, weak passwords, and insecure plugins or themes. If your website runs on a platform like WordPress, Joomla, or any content management system, and you haven't kept things updated, you're a much easier target. Hackers exploit known security holes in old software versions, and those vulnerabilities are publicly listed — which is exactly why keeping things current matters so much.

Other common causes include stolen login credentials (sometimes from a data breach on an unrelated service where you reused a password), insecure hosting environments, poorly coded third-party plugins, or a previous developer who left behind access they shouldn't still have. If your site was recently worked on and things went sideways shortly after, it's worth considering whether that work may have introduced a vulnerability — something we've written about in the context of website issues that appear after hiring someone.

What Fixing a Hacked Website Actually Involves

Cleaning up a hacked site isn't as simple as deleting a few suspicious files. A thorough recovery has several stages, and skipping any of them tends to lead to re-infection.

Step one is containment. This usually means taking the site offline or into maintenance mode so that visitors aren't exposed to malicious content while the cleanup is happening. If your hosting provider detected the hack, they may have already done this for you.

Step two is a full malware scan and audit. Someone needs to go through your site's files, database, and code to find everything the attackers added or modified. This is more involved than it sounds — malware is often hidden in places you'd never think to look, including legitimate-looking files with small injected code snippets buried inside them.

Step three is the actual cleanup. All malicious code gets removed. Modified files get restored from clean backups or replaced entirely. Any backdoors — hidden entry points attackers leave behind so they can get back in — need to be found and closed. Missing this step is the number one reason sites get hacked again within days of being "cleaned."

Step four is securing the site going forward. This means changing all passwords (hosting, CMS, FTP, database), reviewing who has admin access, updating all software and plugins, and often putting security monitoring in place so you get alerted if something suspicious happens again.

Step five is getting off Google's blacklist, if your site was flagged. This involves submitting a review request through Google Search Console after the site is clean. It doesn't happen automatically, and it can take a few days.

If your site runs on WordPress specifically, there's more detail on what this process looks like in our WordPress site hacked guide.

Signs This Is Your Issue

Sometimes a hack is obvious. Other times it's subtle enough that you might not notice for weeks. Here are the warning signs to watch for:

Even one of these signs is worth taking seriously. And if you're not sure whether your site is actually compromised or just broken in some other way, you might find it helpful to start with how to tell if your website is broken to get a clearer picture.

Should You Try to Fix It Yourself?

This is the part where we'll be honest with you: cleaning up a hacked website is one of the harder website repair jobs out there. It's not just technical — it requires knowing what "normal" looks like in website files so you can spot what shouldn't be there. If you miss even one backdoor, attackers can simply walk back in and re-infect everything you just cleaned.

If you're not comfortable working directly in hosting file managers, databases, and code files, DIY cleanup carries real risk. The two main risks are: not actually removing everything (and getting hacked again quickly), and accidentally breaking the site further while trying to clean it.

That said, there are a few things any business owner can do right now while getting help lined up:

For more on navigating a broken or compromised site when you don't have a developer on speed dial, this guide is a useful place to start.

Common Questions About a Hacked Website

How did my website get hacked if I didn't click anything suspicious? Most website hacks don't require you to do anything wrong personally. Automated bots scan millions of websites looking for outdated software, weak passwords, or known security holes — and when they find one, they exploit it without any human involvement. It's less like a targeted attack and more like someone testing every door handle on your street until they find one that opens.

Will my website be safe after it's cleaned? Yes, if the cleanup is done thoroughly. The key is making sure all malicious code is removed, all backdoors are closed, and the underlying vulnerability that allowed the hack is addressed. Sites that get re-hacked quickly after a "cleanup" usually had one of those steps skipped.

How long does it take to fix a hacked website? A straightforward cleanup can often be completed in a few hours by someone who knows what they're doing. More complex infections — particularly ones that have been sitting undetected for a long time — can take longer, especially if there's extensive file modification or database injection involved.

Can a hacked website hurt my Google rankings? Yes, significantly. Google actively scans for and flags compromised websites. If your site gets blacklisted, it can show a warning to visitors in search results and Chrome, which tanks your traffic fast. Even after cleanup, you'll need to submit a review request to Google to get the warning removed — it doesn't lift automatically.

Do I need to notify my customers if my site was hacked? It depends on what data your site collects and where you're located. If your site processes payments or stores any personal information — names, emails, addresses — and that data may have been accessed, you may have legal obligations to notify affected users. It's worth checking with a legal advisor if you're unsure, especially if you serve customers in the EU (GDPR) or California (CCPA).

The Faster Path

If you're dealing with a hacked website and the last thing you need right now is to spend days troubleshooting it yourself, that's where Rune comes in. Rune is a flat-rate website repair service — you describe the problem, pay one straightforward fee, and a developer handles the fix. No hourly billing surprises, no retainer, no waiting weeks for availability.

Hacked site cleanup is exactly the kind of job Rune handles. The work gets done properly — malware removed, backdoors closed, the site secured — so you're not back in the same situation two weeks from now.

If you're also curious about what repairs like this typically cost before you commit to anything, this honest breakdown of website repair costs is worth a read. When you're ready to move forward, you can get started at runeintel.com.

More Fix Guides

Rather have someone else handle it?

Rune fixes website problems flat-rate. Most jobs done in 24–48 hours. No hourly billing, no surprises.

Get It Fixed →