banning multiple ip-c class -htaccess

Discussion in 'Site & Server Administration' started by kusadasi-guy, Apr 1, 2005.

  1. #1
    How can i ban multiple ip-c classes? is there a short way instead of putting lots of lines like that

    i would like to ban this ip-c classes;
    x09.y5.128.0 - x09.y5.255.255
     
    kusadasi-guy, Apr 1, 2005 IP
  2. ziandra

    ziandra Well-Known Member

    Messages:
    142
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    138
    #2
    According to the apache manual, addresses can be specified as:

    So, in your case, it would be

    deny from x09.y5.128.0/255.255.128.0

    which would ban x09.y5.128.0 - x09.y5.255.255

    or, using the other format

    deny from x09.y5.128.0/17

    both having the same affect.
     
    ziandra, Apr 1, 2005 IP