hacked website no backup — cover illustration
← Blog

My website was hacked and I have no backup: can it still be saved?

Updated Ivan Pantić

Almost every piece of advice for a hacked site starts with the same sentence: "First, restore your last clean backup." For many owners, the advice ends right there, because there's no backup. The site was built a few years ago, nobody set up copies, the developer you worked with is no longer reachable, and the host never mentioned backups.

At that moment it's easy to think the site is lost and everything has to start from scratch. The good news is that this is almost never true. A hacked website with no backup can, in the vast majority of cases, be cleaned and restored to working order with all its content. A backup is useful, but it's not a condition for recovery.

In this article we explain why a backup isn't the only way, where copies of your site might still exist that you don't know about, what cleanup without a backup looks like and what never to do while you're looking for a solution.

In short: a hacked website with no backup is not a lost website. Your content is still on the server, just alongside the malware. The solution is to clean the current state, not restore an old one. Before that, make a copy of the site as it is, don't delete anything and don't reinstall WordPress. Also check whether your host keeps automatic copies after all.

Request help → · +381 65 402 5000

Why a backup isn't the only way

Why a isn't the only way

A backup is a copy of the site from some moment in the past. When you restore it, you return the site to that state. That's quick and simple, but it has two weaknesses that are rarely discussed.

First, you lose everything that changed since the backup: new articles, edits, orders, sign-ups.

Second, and more important, a backup is clean only if it was made before the infection began. And hardly anyone knows that for sure. Attackers often leave a hidden entrance weeks before they activate it. The owner restores a backup from two weeks ago, and the backdoor was already in it. The problem returns, and the owner doesn't understand why. We cover this scenario in detail in restoring a site from a backup after a hack.

That's why, even when a backup exists, professional cleanup often doesn't start by restoring it, but by cleaning the current state. If there's no backup, you lose a shortcut, not the road.

What's actually on a hacked site

To make it clearer why a site can be saved without a backup, it helps to understand what a hacked WordPress site looks like from the inside.

Your site consists of two parts:

  • files: WordPress core, the theme, plugins and uploaded images and documents,
  • the database: articles, pages, settings, users, orders.

When an attacker gets in, they add their own things or modify existing ones: inject code into a theme file, drop a backdoor file into the images folder, add their own administrator to the database, insert a script into the settings. But your content is almost always still there. Articles are in the database, images are in the folder, settings exist.

Cleanup means finding and removing what the attacker added or changed, and keeping everything else. That doesn't take a backup; it takes a good review.

Where copies of your site may still exist

Where copies of your site may still exist

Before you conclude there's no backup, check these places. You'd be surprised how often a copy turns up after all.

Your host's automatic backup

Many hosting plans make automatic copies, even if they don't advertise it. Check your hosting control panel for a backup or restore section, or ask support. Sometimes copies are kept for only a few days, so ask right away.

A backup plugin on the site itself

Someone may once have installed a backup plugin that's still running, or was until recently. Such plugins often store copies in a separate folder on the same server. A copy on the same server isn't ideal, because it may be infected too, but it's better than nothing.

A staging version

If the site had a test version for trying out changes, it may still exist, in a subfolder or on a subdomain. Careful: old staging versions are often a source of infection themselves, because nobody updates what isn't used.

The developer or agency

If someone else built the site, they may have a local copy, or a copy from when the site was handed over. Even an old copy can help compare what's been changed.

Your computer and email

Check whether you ever downloaded a copy of the site, exported articles or received an archive by email. Those things get forgotten.

Public web archives

For the content itself, the text and look of pages, there are public web archives that periodically save snapshots of sites. They don't keep the database or admin, but they can help recover the text of a damaged page.

None of these places replaces a real backup, but each can help with recovery.

How to ask your host or developer for a copy

When you write to hosting support or a former developer, be specific, because it shortens the back-and-forth:

  • give the domain and, for the host, the account username,
  • say the site was hacked and that you're asking for all available copies of files and database,
  • ask how many copies exist and with which dates,
  • ask that the copies not be deleted until you've decided what to do with them.

That last point matters. With some hosts, automatic copies rotate, so the oldest one disappears every day. If the infection started a week ago and the host keeps seven days, the last copy that might be clean is disappearing right now.

Don't restore the copy you receive to the site right away. Save it first, then use it for comparison: what changed between the copy and the current state. That often quickly shows where the attacker added something.

First steps when there's no backup

If you've checked every place and there's no copy, here's the order that preserves what you have.

1. Make a copy of the site as it is now

This sounds paradoxical: why save an infected site? Because it's now the only copy of your content. If something goes wrong during cleanup, if someone deletes the wrong file, if the host suspends the account, this copy is all you have.

Copy all files and separately export the database through your hosting control panel. Store them off the server, on your computer or in the cloud. From now on this is your first backup, and it's fine that it's infected. What matters is that it exists.

2. Change passwords

Change passwords for WordPress admin, hosting, FTP and the database. If the attacker got in with a stolen password, this closes their easiest way back.

3. Write down what you see

What the symptoms are, since when, who noticed them. If you received an email from your host or Google, keep it. It helps determine when the infection started and what to look for.

4. Run a check

A free website check shows what's visible from outside: redirects, suspicious scripts, a Google warning. That's the starting point for cleanup.

The general order of steps after a hack is also in my site is hacked: what to do first.

What never to do

What never to do

When there's no backup, every mistake costs more, because there's no going back. These are the moves that most often turn a solvable problem into a lost site.

Don't reinstall WordPress "over" the site. A reinstall replaces core files, but malware is almost always in the theme, plugins, images folder or database. Result: the infection stays, and you may lose some settings.

Don't delete folders that look suspicious. Without a copy, a deleted file is gone forever. And a suspicious folder may also hold your images.

Don't reset the hosting account. Some hosts offer an option to "reset the account to its initial state". That deletes everything, including your content.

Don't move the site to a new host in a panic. The infection travels with the site, and the logs showing how the attacker got in stay on the old server.

Don't try to "clean" the database by hand unless you know exactly what you're doing. A wrong change in the database can take down the whole site.

Don't wait for it to "go away". It won't. The attacker is using your site, and the longer it goes on, the greater the damage in Google, with your host and with visitors.

What cleanup without a backup looks like

Cleanup without a backup isn't a different job from regular cleanup. The only difference is that there's no shortcut and it has to be done more carefully, because there's no way back.

Core files are compared with the official WordPress version and replaced with clean ones. This is safe, because core doesn't contain your content.

Themes and plugins are compared with official versions. Modified files are replaced with originals, keeping your settings. If the theme was customized specifically for your site, changes are reviewed by hand.

The images folder is searched for files that don't belong there, above all PHP files. Images and documents stay.

The database is reviewed: injected scripts in content and settings, fake administrators, scheduled tasks that bring the infection back. Only what the attacker added is removed.

Hidden entrances are looked for in places an owner would never look. What that looks like, we describe in how to find a WordPress backdoor.

The entrance is closed: updates, removing unused plugins, changing keys, invalidating sessions.

The whole process, with all its phases, is described in hacked website cleanup, step by step.

How to determine when the infection started

How to determine when the infection started

When there's no backup, the question "since when" seems irrelevant. But the answer is still useful, because it shows how the attacker got in and what needs checking.

File modification dates. Every file on the server has a last-modified date. Theme files modified when nobody was working on the site, or PHP files in the images folder with a particular date, give you a first point in time. Careful: attackers sometimes change dates on purpose to make files look old.

Server logs. Hosts keep access logs, usually for a few days or weeks. They show who accessed which addresses, and often the moment the attacker first exploited the vulnerability.

User registration date. A fake administrator has a creation date. That's often the most precise clue.

Search Console. If Google reported a problem, the notification states when it was detected.

The first symptom. When someone first noticed something unusual: a redirect, spam in Google, an email from the host.

When all these points are put together, you usually get a fairly clear picture: when the attacker got in, through what, and what they've been doing since. That also helps assess whether visitors' or customers' data was at risk.

A case from practice

Here's what a typical case of a site without a backup looks like, described in general terms.

A small service business owner learns from a client that Google shows pages in a foreign language under the company's name. The site was built four years ago by a developer the owner is no longer in touch with. A backup was never set up. The host doesn't keep automatic copies on that plan.

The owner's first instinct was to ask the host to "reset" the account. Fortunately, he asked for advice first.

A copy of the files and database was made as they were. The review found injected code showing thousands of spam pages to Google's crawler, two backdoor files among the images, and an administrator with a name that looked like a system account. The entry point was a contact form plugin that hadn't been updated since the site was built.

After cleanup, all of the company's content was in place: articles, images, contact details. Nothing had to be rebuilt from scratch. The spam pages were then removed from Google's index, and an off-server backup and monitoring were set up.

If the account had been reset, as the owner originally wanted, the site really would have had to be built from scratch.

When a site can't be fully saved

When a site can't be fully saved

To be honest: there are rare cases when part of the site can't be recovered. That happens when:

  • the attacker deliberately deleted content, not just added their own,
  • the database is damaged and partly overwritten,
  • before cleanup someone reinstalled or reset the site and deleted some data,
  • the hosting account was closed and data deleted before anyone reacted.

Even then, a large part can usually be saved: articles from the database, images from the folder, parts of content from public archives. The site is rebuilt on a clean foundation and content is restored as far as possible.

But these are exceptions. In the vast majority of cases, a hacked website with no backup is cleaned and fully restored.

When the host has suspended the account

A special case is when the site is hacked, there's no backup, and the host has suspended the account because the site is sending spam or spreading malware. Then you can't even make a copy.

The solution is to ask the host for temporary access for cleanup. Most hosts allow this, because they want the problem solved too. The first thing you do when you get access is make a copy, and only then clean. More on this situation in hosting account suspended for abuse.

Important: don't wait too long. Some hosts delete data from accounts after a longer suspension.

What about email and the domain

What about email and the domain

Owners often fear that if the site is hacked, the whole domain is compromised, including email. The good news is that site and email usually run separately. A hacked WordPress site doesn't automatically mean the attacker had access to your mailbox.

But there are exceptions. If email is on the same hosting account as the site and the attacker had hosting access, they could see the email settings too. If the site was sending spam, your domain's email reputation may be damaged, so your legitimate emails land in spam folders.

So after cleanup, also change passwords for email accounts on the same hosting, and check that your emails are reaching recipients normally.

After cleanup: how to make sure this doesn't happen again

Once the site is clean, this is the right moment to solve the backup question once and for all.

A good backup has three properties:

  1. It's regular, automatic, on a schedule, not "when I remember".
  2. It's stored off the server, in a different location, so it's available even when the site isn't.
  3. It has several versions, so you can restore the state from before an infection even if it's discovered after a few weeks.

Besides a backup, it's just as important that an infection is discovered early. A backup from three days ago is worth much more if you know the infection started yesterday than if you discover it after a month, when all backups are already infected.

That's why after cleanup we recommend maintenance with backups and monitoring, from €35/month. What it includes is in WordPress maintenance.

How much does cleanup without a backup cost

Not having a backup doesn't fundamentally change the cleanup price. Cleanup starts from €100 (Standard Incident), and urgent cases from €150 (Emergency Response), with emergency support non-stop. The exact amount depends on the site's condition and the scope of findings, and we confirm it after a short assessment, before work begins.

A site without a backup is still your site

hacked website no backup — closing section illustration

Don't panic and don't delete anything. Make a copy of what you have and get in touch. Send the site address and a short description of what's happening, and you'll get an assessment and a plan before anything starts.

Request help → · +381 65 402 5000 · or start with a free website check


Questions

Frequent questions

Short answers with this article. If your question is not here, write to us via contact.

Is my site lost if I have no backup?

Almost never. Your content is still on the server, just with malware alongside it. Cleanup removes the malware and keeps the content.

Can my host restore my site?

Check whether your host keeps automatic copies. If it does, ask how far back. But even then, keep in mind the copy may already be infected.

Should I reinstall WordPress?

No. A reinstall doesn't remove malware from the theme, plugins, images folder or database, and can cause extra damage.

How long does cleanup without a backup take?

For most small business sites, from a few hours to a day or two, depending on site size and how deep the infection goes.

What if the site is a shop?

For shops, cleaning without restoring a backup is actually the better choice, because all orders are kept. Shops get priority.

Should I build a new site instead of cleaning the old one?

If the site needed replacing anyway, that can be a reasonable decision. But even then, clean or at least isolate the old site first, because while it runs infected it harms your domain. And save its content; the articles and images are valuable.

Is a backup on the same server worth anything?

It's worth something as an extra copy, but not as the only one. If the server is compromised or the account suspended, that backup is unavailable or infected too. A real backup is stored in a different location.

Who's responsible for there being no backup?

The question is understandable, but right now it matters less than solving the problem. Once the site is clean, make sure a backup exists and that you know where it is.

Not sure if your site has been hacked?

Run the free check: security, SEO and AI scores. Detailed findings unlock when you enter your email.

Check my site