SuperApp adlı üyeden alıntı: mesajı görüntüle
http://ip-api.com/json

function ipLookUp () {
  $.ajax('http://ip-api.com/json')
  .then(
      function success(response) {
          console.log('User\'s Location Data is ', response);
          console.log('User\'s Country', response.country);
      },

      function fail(data, status) {
          console.log('Request failed.  Returned status of',
                      status);
      }
  );
}
kaynak :https://medium.com/better-programmin...t-92f9e91c095f
Dönüşünüz için teşekkür ederim ancak bu yapı geolocation apisi kullanarak çalışıyor. Geolocation yapısı ziyaretçi onay vermeden çalışmamakta. Benim ihtiyacım olan ip bloklarına göre hareket etmesi yönünde. Türkiye ip bloğuna dahil olmayan bir ipyi diğer sitemize yönlendirmek istiyorum. Durum bu aslında