The Joomla administrator area (/administrator) is the most common target of attacks – bots try to guess passwords. Joomla 4, 5 and 6 have built-in two-factor authentication, and the latest versions also have automatic Joomla updates, so additional security extensions are usually not needed.

1Turn on two-factor authentication

In the Joomla administrator area, open “User Menu” → “Edit Account” in the top right corner and then the “Multi-factor Authentication” tab. Under “Verification code”, click “Add a new Verification code”, scan the QR code with an authenticator app and enter the code.

You can also choose “Passkey” (fingerprint, Windows Hello, etc.) or “Code by Email”. Write down the backup codes and keep them in a safe place. Each administrator must turn on 2FA in their own account.

Turn on two-factor authentication

2Check for updates

In the “Notifications” section of the “Home Dashboard”, you can see whether automatic updates are on (“Automated Updates are enabled.”) and whether Joomla and extensions are up to date (“Joomla is up to date.”, “Extensions are up to date.”).

Check for updates

3Update Joomla

In the “System” menu, open the Joomla update page (“Joomla Update”) and click “Check for Updates”. If a new version is available, make a backup and start the update.

Update Joomla

Extra protection for the /administrator folder

  • The simplest way: protect the administrator folder with a password using the “Directory Privacy” tool in cPanel (see the article “How to protect a folder with a password (Directory Privacy)”). The browser will then ask for one more password before the Joomla login page.
  • If you have a fixed IP address, you can allow access only from it. Add this line to the .htaccess file in the administrator folder (replace the IP with your own):

Require ip 203.0.113.10

  • This line restricts only the administrator area – the website works as usual for visitors. If there is no .htaccess file in the administrator folder, create it (see the article “File Manager – uploading, editing and deleting files”). If your IP address changes (for example, when you work from another place or over mobile internet), you will also see error 403 (Forbidden) – then edit or delete this line.

Other recommendations

  • Do not use the username “admin”; use a long, unique password.
  • Update extensions and templates regularly too; uninstall the ones you do not need.
  • Make a backup before major updates (see the article “Managing Softaculous installations: backup, staging, updating and removal”).
  • Installing Joomla: “How to install Joomla with Softaculous”. General security principles: “9.1. Security basics – how to protect your website and email”.

If you run into any difficulties, just write to us and we will help. support@area.lv

Was this answer helpful? 45 Users Found This Useful (47 Votes)