Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    Hi

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

    Cheers
    Chriz
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. krava

    krava Well-Known Member

    Joined:
    Sep 23, 2003
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. rikgarner

    rikgarner Well-Known Member

    Joined:
    Mar 31, 2006
    Messages:
    75
    Likes Received:
    1
    Trophy Points:
    158
    Location:
    /dev/null
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Phenomenon

    Phenomenon Member

    Joined:
    Aug 21, 2006
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    151
    ... 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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice