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.

Banning an IP

Discussion in 'General Discussion' started by Chriz1977, Oct 16, 2006.

  1. Chriz1977

    Chriz1977 Well-Known Member

    Joined:
    Sep 18, 2006
    Messages:
    191
    Likes Received:
    0
    Trophy Points:
    16
    Hi

    I need to ban an IP from my server. Is there an option in WHM to do that?

    Cheers
    Chriz
     
  2. krava

    krava Well-Known Member

    Joined:
    Sep 23, 2003
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello,

    As I know WHM doesn't have such option. However, if your box works under Linux, then you can ban the IP by:

    #route add XXX.XXX.XXX.XXX reject

    to unlock the IP, please use:

    #route del XXX.XXX.XXX.XXX reject
     
  3. rikgarner

    rikgarner Well-Known Member

    Joined:
    Mar 31, 2006
    Messages:
    75
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    /dev/null
  4. Phenomenon

    Phenomenon Member

    Joined:
    Aug 21, 2006
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    ... or, APF from http://www.rfxnetworks.com/apf.php, pretty straight-forward installation, and after you do it, just issue a /etc/apf/apf -d IP command, and you will ban that IP address..
     

Share This Page