View Single Post
Old 12-14-2020, 01:55 AM  
faperoni
Confirmed User
 
faperoni's Avatar
 
Industry Role:
Join Date: Feb 2015
Location: Amsterdam
Posts: 210
If you are using cloudflare there is even an easier solution, enable IP geolocation for the domain: https://support.cloudflare.com/hc/en...IP-Geolocation

You can now do this on your landing page:
Code:
if($_SERVER["HTTP_CF_IPCOUNTRY"] === 'US') $offerUrl = 'https://us-offer-url';
elseif($_SERVER["HTTP_CF_IPCOUNTRY"] === 'FR')  $offerUrl = 'https//french-offer-url';
etc etc

header("HTTP/1.1 301 Moved Permanently");
header("Location: ".$offerUrl);
Other options are free APIs like https://freegeoip.app/ or the maxmind geoip database https://www.maxmind.com/en/home
__________________
Faperoni.com Fucker.com
faperoni is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote