Is there a website or webpage that can be used to input a user's IP address and receive their country or location as plain text?
Below is a code snippet demonstrating how I attempted to retrieve the user's IP address:
I inserted the following code to retrieve the user's IP:
<script type="text/javascript" src="https://l2.io/ip.js?var=userip"></script>
...
<script type="text/javascript">
document.write("Your IP is: ", userip);
</script>
$.post("domain.sdm/page", {
"ip": "123.234.345"
}, function(data, success) {
alert("Your country is: " + data);
});