- Joined
 - Dec 1, 2018
 
- Messages
 - 3,324
 
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
		
		
	
	
		
	
		
	
Switch that on and you can get the GEO information from a custom header.
	
	
	
		
Full details can be found on the Cloudflare support site
	
	
		
			
				
					
						
					
				
			
			
				
					
						
							
						
					
					support.cloudflare.com
				
			
		
	
Just thought I'd share as I was playing about trying to find a
	
		
			
		
		
	
				
			Under Network, you should see IP Geolocation option
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
					
				Configuring Cloudflare IP Geolocation
IP Geolocation allows site owners to capture country codes for their visitors on their origin web server. Learn how to configure the IP Geolocation feature to geolocate your site's traffic. Overvie...
				Just thought I'd share as I was playing about trying to find a
				


