Cloudflare Capturing Geolocation data

CrakRevenue

Neil

Grandpa affLIFT
Staff Member
Community Leader
Joined
Dec 1, 2018
Messages
2,994
Not sure if many of you have spotted this but you can now capture a visitor's GEO information from Cloudflare, this is good as it can speed up any such checks as you will not have to now install or refer to MaxMind (or similar) services.

Under Network, you should see IP Geolocation option

1583343787438-png.9182


1583343485904-png.9181


Switch that on and you can get the GEO information from a custom header.

PHP:
$country_code = $_SERVER["HTTP_CF_IPCOUNTRY"];


Full details can be found on the Cloudflare support site



Just thought I'd share as I was playing about trying to find a
 
To view the premium content in our affiliate marketing forum (including this awesome thread), you must first register and upgrade your account. Register today and become a part of our amazing community!
Top