Welcome! Log In Create A New Profile

Advanced

Re: GeoIP country blocking - whitelist specific IPs

November 13, 2012 06:21AM
Hello,

thanks for your reply! Your solution does indeed make sense and I've been using something similar before. Just thought there might be something that wouldn't require rewriting my current syntax, such as:

if ($geoip_country_code ~ (BR|CN|KR|RU) ) {
if ($remote_addr = (1.2.3.4|1.2.3.5|1.2.3.6) ) {
break;
}
return 123;
}
SubjectAuthorPosted

GeoIP country blocking - whitelist specific IPs

InfinitnetNovember 12, 2012 03:02PM

Re: GeoIP country blocking - whitelist specific IPs

Lasse LaursenNovember 13, 2012 06:04AM

Re: GeoIP country blocking - whitelist specific IPs

InfinitnetNovember 13, 2012 06:21AM

Re: GeoIP country blocking - whitelist specific IPs

InfinitnetNovember 13, 2012 06:23AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready