Restoring a Joomla Site After a Hack: Where to Start and What to Avoid
Author

JoomLab.

Published Date

26 August 2026

Views

2 511

Restoring a Joomla Site After a Hack: Where to Start and What to Avoid

The site has been hacked. The first reaction is to urgently delete something, close access, reinstall Joomla. But it is precisely in the first minutes that it is important not to make mistakes. We have restored more than 150 sites after hacks and we know for sure: the first hours decide a lot. Let us look at the right order of restoration.

What Not to Do Right Away

Here are typical mistakes that turn a routine hack into a catastrophe:

  • Deleting files at random — you can lose legitimate data.
  • Reinstalling Joomla — it will wipe the content and settings.
  • Ignoring the problem hoping that "it will go away on its own".
  • Contacting unverified contractors who do it "fast and cheap".

Any rash action can complicate the recovery. First — diagnostics, then — actions.

Step 1. Record the State

Make a full copy of the files and database in the current state. Yes, the copy will be infected, but it is a starting point. If something goes wrong during the cleanup, you will be able to roll back.

Also record the date and time when you noticed the hack. This information will be useful for log analysis.

Step 2. Restrict Access

Put the site into maintenance mode. Change the passwords for the Joomla admin panel, hosting, FTP and database. This will not cure the site but will prevent the attacker from continuing their actions.

Check the Joomla user list. Delete or block suspicious accounts.

Step 3. Conduct Diagnostics

Diagnostics should answer three questions:

  1. How did the attacker get onto the site?
  2. Which files and data were affected?
  3. Are there hidden backdoors for a return entry?

Professional diagnostics include scanning the files, analyzing the database and checking the server logs. Based on the results the scale of the infection and the treatment plan become clear.

Signs That Urgent Help Is Needed

Do not try to clean the site yourself if:

  • You do not know how the attacker gained access.
  • There are signs of web shells on the site.
  • The database contains suspicious records.
  • The site has already been blacklisted by search engines.

In these cases it is safer to entrust the site to specialists. Our Virus Removal service includes a full cycle: diagnostics, removing malicious code, checking the database, with a 30-day guarantee. Urgent cases are closed in 2–4 hours.

Step 4. Perform the Cleanup

The cleanup includes removing malicious code from the files and database, restoring the modified Joomla system files to their original state. It is important not only to remove the virus but also to close the vulnerability through which it got in.

Removing shells, backdoors and hidden scripts is a separate service, Malicious Code Removal. If there is a fresh backup, part of the data is restored from it — this is Recovery After a Hack.

Step 5. Restore Access for Search Engines

After the cleanup, check whether the site has got onto the Google and Yandex blacklists. If it has — submit a review request through the webmaster panels. Usually after removing the malicious code the site is removed from the blacklist within a few days.

Step 6. Close the Vulnerability

If the vulnerability through which the attacker got onto the site is not closed, the hack will repeat. It could be an outdated Joomla, a weak password, 777 permissions or an open admin panel. Comprehensive protection is a separate service, Joomla Security and Firewall: we close typical vulnerabilities and reduce the risk of re-infection.

"Recovery after a hack is not only cleaning files. It is regaining the trust of users and search engines."

The earlier you start the proper recovery, the faster the site returns to operation. Delay in the first hours can cost data and search rankings.