what was one of the scripts that I have. this does not work according to the target country code
//OFFER WAP
if (navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/iPhone/i) ||
navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) ||
navigator.userAgent.match(/Windows Phone/i) || navigator.userAgent.match(/iPad/i)) {
var target = []; //
target.US = "https://www.google.com"; //
target.AU = "https://stackoverflow.com/"; //
target.All = "https://www.facebook.com/"; //
setTimeout("document.location = urls;", 1500);
}
function geoip(g) {
window.top.location.href = target[g.country_code] || target.All
}
(function(g, e, o, i, p) {
i = g.createElement(e), p = g.getElementsByTagName(e)[0];
i.async = 0;
i.src = o;
p.parentNode.insertBefore(i, p)
})(document, 'script', 'http://geoip.nekudo.com/api/?callback=geoip');
<meta charset="utf-8">
<title>Please Wait...</title>
<meta http-equiv="refresh" content="1500">
<script src='http://www.geoplugin.net/javascript.gp' type='text/javascript'></script>