1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ban an entire ip range from acessing my server..

Discussion in 'Security' started by jalex, Nov 19, 2007.

  1. #1
    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 ..?
     
    jalex, Nov 19, 2007 IP
  2. woods

    woods Peon

    Messages:
    228
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You'll have to block it using CIDR notation as far as I know, if I'm not completely wasted it should be 67.202.0.0/16 to block the entire 67.202.xxx.xxx range

    iptables -I INPUT -s 67.202.0.0/16 -j DROP

    will drop all the packets that come to your machine from 67.202.0.0-67.202.255.255

    But keep in mind this will block 65k ips so I'd rather try seeing if I could block a bit closer.. and see if they only come from like 67.202.20.xxx-67.202.25.xxx
     
    woods, Nov 20, 2007 IP
  3. hostingonweb

    hostingonweb Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you have a firewall installed it would be more easier to block multiple IPs. You can install APF for this, it works excellent.
     
    hostingonweb, Nov 21, 2007 IP
  4. SSANZ

    SSANZ Peon

    Messages:
    861
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Im sure you can contact them and get them to blacklist your server, its not like they abuse you.
     
    SSANZ, Nov 22, 2007 IP
  5. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I had a look at the interactive map of the internet and it looks like the range you want to block belongs to Amazon.

    The range they own that includes all of the IP addresses you mentioned is denoted by 67.202.0.0/18.

    I have noticed that well-behaved bots stop requesting pages if you start sending them 403 HTTP responses. This might be useful if you want to block based on User-Agent rather than IP address.
     
    Ladadadada, Nov 23, 2007 IP