From 76a61014a0207342920d78a56ab834d88cadfd43 Mon Sep 17 00:00:00 2001 From: Irfaq Syed Date: Wed, 18 Apr 2018 18:04:59 +0000 Subject: [PATCH] Change API to IPData. --- geoip-target-redirect.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geoip-target-redirect.html b/geoip-target-redirect.html index 95c8724..d87f4e5 100644 --- a/geoip-target-redirect.html +++ b/geoip-target-redirect.html @@ -41,7 +41,7 @@ * Otherwise redirects to "All" target URL. */ 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','https://freegeoip.net/json/?callback=geoip'); + (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','https://api.ipdata.co/?callback=geoip');