If your Joomla! site is redirecting visitors to spam, showing pages you didn’t create, or Google is warning people away from it, you have probably been hacked. This guide walks through what to do, in the order you should do it: confirm the hack, contain it, find how the attacker got in, clean the site, and stop it happening again.
Hacked right now and need it fixed?
Our rescue service cleans hacked Joomla! sites of any version, closes the hole the attacker used, and works with you to get your site off Google Safe Browsing and IP blacklists.
Signs your Joomla! site has been hacked
- Visitors (often only mobile or search visitors) are redirected to spam, gambling or pharmacy sites.
- A
site:yourdomain.co.uksearch in Google shows pages in foreign languages or products you don’t sell. - Browsers show a red “Deceptive site ahead” warning, or Search Console reports a security issue.
- Super User accounts you don’t recognise appear under Users.
- Your host has suspended the account for sending spam or using excessive resources.
- Unfamiliar PHP files appear in folders such as
/images,/tmpor/cache.
Step 1: Contain the damage
- Take a full backup of the hacked site (files and database) before changing anything. You’ll need it to work out what happened.
- Change every password: Joomla! administrator accounts, hosting control panel, FTP/SFTP, and the database user. Do it from a computer you trust.
- Restrict access while you work. Ask your host to block public traffic, or password-protect the site, so visitors aren’t infected and Google stops indexing spam.
Step 2: Find out how they got in
Cleaning a site without closing the hole means it will be re-hacked, often within days. The most common entry points are:
- An out-of-date Joomla! core. Check your version under System → System Information and compare it with the current release.
- A vulnerable or abandoned extension. Check every installed extension against the Joomla! Vulnerable Extensions List and the developer’s latest version.
- Stolen or weak passwords, especially administrator accounts without multi-factor authentication.
- Another compromised site on the same hosting account, which can infect every site that shares it.
Your server’s access logs, around the time the first modified files appeared, usually show which file or form was used.
Step 3: Clean the files
- Replace the Joomla! core with a fresh download of the same version from joomla.org, so you overwrite any modified core files.
- Reinstall extensions and templates from their official sources rather than trusting the copies on the server.
- Hunt for files that shouldn’t be there: PHP files in media, cache or tmp folders, recently modified files, and obfuscated code (long strings using
base64_decode,evalorgzinflate). - Check
configuration.phpand every.htaccessfile for injected code or redirect rules, and generate a new secret in Global Configuration.
Step 4: Clean the database
- Remove any administrator or Super User accounts you don’t recognise.
- Search articles, modules and menu items for injected
<script>tags, iframes and hidden spam links. - Check the template and system plugin settings, which attackers use to load code on every page.
Restoring from a backup instead? A clean backup from before the attack can be quicker, but only if you also fix the entry point from Step 2. Otherwise the same hole lets the attacker straight back in.
Step 5: Update and harden
- Update Joomla! to the latest supported version and every extension to its latest release. Remove extensions you don’t use.
- Turn on multi-factor authentication for every administrator (built into Joomla! 4.2 and later).
- Use a supported PHP version and sensible file permissions (typically 644 for files and 755 for folders).
- Set up regular off-site backups and monitoring, so the next problem is caught in hours, not weeks.
Step 6: Repair your reputation
- In Google Search Console, open Security issues, confirm the problems are fixed and request a review to remove the browser warning.
- Ask Google to remove spam URLs that were indexed, and check email and IP blacklists if your site was sending spam.
- If personal data may have been accessed, UK GDPR may require you to report the breach to the ICO within 72 hours of becoming aware of it.
Stop it happening again
Most Joomla! hacks come down to updates that weren’t applied. Our Joomla! maintenance and hosting covers core and extension updates, real-time monitoring, 300+ integrity checks and at least daily off-site backups, with support tickets answered within 4 hours.
Hacked Joomla! site FAQs
Common signs are redirects to spam sites, unfamiliar pages showing in Google, browser security warnings, unknown Super User accounts, unexpected PHP files in media or cache folders, and your host suspending the account.
Only if the backup is from before the attack and you also fix how the attacker got in. Restoring without closing the vulnerability usually leads to the site being hacked again.
Most often because the Joomla! core or an extension is out of date and has a known vulnerability. Weak administrator passwords without multi-factor authentication, and other infected sites on the same hosting account, are also common causes.
Clean the site fully, then open Security issues in Google Search Console, confirm the issues are fixed and request a review. Google usually processes reviews within a few days.
Yes. Our rescue service cleans hacked Joomla! sites of any version, fixes the security hole that let the attacker in, and can work with you to get the site removed from Google Safe Browsing and IP blacklists.
Don’t want to do this yourself?
Wintercorn have been repairing hacked Joomla! sites since 2006. Tell us what’s happening and we’ll get you back online.

