.htaccess and .htpasswd help

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
User avatar
ClanPikachu
A regular
A regular
Posts: 59
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Nov 07, 2004 12:54 pm
Location: Portland Oregon USA
Contact:

.htaccess and .htpasswd help

Post by ClanPikachu »

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
Image

-[LAPD]-Pikachu
Los Angeles California USA Game Server Administrator
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

the .htaccess file goes IN the directory that you are trying to protect
for example:
  • AuthUserFile /usr/www/identifier/path/to/.htpasswd
    AuthGroupFile /dev/null
    AuthName EnterPassword
    AuthType Basic

    require valid-user
the orange is your gameserver's identifier
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...
where the red is the username and the blue is the password.
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.
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Post by Edge100x »

Post Reply