![]() |
.htaccess Password Protection
I've got a couple directories for work in progress that I need an easy way to password protect. It would just be for a single username/password. I'm thinking .htaccess is probably the easiest way to go about it, but I'm not sure how to implement this. Any help out there?
TIA |
.htaccess (adjusting the path to fit your area)
Code:
AuthUserFile /var/www/domain.com/admin/.htpasswd htpasswd -c /var/www/domain.com/admin/.htpasswd username it will then prompt you for a password & verification If you don't have shell, you can run this (test being of course the password you want to use): Code:
print crypt('test','ab'); username:outputfromabove |
Here is a page that will generate the encrypted passwords without using a shell
http://www.e2.u-net.com/htaccess/make.htm |
All times are GMT -4. The time now is 07:01 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc