PHP: Get visitor country via Cloudflare CF-IPCountry header.
This is a PHP tutorial on how to retrieve a visitor’s country code from Cloudflare’s CF-IPCountry header.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed