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.

Best way to ban countries in htaccess?

Discussion in 'Apache' started by gatordun, Jul 29, 2005.

  1. #1
    Best way to ban countries in htaccess?

    <Limit GET POST>
    order allow,deny
    allow from all
    deny from ip address
    deny from .id
    deny from .interpacket.net
    deny from .lt
    deny from .mk
    deny from .my
    deny from .ro
    deny from .yu
    deny from .sg
    deny from .kr
    deny from .za
    deny from .in
    deny from .si
    deny from .br
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
     
    gatordun, Jul 29, 2005 IP
  2. Crazy_Rob

    Crazy_Rob I seen't it!

    Messages:
    13,157
    Likes Received:
    1,366
    Best Answers:
    0
    Trophy Points:
    360
    #2
    I only block Nigeria.

    You can check out blackholes.us for a bunch of lists by country.
     
    Crazy_Rob, Jul 29, 2005 IP
  3. gatordun

    gatordun Guest

    Messages:
    114
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Odd thought they had to be in batches.
    such as: 213.244.208.0/20
    this is from country cs
    Cool thanks i will check out the black hole!
    Blackholes.us is timing out - guess they are busy.
    Zaire is also a problem and Singapore and few other countries.
     
    gatordun, Jul 29, 2005 IP
  4. gatordun

    gatordun Guest

    Messages:
    114
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    gatordun, Jul 29, 2005 IP
  5. classifieds

    classifieds Sopchoppy Flash

    Messages:
    825
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    150
    #5
    There is no "best" way stop of these guys. I subscribe to an IP mapping service http://www.ip2location.com/ to stay up on country and ISP names (i.e., never let a satellite ISP user access your site).

    Add the countries and ISPs you want to ban to your firewall - I use apf which keeps the overhead out of apache.

    You have to combine physical and logical blocking techniques to reduce fraud, bandwidht suckers and email harvesters but at the end of the day there is nothing that is fool proof.

    -jay
     
    classifieds, Aug 3, 2005 IP