Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    1

    Default deny ip range

    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. #2
    Member bijo's Avatar
    Join Date
    Aug 2004
    Location
    India
    Posts
    475

    Default

    Quote Originally Posted by dabber
    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

    Hello,

    You can block the range with the help of iptables

    Eg : iptables -A INPUT -s 85.0.0.0/8 -j DROP
    Bijo
    Yahoo: "bijo505"
    Msn: "bijo_baby@hotmail.com"
    AIM: "bijobaby"

    http://slashome.com

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    2

    Default

    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. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,924

    Default

    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
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  5. #5
    Member bijo's Avatar
    Join Date
    Aug 2004
    Location
    India
    Posts
    475

    Default

    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
    Bijo
    Yahoo: "bijo505"
    Msn: "bijo_baby@hotmail.com"
    AIM: "bijobaby"

    http://slashome.com

  6. #6
    Registered User
    Join Date
    Dec 2005
    Posts
    2

    Default

    Thank you!

    Dodge

  7. #7
    Member
    Join Date
    Feb 2004
    Location
    Chile
    Posts
    146

    Default

    I have the same issue. but... what means the /8 ??

    ex:

    85.0.0.0/8 (what means the 8) ?
    Evolution Technology Web Hosting Support.
    MSN: webmaster@scqcc.cl

Similar Threads & Tags
Similar threads

  1. Replies: 5
    Last Post: 02-14-2011, 04:12 AM
  2. CSf Firewall: Edit csf.deny, the IP address deny file (Currently:1000 permanent IP b
    By crazyaboutlinux in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-09-2010, 06:23 AM
  3. Blocking a range of IP's in the IP deny manager
    By AbeFroman in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 02-19-2005, 01:23 PM
  4. Deny access to smtp to specific IP range
    By NetX in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-26-2003, 08:06 PM
  5. java.lang.NoClassDefFoundError: org/w3c/dom/range/Range
    By SauronZ in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-06-2003, 12:35 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube