PDA

View Full Version : How do I?


G0F0RBR0KE
07-05-2007, 04:45 AM
How can I set up one of these??

http://img368.imageshack.us/img368/4654/sercureuv6.jpg

Shazz
07-05-2007, 04:51 AM
.htaccess

WEBDosser
07-05-2007, 04:53 AM
here is a link to do it for you..

http://www.webmaster-toolkit.com/htaccess-generator.shtml

G0F0RBR0KE
07-05-2007, 04:56 AM
Question: That link you provided, do i have to share this my administator?

Because I'm planning to create only for administrator to use that feature.

The password is not working >_>

snakes1100
07-05-2007, 05:51 AM
the username/(masked-password) goes in the .htpasswd file, the info for the .htaccess file is different.

Ie, htpasswd file contents: path to file = /usr/local/.htpasswd
webmaster:V9N01L01/xROE <-- Generate your own passwd

Ie, .htaccess file content: path to file = /home/username/public_html/forums/admincp/.htaccess

AuthUserFile /usr/local/.htpasswd
AuthName "Enter your login info"
AuthType Basic
require valid-user

Shazz
07-05-2007, 05:52 AM
Anyone can use it if they know the login

G0F0RBR0KE
07-05-2007, 05:55 AM
I got it, I got my host to generate one for me ;)

The link provided didn't help.

snakes1100
07-05-2007, 06:03 AM
If you have shell access, here is the command to generate and set the passwd by typing it yourself at the prompt, like adding a normal user from a shell.

If your vhosting, set the path to your vhost username dir, ie /home/username/.htpasswd

htpasswd -c /path/to/dir/for/.htpasswd desiredusernamehere