Most hacked Joomla sites weren't attacked cleverly. They were running old software or weak passwords. These steps apply to Joomla 5 and Joomla 6.
Keep everything up to date
- Joomla itself. Go to System, then Joomla in the Update panel. According to Joomla's roadmap, Joomla 5.4 gets security fixes until October 2027, and Joomla 6 gets them until October 2029. Dates can change, so check there.
- Extensions. Most hacks start here. Check System, then Extensions in the Update panel, and uninstall whatever you don't use.
- Your template. It's code too. Install new releases while your plan is active, and read each template's changelog to see what changed. See the changelogs.
- PHP. Use a version that still gets security fixes.
Protect your logins
- Use Multi-factor Authentication, which is built into Joomla. Each user sets it up in their own profile, and a Super User can require it for others.
- Use long, unique passwords, and don't call your account "admin".
- Give people only the access they need. Few people need Super User. Our guide to Joomla's access control explains how.
Stop spam and bots
Add a CAPTCHA to public forms. Joomla includes a reCAPTCHA plugin, and form extensions often offer others. Set your keys in the plugin at System, then Plugins, then choose the default at System, then Global Configuration. If you don't need public registration, turn it off at Users, then Manage, then Options.
Keep backups you can restore
Take backups on a schedule, keep them off the server and try a restore now and then. See our backup guide.
Tighten the server
- Use HTTPS everywhere. You can force it on the Server tab of Global Configuration.
- Set folders to 755 and files to 644, and configuration.php to 444 if your host allows it.
- Remove old test sites and backup files from your web space. They're easy targets.
Watch for trouble
Joomla's Action Logs (Users, then User Actions Log) show who did what. Read the Joomla Security Centre for announcements. If you think your site has been hacked, restore a clean backup, then update everything and change all the passwords.