How to block an IP in WHM?

newbies

Active Member
Jul 9, 2004
31
1
156
In cpanel, we can block an IP access a website, but in WHM, there seems no such option to block an IP from access the whole server. Am I missing something?
 

kistler

Well-Known Member
Jan 27, 2005
133
1
166
If you have root access to the server you best bet would be to install APF to block the IP’s from the server. As the cpanel ip block is on per account basses.
 

newbies

Active Member
Jul 9, 2004
31
1
156
Yes I have APF installed. If there is some web interface for doing that, that would be great.
 

kistler

Well-Known Member
Jan 27, 2005
133
1
166
There is no web interface that I know of but all you have to do is edit "deny_hosts.rules" and restart/flush APF and it will block the IP given.
 

katmai

Well-Known Member
Mar 13, 2006
564
4
168
Brno, Czech Republic
chirpy has done a great deal of work with csf. im using it, true will recommend.