Skip to content

Instantly share code, notes, and snippets.

@procarrera
Created December 10, 2021 21:31
Show Gist options
  • Save procarrera/06e28018b455e8dc749346954421918d to your computer and use it in GitHub Desktop.
Save procarrera/06e28018b455e8dc749346954421918d to your computer and use it in GitHub Desktop.
User IP Geolocation
<script type="application/javascript" src="http://ipinfo.io/?format=jsonp&callback=getIP"></script>
<script>
function getIP(data) {
console.log(data.ip);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment