Extensions that have to do with a user's IP (such as #checkuser and #mediawiki-extensions-loginnotify ) would benefit if we could show the "geolocation" of an IP address along with information about its "IP range". For instance, the IP address `8.8.8.8` belongs to Google Inc. and is located in Mountain View, CA, and it belongs to the IPv4 range `8.8.8.0/24`.
* In case of CheckUser, if I retrieve results for a user and he has edits from 8.8.8.1, 8.8.8.2, 8.8.8.3, 8.8.8.11, etc, I would love to know that they are all from the same IPv4 range. Currently, CheckUser does not provide that information and I have to retrieve the data using third party resources.
* In case of LoginNotify, this extension warns me if I log in from a "new" IP address. But if I usually edit from the 8.8.8.0/24 range and today happens to be the first time I am logging in from 8.8.8.220, I would like *not* to be notified about it (even though it is a new IP, it is from my known range). This is currently not possible, because LoginNotify has no way to know what is the IP range associated with each IP.
There exists at least one service provider (https://ipinfo.io) that provides all the information we need for this task through an API (geolocation, ISP name, IP range, etc.) However, we need to obtain a license from them (both for legal reasons as well as the fact that IP range data is not available for free through the API).
Alternatively, we can obtain the data in a single dump (not through an API). No matter how the data is retrieved, we would like to have an extension that simplifies obtaining, re-obtaining (e.g. every three months), storing, and returning this data.