Extracting geolocation information
In this section, we will review how to extract geolocation information from an IP address or a domain.
One way to obtain the geolocation from an IP address or domain is using a service that provides information about geolocation such as the country, latitude, and longitude. Among the services that provide this information, we can highlight hackertarget.com
(https://hackertarget.com/geoip-ip-location-lookup).
With hackertarget.com, we can get geolocation from an IP address:
This service also provides a REST API for obtaining geolocation from an IP address using the https://api.hackertarget.com/geoip/?q=8.8.8.8 endpoint:
IP Address: 8.8.8.8 Country: United States State: City: Latitude: 37.751 Longitude: -97.822
We can use similar services to get geolocation, such as freegeoip.app. This service provides an endpoint to get geolocation by IP address: https:/...