silvernetuk

Well-Known Member
Sep 2, 2002
311
0
166
United Kingdom
Hi,

Is it possible to password protect bandmin or /bandwidth/ in the browser ? so only I can get access to it or root

How do I do this ?

Regards,
Garry
 

hormigo

Well-Known Member
Sep 9, 2002
108
0
166
pico /usr/local/bandmin/htdocs/.htaccess

Put the following in the file:

AuthUserFile /usr/local/bandmin/.htpasswd
AuthGroupFile /dev/null
AuthName "Bandwidth Login"
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>

Hit Ctrl+X then Y and then Enter

Then

htpasswd -c /usr/local/bandmin/.htpasswd username
(username is the username you want to create)
enter your password
enter your password again

If you dont have htpasswd installed on your server you can go to http://www.euronet.nl/~arnow/htpasswd/ to generate one. Then just use pico to edit /usr/local/bandmin/.htpasswd and paste the line of text that the site gave you into it.
 

Silverado

Well-Known Member
Mar 19, 2003
154
0
166
Backyard - Poolside
Awesome.. and Thanks for that tip.
I truly appreciate just happening to walk right into this tonight.

cPanel.net Support Ticket Number:
 

infinityws

Well-Known Member
Feb 20, 2003
110
0
166
you'll have to enter the full path to htpasswd because its not installed in any users $PATH

cPanel.net Support Ticket Number: