Support

Admin Tools

#22056 Back-end protection vs administrator password protection

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
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by user69434 on Tuesday, 10 February 2015 09:38 CST

user69434
Hello Support Team,

I would like to ask you for a clarification about .htaccess Maker Back-end protection.

In the Admin Tools user guide you mention the following about Back-end protection:
"It is generally recommended to turn it on to enhance the protection of your site, unless you have enabled the administrator password protection feature. In the latter case this option is redundant and we recommend turning it off."

You say ‘redundant’ but you don’t clarify which of the two is the best option to go for.
So, should I use “.htaccess Maker Back-end protection” or “administrator password protection”?

Also, is there a reason why I shouldn’t have both of them enabled?
I know you say ‘redundant’ but I was wondering if both of them is enabled does that mean that I will have a two-level protection?

Thank you very much in advance
Dimitris Pantelidis

nicholas
Akeeba Staff
Manager
You have confused THREE different features.

First, the .htaccess Maker. There is no overlap with any other feature. We recommend that you enable it.

Second, the administrator password protection. It is a good idea enabling it to prevent attackers from trying to access your administrator login page. It does use a .htaccess file but it is DIFFERENT that the one created by .htaccess Maker. Pros: it is very efficient, since it's running at the web server level. Cons: it blocks access to all files under administrator unless you know the login credentials. Some very badly written components (like Zoo) will have a problem with that. Moreover there is no log of who got blocked.

The third feature is the administrator secret URL parameter. This has overlap with the administrator password protection. The difference is that this feature only protects the administrator login page, whereas the administrator password protection prevents access to anything inside the administrator directory (including CSS, images and other media files) if you don't know the login credentials. Pros: it doesn't block very badly components. Moreover it logs who got blocked and can be used with the automatic IP blacklisting feature of Admin Tools. Cons: since it's running at the Joomla! level, it is slower than the administrator password protection.

The best idea is to use all three features. If you can't, the use at least the .htaccess Maker and the administrator secret URL parameter features.

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!

user69434
Hello Nicholas

Thank you very much for the quick reply.

I understand all the things you say but my question was a bit different. Maybe I didn’t explain it properly. Let me try again and explain it step by step.

I am in the Admin Tools options and I select ‘.htaccess Maker’.
I go to section ‘Server protection‘ and particularly in “Protection Toggles” where I can see the No/Yes option (dropdown menu) for “Back-end protection”.

In order to understand what “Back-end protection” is and in order to decide whether I should choose Yes or No, I go to the Manual to the appropriate section to read what is in the documentation.
So, in the manual it says: “Back-end protection: Disables direct access to most back-end resources, except those in the exceptions lists. It is generally recommended to turn it on to enhance the protection of your site, unless you have enabled the administrator password protection feature. In the latter case this option is redundant and we recommend turning it off.”

So from what I understand if I enable the ‘administrator password protection’ there is no need to have the ‘back-end protection’ enabled.
Ok, but my question is which of the two is the best feature to enable? Which one will provide me with more protection?
And why is redundant to have them both enabled?

Thank you very much for your help
Dimitris Pantelidis

nicholas
Akeeba Staff
Manager
Enabling the administrator password protection is the simplest way: nobody can access anything in yoru site's administrator directory (not even an image) if they don't know the username and password.

If you can't do that, the back-end protection in .htaccess Maker will offer protection against common techniques to deduce the exact Joomla! version and direct web access to individual .php files (which can be used to launch attacks against vulnerable files, usually from older versions of components written with poor choices regarding security).

So, more protection (without the possibility to have any exceptions) is provided by the administrator password protection. If you can't / don't want to enable it OR you want to add exceptions to specific files/directories then the .htaccess Maker's back-end protection offers more than adequate protection.

As for redundancy, if you enable the administrator password protection then nobody can access anything inside the administrator directory unless they have a username and password. They have to get past this before the .htaccess Maker's back-end protection kicks in. So, the back-end protection is redundant under normal operating conditions. If you are super paranoid you can enable them both. This way even if someone does guess the username and password for the admin pw protection they won't be able to access vulnerable files or perform exact Joomla! version scanning against your site's back-end.

TL;DR: If you can enable them both, please do. I do on our site. It's a bit paranoid, but I'd rather be paranoid than hacked :)

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!

user69434
Thank you very much for your help

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!