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.

How to block many IPs quickly?

Discussion in 'Apache' started by postcd, Oct 8, 2016.

  1. #1
    Hello, iptables is too slow to block lets say million IPs (except one is using multi level tree), im on the old OpenVZ so the ipset is not the way now

    when looking for way to block many IPs on the webserver i found:
    http://stackoverflow.com/questions/3165804/dynamic-ip-htaccess-blocklist/3178675#3178675
    Also someone mentioned this whitelist ruleset:
    Can anyone please convert that whitelist rules into blacklist rules so it works as blacklist instead?
    SEMrush
     
    postcd, Oct 8, 2016 IP
    SEMrush
  2. Einheijar

    Einheijar Well-Known Member

    Messages:
    536
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    115
    #2
    Ever consider just null routing the IPs?

    
    route add -net 192.67.16.0/24 gw 127.0.0.1 lo
    Code (markup):
     
    Einheijar, Oct 8, 2016 IP
  3. webhostpython

    webhostpython Member

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #3
    You can also block by country code if you install a firewall such as CSF it makes that easier to do as well. Are you trying to basically block all traffic? If that is the case, then you can also just white list your own IP and deny all other IPs
     
    webhostpython, Oct 20, 2016 IP
  4. Zoti Media Group

    Zoti Media Group Notable Member

    Messages:
    1,599
    Likes Received:
    113
    Best Answers:
    2
    Trophy Points:
    265
    Digital Goods:
    2
    #4
    CSF have great feature for large lists. Just add your list (txt link) on "csf.blocklist" and it works like a charm.
     
    Zoti Media Group, Oct 20, 2016 IP