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!
Subject Author Posted

geoip filtering not working

bignginxfan July 12, 2013 10:08PM

Re: geoip filtering not working

Matt520 August 16, 2013 06:27AM

Re: geoip filtering not working

aweber August 16, 2013 09:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready