title: Best solution to block countries?
body: <p>I have a web application on which I want to block countries like China, Romania, etc.  I also want to block a large number of VPNs like hotspot shield, hidemyass, cyberghost, and so on.  I have a large list of around ~5500 CIDR format IP addresses which totals around 340 million Ip addresses.  I realize this is a huge number and is probably not efficient.  My site gets around 20 million page views per month.</p>
  
  <p>Anyway, what I'm doing now:
  I have nginx and am simply including a large text file which is around ~80kb into the server directive.  It's actually working and haven't really noticed a performance hit.  I still want to know if there is a more efficient way to do this.</p>
  
  <p>What I don't want: Accept visits by only certain countries.  Hundreds of countries visit my website so this is not viable.</p>
  
  <p>Thanks!</p>