How to allow some IP's in nginx?

Hello, i use nginx with directly $map to take countries for users. Do you have an idea how to allow separate IP addresses if whole network is already blocked? This is our rules.

map $http_cf_ipcountry $blogging {
default yes;
PK no;

and then;

location /blogging {
if ($blogging = no) {
return 403;

How to still block countries which are defined in nginx, but allow mulltiple IP’s?

This seems more like a stackoverflow question then a Cloudflare question.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.