The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to block an IP in WHM?

Discussion in 'General Discussion' started by newbies, Oct 22, 2006.

  1. newbies

    newbies Active Member

    Joined:
    Jul 9, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. kistler

    kistler Well-Known Member

    Joined:
    Jan 27, 2005
    Messages:
    136
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  3. newbies

    newbies Active Member

    Joined:
    Jul 9, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Yes I have APF installed. If there is some web interface for doing that, that would be great.
     
  4. kistler

    kistler Well-Known Member

    Joined:
    Jan 27, 2005
    Messages:
    136
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  5. kistler

    kistler Well-Known Member

    Joined:
    Jan 27, 2005
    Messages:
    136
    Likes Received:
    0
    Trophy Points:
    16
    I'll have to give it a try

    ::Edit::
    thats strange it says you posted after me, haha
     
    #5 kistler, Oct 22, 2006
    Last edited: Oct 22, 2006
  6. NightStorm

    NightStorm Well-Known Member

    Joined:
    Jul 28, 2003
    Messages:
    286
    Likes Received:
    4
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Drop APF, and use CSF instead (http://www.configserver.com/cp/csf.html). It's written by Chirpy (the mod here) and comes complete with a WHM control panel, as well as many more features not found in APF or BFD.
     
  7. newbies

    newbies Active Member

    Joined:
    Jul 9, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Sounds great!

    I will give it a try
     
  8. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    chirpy has done a great deal of work with csf. im using it, true will recommend.
     
Loading...

Share This Page