eter4

Well-Known Member
Feb 16, 2002
56
0
306
is there a way to block certain IP addresses from accessing the server???
 

Craig

Well-Known Member
Aug 10, 2001
170
0
316
Hi,

You could use ipchains..

Its been a while but i belive the syntax to use is:

ipchains -I input 1 -s IP-here -j DENY

If you just want to block them from using http, use .htaccess.

Cheers,

Craig
 

chakky

Well-Known Member
Sep 22, 2002
58
1
156
Hi

Add this entry in your .htaccess and it should work

&Limit GET POST&
order deny,allow
deny from IP
allow from all
&/Limit&

BTW is there any use adding the ip in /etc/hosts.deny
Theoretically it is supposed to block any access to any ports on the server if it is done so right?
I am not sure if it is appropriate enough to be doing so.:) but if it works its easier to do than learn ipchains