.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