IP geolocation services are capable of far more than serving website visitors in their local language and currency using IP lookup. They can also play a critical role in cybersecurity. Geolocation data can source the IP address of DDoS (Distributed Denial of Service) attackers in real-time.
Source: https://gbhackers.com/top-6-best-ip-geolocation-apis-for-cybersecurity-2022/