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!

deny ip range

Discussion in 'General Discussion' started by dabber, Dec 21, 2005.

  1. dabber

    dabber Registered

    Joined:
    Aug 27, 2002
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    Hi. Can someone tell if I can deny a range of IP's from a site without entering one at a time? Example: deny IP's 85.0.0.0 through 85.255.255.255
     
  2. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    India

    Hello,

    You can block the range with the help of iptables

    Eg : iptables -A INPUT -s 85.0.0.0/8 -j DROP
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dodgeneo

    dodgeneo Registered

    Joined:
    Dec 26, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    HI,

    I had this very question :)

    But I don't understand your answer as I'm very, very new to using the Cpanel - and I am a user (not a site admin) looking for answers as my host is clueless... :|

    Is there a way to use those iptables as a user, and not an administrator?

    If so what, exactly, would I enter into the "Add an IP Deny:" field?

    For example I would like to deny access from 217.174.*.*

    Thanks for your help!

    Dodge
     
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,701
    Likes Received:
    72
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    you need root access and run from comand line SSH

    if your host is cluless time to find a new host it a basic linux comand when iptables are installed
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    India
    Hello,

    If you want to use iptables, you should have the root access on the server. But if you use ip deny manager , it will block the ip using .htaccess file . You can add the block of ip using ip.

    Eg : 217.174.

    Then add, I hope it will help you to add the block of 217.174.X.X ips ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. dodgeneo

    dodgeneo Registered

    Joined:
    Dec 26, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    Thank you! :)

    Dodge
     
  7. VirtuaLira

    VirtuaLira Well-Known Member

    Joined:
    Feb 1, 2004
    Messages:
    148
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Chile
    I have the same issue. but... what means the /8 ??

    ex:

    85.0.0.0/8 (what means the 8) ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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