Hi I am trying to protect my myadmin directory from prying eyes. I have set up the .htpasswd file and stored it on the root directory of my webspace ftp site located at ftp.fallenangels.nuclearfallout.net my question is what should my .htaccess file look like? I am getting stuck on the exact verbage i need to have in the file. I have an example like below:
AuthUserFile /usr/local/you/safedir/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic
require user pikachu
The line in red is the line I am not sure of. a little help here would be very nice
.htaccess and .htpasswd help
- ClanPikachu
- A regular
- Posts: 59
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Sun Nov 07, 2004 12:54 pm
- Location: Portland Oregon USA
- Contact:
the .htaccess file goes IN the directory that you are trying to protect
for example:
the green is the actual path to the .htpasswd file.
now, the .htpasswd file should have a list of users and their passwords, like this:
note that the password is not the real password, its a password that has been encrypted.
you can use a website like this one: http://rentals.nuclearfallout.net/passcreator.pl
to encrypt your password.
for example:
- AuthUserFile /usr/www/identifier/path/to/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic
require valid-user
the green is the actual path to the .htpasswd file.
now, the .htpasswd file should have a list of users and their passwords, like this:
- booya:l8ejd674jrxl3w
user2:009sd9s9d8s98
etc...
note that the password is not the real password, its a password that has been encrypted.
you can use a website like this one: http://rentals.nuclearfallout.net/passcreator.pl
to encrypt your password.
Last edited by bOoya on Fri Mar 25, 2005 12:18 am, edited 1 time in total.