ban an entire ip range from acessing my server..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alex79
    Confirmed User
    • Jun 2002
    • 996

    #1

    ban an entire ip range from acessing my server..

    I want to bann all netseer.com crawlers IP's from spidering my website, from linux firewall (iptables)..
    There are over 500 different IP's from where they are access my server..
    few IP's are:

    67.202.22.253
    67.202.23.133
    67.202.24.156
    67.202.24.170

    how can i ban this entire IP range? and what is the range that should be banned? it is 67.202.0.0-67.202.255.255 or ..?
  • ServerGenius
    Confirmed User
    • Feb 2002
    • 9377

    #2
    iptables -A INPUT -s 67.202.22.0/24 -j DROP
    iptables -A INPUT -s 67.202.23.0/24 -j DROP
    iptables -A INPUT -s 67.202.23.0/24 -j DROP
    | http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |

    Comment

    • alex79
      Confirmed User
      • Jun 2002
      • 996

      #3
      Originally posted by ServerGenius
      iptables -A INPUT -s 67.202.22.0/24 -j DROP
      iptables -A INPUT -s 67.202.23.0/24 -j DROP
      iptables -A INPUT -s 67.202.23.0/24 -j DROP
      67.202.22.0/24 means 67.202.22.0-67.202.22.225 ?

      Comment

      • ServerGenius
        Confirmed User
        • Feb 2002
        • 9377

        #4
        Originally posted by alex79
        67.202.22.0/24 means 67.202.22.0-67.202.22.225 ?
        Yes a /24 is 255 ip addresses or a Class C range.
        /32 is 1 ip address it's a bitmask number
        4 octets (4 x 8 = 32)
        Last edited by ServerGenius; 11-19-2007, 09:14 AM.
        | http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |

        Comment

        Working...