Hello,
can HttpGeoipModule be used out of the box with nginx on plesk?
As i see in nginx -V it can't be used.
How can i exclude countrys?
EDIT: I think i found a way to do that, i will give a try this week:
Using CloudFlare for country blocking - Nginx Library
Question: Can this be put in additional nginx directive in GUI, so that i can config different countrys for different websites:
Thanks
can HttpGeoipModule be used out of the box with nginx on plesk?
As i see in nginx -V it can't be used.
How can i exclude countrys?
EDIT: I think i found a way to do that, i will give a try this week:
Using CloudFlare for country blocking - Nginx Library
Question: Can this be put in additional nginx directive in GUI, so that i can config different countrys for different websites:
Code:
map $http_cf_ipcountry $allow {
default yes;
CN no;
MX no;
NO no;
}
if ($allow = no) {
return 403;
}
Thanks
Last edited: