I only have a web hosting solution which doesn't include a server config access, this is a mutualized solution.
I would like to try to allow users to access my website only if they have the expected login/password credentials, by using a .htaccess
file and a .htpasswd
file. However, without access to the Apache config folders, I am not sure that I can add this htpasswd
file to a location reachable from the htaccess
file.
Am I right about this or do I have a way to do it?
.htaccess
file at the root of my website (with myindex.html
file), but then I tried adding my.htpasswd
file at the same location, and accessing it from my htaccess file in various ways, which always fail. I have triedAuthUserFile .htpasswd
,AuthUserFile ./.htpasswd
,AuthUserFile http://my_website.com/.htpasswd
... nothing seems to work.