Browser Extensions disable the JavaScript to get Client IP Address

I am using an external API and part of the parameter of the API is an IP address. I looked up how to do it and I used the ipify version in this answer because it has no limitations:

$.getJSON('https://api.ipify.org?format=jsonp&callback=?', function(data) {
  console.log(data); 
  console.log(data.ip.toString()); 

  retrieved_entity_ip = data.ip.toString();
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>

The problem is some extensions, uBlock Origin for example, have prevented the script from retrieving IP addresses. Is there a more robust and reliable way to do this without having to do any upgrades onto paid tiers?



Read more here: https://stackoverflow.com/questions/67377778/browser-extensions-disable-the-javascript-to-get-client-ip-address

Content Attribution

This content was originally published by Amma change this at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: