|
|
|
|
|
|
|
![]() |
#1 |
"Without evil there can be no good, so it must be good to be evil sometimes" ~ Satan
Join Date: Aug 2004
Location: Motor City, baby, where carjacking was invented! Now GIMME THOSE SHOES!
Posts: 2,385
|
.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 |
![]() |
![]() |
![]() |
#2 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
.htaccess (adjusting the path to fit your area)
Code:
AuthUserFile /var/www/domain.com/admin/.htpasswd AuthName "Members Only" AuthType Basic require valid-user 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:
<?php print crypt('test','ab'); ?> username:outputfromabove
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#3 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Here is a page that will generate the encrypted passwords without using a shell
http://www.e2.u-net.com/htaccess/make.htm |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|