PDA

View Full Version : Banning A IP From Accessing Anysite On My Server


Devil_Dude_Lod
2003-09-07, 20:13 PM
is there a way to ban a ip from accessing anysite on my server

Redhat 7.3
Cpanel/WHM

QT
2003-09-07, 20:17 PM
Originally posted by Devil_Dude_Lod
is there a way to ban a ip from accessing anysite on my server

Redhat 7.3
Cpanel/WHM


You can use iptables to firewall their ip address. For example to just ban web traffic from an ip address:

iptables -I INPUT -p tcp -d IPADDRESS --dport 80 -j REJECT

Devil_Dude_Lod
2003-09-07, 22:12 PM
ok thanks

stpeteluis
2003-09-09, 10:32 AM
How about in Windows 2000 Server and Ensim 3.5?