In this article we will use jsonip and https://iplist.cc in order to gather data the requester’s ip address
https://jsonip.com is a simple JSON-based API that returns the client’s IP address in a JSON object. It is useful for getting the client’s IP address in a web application.
Here is an example response from https://jsonip.com:
{
"ip": "123.456.789.012"
}
You can send a GET request to https://jsonip.com to retrieve the client’s IP address. The response will be a JSON object with a single field, “ip”, which contains the client’s IP address as a string.
https://iplist.cc is a website that provides an API for retrieving information about an IP address. The API is a simple JSON-based API that returns a variety of information about the specified IP address, such as the country, region, city, time zone, latitude and longitude, and ASN (Autonomous System Number) information.
You can send a GET request to https://iplist.cc/api/{ip}, where {ip} is the IP address you want to look up, to retrieve information about the IP address. The response will be a JSON object containing the information about the IP address.
Here is an example response from https://iplist.cc/api/123.456.789.012:
{
"ip": "123.456.789.012",
"registry": "ARIN",
"countrycode": "US",
"countryname": "United States"…