Admin Tools

#39837 Password protect Administrator

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
PHP version
Admin Tools version

Latest post by nicholas on Friday, 17 November 2023 01:42 CST


I am managing three sites that are hosted by the same company (Devon Webs) using the same package.  All are Joomla 4

The first one I created from scratch on their servers using J4 and used the feature that provides the extra security feature when logging in to the Administrator. I thought I used Password Protect Administrator to do this, but when I check the control panel settings I can see nothing that suggests it is active. However, I get the sign in window and it works OK.

The two other sites were migrated from other hosting companies and converted from J3 to J4.  Both had used the same admin password feature.  On moving to the new host the feature no longer works (although I can access the site).  The .htaccess files have migrated and appear to be in place but cannot see any obvious code to drive this.

Assuming the problem with the .htacces file, should I delete and start again, or is there a better way?

Akeeba Staff

Neither Admin Tools nor your host do anything magic. We just use a feature built into Apache. As always, knowing how something works helps approach is objectively rather than superstitiously. You can find out how password protection works here:

So, here's what to do.

Delete administrator/.htaccess and administrator/.htpasswd

Go to Admin Tools and apply the administrator password protection to regenerate these files.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!