Web Hosting Talk







View Full Version : Banning IP/Domain Using CPanel


billybatson
03-11-2002, 01:31 AM
Does anyone know how I would go about banning a user from my server (using CPanel) based on their domain or IP?

ebo
03-11-2002, 04:22 PM
I don't believe you can. Just login via SSH and put them in your hosts.deny

The Prohacker
03-11-2002, 04:38 PM
I wouldn't use host.deny, I'd go for ipchains, but its really all easy:

ipchains -I input -s theirdoamin.com -j DENY
OR
ipchains -I input -s 1.2.3.4 -j DENY

dhlsg
03-19-2002, 08:55 PM
Is it possible to only allow root access from a certain block of IP's using IP chains?

How would you do that?

Steve