I have a WordPress plugin that stores information about failed login attempts. This information includes the IP address of the user. For GDPR Compliance the address is anonymized, so for example 142.250.74.142 becomes 142.250.74.0, 31.13.72.36 becomes 31.13.72.36 and so on.
An admin can later get geolocation information for a failed login attempt using IPinfo. Currently the lookup is made using the anonymized address, i.e. 142.250.74.0, but I’m unsure if that the best way and if the results are reliable?
Can the IP addresses in the range 142.250.74.0-142.250.74.255 have different geolocation results, and if, is there a way to query the results for a range of ip-addresses and get multiple geolocation results?
Summary
- Total 256
- Unique 256
- Anycast 0
- Bogon 0
- Mobile 0
- VPN 0
- Proxy 0
- Hosting 256
- Tor 0
- Relay 0
Top ASNs
- AS15169 Google LLC 256 (100.0%)
Top Usage Types
- Hosting 256 (100.0%)
Top Routes
- 142.250.74.0/24 (AS15169) 256 (100.0%)
Top Countries
- Sweden 192 (75.0%)
- France 32 (12.5%)
- Germany 32 (12.5%)
Top Cities
- Stockholm, Stockholm, SE 192 (75.0%)
- Paris, Île-de-France, FR 32 (12.5%)
- Mörfelden-Walldorf, Hesse, DE 32 (12.5%)
Top Regions
- Stockholm, SE 192 (75.0%)
- Île-de-France, FR 32 (12.5%)
- Hesse, DE 32 (12.5%)
Top Domains
- 1e100.net 256 (100.0%)
From the input IP range, we can see 3 different cities and 3 different countries.
IPinfo Bulk/Batch lookup
Now, let’s say the IP address range is too big, and you need more granular information for each individual IP address. In that case, use CLI’s bulk command, which supports IP ranges as well.