Sampei

Member
May 27, 2002
14
0
301
How can I block an Ip from access to my server without a firewall hardware ? Have I to install PMFirewall on my box ? Is it possible ? is there a tutorial on how to install it on a cpanel box ?

Thank you
 

itf

Well-Known Member
May 9, 2002
624
0
316
[quote:1b8b023afd][i:1b8b023afd]Originally posted by Sampei[/i:1b8b023afd]

How can I block an Ip from access to my server without a firewall hardware ? Have I to install PMFirewall on my box ? Is it possible ? is there a tutorial on how to install it on a cpanel box ?

Thank you[/quote:1b8b023afd]
In a root SSH session:

pico /etc/hosts.deny

add this line: (replace 10.20.30.40 with your desire IP address)

ALL : 10.20.30.40