awsol

Well-Known Member
Feb 8, 2002
578
0
316
Boston MA
Thanks Dom just did this on my server =]. Good to do this cause anyone knowing you use cpanel/whm can see your customers and email them better offers etc etc. They can try stealing customers since domains are listed.

EDIT

300 posts I am the man :)
 

TRAIN YARD SOFTWARE

Well-Known Member
Dec 20, 2001
222
0
316
what do you put in the .htaccess file? I have only seen FP2002 files. is it the same content?
 

avara

Well-Known Member
Oct 28, 2001
89
0
306
Why not edit the httpd.conf file to only allow viewing of /BANDWIDTH from your IP address? I think that would be the easiest way.
 

TRAIN YARD SOFTWARE

Well-Known Member
Dec 20, 2001
222
0
316
[quote:8b738af307][i:8b738af307]Originally posted by avara[/i:8b738af307]

Why not edit the httpd.conf file to only allow viewing of /BANDWIDTH from your IP address? I think that would be the easiest way.[/quote:8b738af307]

Not for most people that have a different IP everyday. my IP's are leased at 6 months, maybe different per isp
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:0dc0b9fad1][i:0dc0b9fad1]Originally posted by TRAIN YARD SOFTWARE[/i:0dc0b9fad1]

what do you put in the .htaccess file? I have only seen FP2002 files. is it the same content?[/quote:0dc0b9fad1]

You have to create a password file and set up an .htaccess

After connecting to your server via ssh, enter these commands (change USERNAME to whatever you want)

/usr/local/apche/bin/htpasswd -c /usr/local/bandmin/.passwd USERNAME

create .htaccess with pico by typing

pico /usr/local/bandmin/htdocs/.htaccess

.htaccess should contains:

AuthType Basic
AuthName &Only Authorized Individuals&
AuthUserFile /usr/local/bandmin/.passwd
Require user USERNAME
 

BJMG

Active Member
Jul 24, 2002
27
0
151
HT* Script

I created [b:4e6e1d1241]this script[/b:4e6e1d1241] for my customers to use during our PRE-CPANEL days. Hope it helps.
 

SWR

Member
Jul 22, 2002
12
0
151
USA
[quote:191696d9c9][i:191696d9c9]Originally posted by itf[/i:191696d9c9]

[quote:191696d9c9][i:191696d9c9]Originally posted by TRAIN YARD SOFTWARE[/i:191696d9c9]

what do you put in the .htaccess file? I have only seen FP2002 files. is it the same content?[/quote:191696d9c9]

You have to create a password file and set up an .htaccess

After connecting to your server via ssh, enter these commands (change USERNAME to whatever you want)

/usr/local/apche/bin/htpasswd -c /usr/local/bandmin/.passwd USERNAME

create .htaccess with pico by typing

pico /usr/local/bandmin/htdocs/.htaccess

.htaccess should contains:

AuthType Basic
AuthName &Only Authorized Individuals&
AuthUserFile /usr/local/bandmin/.passwd
Require user USERNAME[/quote:191696d9c9]I tried this; but now I can't even access the page. Not that I ever did before and don't know why I would want to again. But, the question is; is it going to cause any problems?
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:db9d321823][i:db9d321823]Originally posted by SWR[/i:db9d321823]

[quote:db9d321823][i:db9d321823]Originally posted by itf[/i:db9d321823]

[quote:db9d321823][i:db9d321823]Originally posted by TRAIN YARD SOFTWARE[/i:db9d321823]

what do you put in the .htaccess file? I have only seen FP2002 files. is it the same content?[/quote:db9d321823]

You have to create a password file and set up an .htaccess

After connecting to your server via ssh, enter these commands (change USERNAME to whatever you want)

/usr/local/apche/bin/htpasswd -c /usr/local/bandmin/.passwd USERNAME

create .htaccess with pico by typing

pico /usr/local/bandmin/htdocs/.htaccess

.htaccess should contains:

AuthType Basic
AuthName &Only Authorized Individuals&
AuthUserFile /usr/local/bandmin/.passwd
Require user USERNAME[/quote:db9d321823]I tried this; but now I can't even access the page. Not that I ever did before and don't know why I would want to again. But, the question is; is it going to cause any problems?[/quote:db9d321823]
It has worked for all others, you can try as much as you want that will not cause any problem to your system
focus on the USERNAME and the locations,

If you would like I can do it for you too.
 

marius

Well-Known Member
PartnerNOC
Jun 10, 2002
157
0
316
Bucharest
bandwidth deny acces

In httpd.conf put this

&Directory /usr/local/bandmin/htdocs/&
Order deny,allow
Allow from xxx.xxx.xxx.0/24
Deny from all
&/Directory&

Where xxx.xxx.xxx.0/24 is the IP class from where you are connectig.
If you change your IP address at every 6 month, simply connect to the server and edit the IP.