Hi All
I would really appreciate some help here. I want to restrict all countries except the US and Jamaica (JM).
load_module "/usr/local/libexec/nginx/ngx_http_geoip_module.so";
These are my entries in nginx.conf
Under http
map $geoip_country_code $country_access {
"US" 0;
"JM" 0;
default 1;
}
Under HTTP Server
if ($country_access = '1') {
return 403;
}
Under HTTPS Server
server {
if ($country_access = '1') {
return 403;
}