Blocking Middle-East traffic

Discussion in 'Apache' started by lappy512, Apr 26, 2006.

  1. #1
    I operate a server that hosts a proxy, but then my revenue is being decreased by Iraq, Iran, and Saudi Arabia users that just use bandwidth, becuase ads don't pay as much for those users.

    So, I'd like to block those users, and I remember seeing a site that automatically generated a .htaccess file when you specified what country you'd like to block.

    Anyone have any pointers?
     
    lappy512, Apr 26, 2006 IP
  2. theblight

    theblight Peon

    Messages:
    246
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You could try searching the iptocountry db then implement a script that will query the database....
    google keyword= "Ip2country database webhosting"
     
    theblight, Apr 29, 2006 IP