Created
December 10, 2021 21:31
-
-
Save procarrera/06e28018b455e8dc749346954421918d to your computer and use it in GitHub Desktop.
User IP Geolocation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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