Site wide login
Autor: Gregory S.
Visited 1035,
Followers 1,
Udostępniony 0
Is there a way to create a site wide login? You can lock each page, one at a time except the home page. I want it locked as well.
With a site wide lock down, there would not be a need to lock each page. Only the need to get page the login page.
Posted on the
On most servers you can create one login per directory including subdirectories, so everything within this area is protected by server login.At plesk under password-protected directories in the domain area (websites and domains).
JJ.
Autor
Hi JJ. Thanks for your idea.
I could lock the web site directory on the site server. However, I do not know how to do this. I assume I would need console access and have a script that runs from the directory. I don't know how to code that. And I further assume who ever enters would all have to use the same password. Not the best solution, because if someone gained access to the well passed around password, I would have no idea. But at least it accomplishes site wide locked staus.
Hello Gregory
You can have a userlist with passwords.
This way you can different passwords for different users.
By accessing your domain a user will be prompted for a username and a password - and once given in the right credentials the user will have access to your sie as normal. It will have effect for a session.
So - if a user want acces to your site later, then he will have to log in again.
some info: https://stackoverflow.com/questions/5229656/password-protecting-a-directory-and-all-of-its-subfolders-using-htaccess
https://www.lcn.com/support/articles/how-to-password-protect-a-folder-on-your-website-with-htaccess/
And something about additional possibilities:
https://titanwolf.org/Network/Articles/Article?AID=603863fc-7cb6-4935-8f18-32fa04e1eff4#gsc.tab=0
https://perishablepress.com/htaccess-password-protection-tricks/
the .htaccess is a very powerful tool - be sure to have a copy of a functioning .htaccess file you can upload when something goes wrong for you.