geoblock icon indicating copy to clipboard operation
geoblock copied to clipboard

When using addCountryHeader it doesn't add it for allowedIPAddresses

Open lluisd opened this issue 10 months ago • 3 comments

This is more a feature request, I like the addCountryHeader boolean configuration because I can receive a request_X-Ipcountry header with the country like cloudflare does with request_CF_Ipcountry.

The problem it's that I have a big range of allowedIPAddresses and when they match they are allowed but the request_X-Ipcountry is not present. That have sense but can we add some boolean to force to get it also for allowed ips?

lluisd avatar Mar 05 '25 16:03 lluisd

Hello @lluisd

I will check it out as soon as I get some time.

PascalMinder avatar Mar 26 '25 03:03 PascalMinder

So you have the problem when the IP address is explicitly allowed and not if the country for the IP address is allowed right?

PascalMinder avatar Apr 13 '25 13:04 PascalMinder

So you have the problem when the IP address is explicitly allowed and not if the country for the IP address is allowed right?

yes, for explicity allowed ips

lluisd avatar Apr 17 '25 11:04 lluisd