Welcome! Log In Create A New Profile

Advanced

geoip filtering not working

July 12, 2013 10:08PM
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 its a config problem? Wondering if you guys can help.

i have the following lines in config:

geoip_country /usr/share/GeoIP/GeoIP.dat;

server {
...
if ($geoip_country_code = CN) {
return 444;
}
....
}

Please help!
SubjectAuthorPosted

geoip filtering not working

bignginxfanJuly 12, 2013 10:08PM

Re: geoip filtering not working

Matt520August 16, 2013 06:27AM

Re: geoip filtering not working

aweberAugust 16, 2013 09:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 95
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 165 on April 21, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready