Support

Admin Tools

#12692 Password protect front end of site?

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 nicholas on Monday, 18 June 2012 08:16 CDT

Evopro
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.4
PHP version: 5.3
MySQL version: (unknown)
Host: Rochen
Admin Tools version: Latest

Description of my issue:

Hi Nicholas

Our project requires the whole site to be password protected. I want to do this using htaccess but I can't figure our how to set it up using the htaccess maker in Admin Tools.

Could you please give me a hint or make a suggestion for a better solution?

OK, I understand I will have to add some information here:

We want all visitors to have to use a main login to get access to the site at all (or the functions inside the site like the online store there. The problem is that if I password protect the whole directory (which works fine), I also password protect my tunnel file for Navicat in the www directory which we have to use to get easy access to the database. So we need to find another solution which gives us access to the tunnel file in the main directory but still forces every visitor to log in to the site before they can start using it.

I hope that helps in understanding my needs and if it is possible to set that up with the htaccess maker.

Best Regards
Johan Niklasson

nicholas
Akeeba Staff
Manager
Hi Johan,

First apply the password protection in the back-end of your site. Then copy the .htaccess contents into the custom .htaccess directives section of .htaccess Maker. You may also have to copy the .htaccess file from the site's administrator directory to the front-end.

That said, maybe it would be easier to simply use Joomla!'s Off-Line mode? It depends on why you want to password protect the entire site.

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!

Evopro
Dear Nicholas

I just added some more information in the original post - I am copying it here:

"We want all visitors to have to use a main login to get access to the site at all (or the functions inside the site like the online store there. The problem is that if I password protect the whole directory (which works fine), I also password protect my tunnel file for Navicat in the www directory which we have to use to get easy access to the database. So we need to find another solution which gives us access to the tunnel file in the main directory but still forces every visitor to log in to the site before they can start using it."

Best Regards
Johan Niklasson

nicholas
Akeeba Staff
Manager
Hi Johan,

As far as I know this is not possible with a .htaccess file. You can either password protect all contents of a directory or nothing at all. I would suggest a different approach. Have all of your site accessible only to the Registered viewing level. Your Home link should be a user login page, accessible to Public. This way your users would have to log in before they are able to do anything on the site.

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!

Evopro
Dear Nicholas

Thanks for the suggestions.

I have solved it this way: I keep the directory password protection for our www directory and instead of using the HTML tunnel for Navicat we have set up a SSH connection instead. More secure and it keeps the wanted workflow intact.

Best Regards
Johan Niklasson

nicholas
Akeeba Staff
Manager
Yup, SSH is always better!

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!