Just how do I arrangement authentication on a details folder using.htaccess?
I have a folder that I intend to host documents independently on my webserver.
Just how do I deal with making it password shielded using.htaccess?
Keep in mind: Absolutely nothing monolithic, I desire something that is simple/easy so arrangement so me and also a couple of coworkers can download and install a couple of documents.
You'll require to create a documents called
.htpasswd with the web content of
username:password (you need to secure that.
After that add this to the
htaccesss file :
AuthUserFile /usr/local/you/safedir/.htpasswd AuthGroupFile /dev/null AuthName EnterPassword AuthType Basic require user username
Follow this guide.
Additionally, below is a device for creating the encrypted passwords : http://tools.dynamicdrive.com/password (Thanks to the initial poster for the link)