IP Geolocation ON at dashboard but country_code = _SERVER[“HTTP_CF_IPCOUNTRY”]; returns nothing, what am I missing ?
Sorry about the difficulty you are having mapping the client country code from CF.
This looks like PHP – but I think I might need you to confirm. I am not super familiar with how to read CF request headers from PHP, but I wanted to check that this variable you have is reading our headers using the correct syntax. (I am reading this page from the PHP docs here, for reference)
Specifically, do you know if this function is looking for
cf-ipcountry in the request headers?
hi Peter thanks for answer but;
I did follow this article https://support.cloudflare.com/hc/en-us/articles/200168236
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.