Web Hosting Talk







View Full Version : host.deny ? how to?


ckizer
08-19-2001, 06:25 PM
I want to ban several IPs as well as a subnet, where is the hosts.deny file and what is the format that i need to ad things in?

thanks.


I'm running redhat 6.2 with cpanel and whm.

remarkable
08-19-2001, 07:37 PM
hosts.allow and hosts.deny are both in /etc/ on the server. You can do a man hosts.allow or man hosts.deny for detailed information.

This will only work will services managed by inetd or with ipchains. I suggest running ipchains if you want to block access to all services on the server.

Chicken
08-19-2001, 09:53 PM
I think another thread was started at nearly the same time about this as well. See: http://www.webhostingtalk.com/showthread.php?&threadid=18798