First you need to enable the Geolocation on your cloudflare.
That is located in the
Network -❱ IP Geolocation
on the Cloudflare.
Just put it on .. according to me it is already on by default.
Now come to your website and use this PHP code to see the country code using Cloudflare.
$country_code = $_SERVER["HTTP_CF_IPCOUNTRY"];
//IT IS INDIA
//IT IS NOT INDIA
Hop this helped you.
announcement Recently Asked
Transform your Works into Digital and Makes your life more easier.
Copyright ©2019-20 mritunjoy.com,All Rights Reserved