View Single Post
Old 2005-06-12, 02:57 PM   #2
cd34
a.k.a. Sparky
 
cd34's Avatar
 
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
If you have shell access:

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');
?>
And take the output from that and upload a file called .htpasswd that contains:

username:outputfromabove
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote