Redirect by Country and Location Offers
// Getting the country code from the user's IP
$.get("https://ipforensics.net/api/v1/origin?apikey=APIKEY", function (response) {
if (response.meta_data.geolocation.code == 'NG') {
window.location.href = "https://ipforensicsstore.ng";
} else if (response.meta_data.geolocation.code == 'DE') {
window.location.href = "https://ipforensicsstore.de";
} else if (response.meta_data.geolocation.code == 'GH') {
window.location.href = "https://ipforensicsstore.gh";
}
}, "jsonp");Last updated