I have this working pretty well (ok, I think _very_well_ ) with GeoIP.
I used a MAP in the main nginx.conf like this:
map $geoip_country_code $allowed_country {
default0;
US 1;
GB 1;
CA 1;
EU 1;
}
Then, in my de
Hi, I was looking for the zip code from a given IP address few months back
and now I've got the solution from IP2Location. You can try IP2Location
module see if it helps in your issues and good luck.
(http://ip2location.com/developers/nginx)
Posted at Nginx Forum:
http://forum.nginx.org/read.php?
Hello,
I'm trying to figure out why Nginx's geoip modules doesn't seem to filter
out certain ip's from a banned country. I manually tested the GeoIP.dat
using 'geoiplookup' against a few ips that successfully connected but were
in a banned country. GeoIP.dat was fine, it wasn't the problem. Maybe