These have a thousand and one uses but are surprisingly hard to come by inbulk.
- IPv4 and IPv6 ranges available.
- Compiled directly from AFRINIC, APNIC, ARIN, LACNIC and RIPENCC data.
- Deduplicated and subnets merged for efficiency.
- Simplified and sorted by country TLD.
- CIDR notation.
- Updated hourly, commits only appear when there are changes.
There are more than a dozen commercial IP geolocation database providers, andthe accuracy of each provider is different. They get IP address informationfrom the RIRs, but the assignment changes regularly as some companies releaseunwanted IP addresses and others obtain a new block of IP addresses.
The blocks of IP addresses assigned to many companies can, in turn, assign themto their users however they want without geographic boundaries. This makespinpointing geolocation of an IP address rather difficult. The accuracy ofgeolocation data differs by provider. You can generally expect a 95% to 99%accuracy for the country level. The more granular you get, the less precise thedata becomes.
This projects downloads the information directly from the local RIRs and is asaccurate as the data provided. More often than not, the country attached to anIP range is the one the registering company is located in. There is no reliableway to determine the physical location of any IP without tracing it separately.
For an alternative source, please see the companion repository which is likelymore accurate with regards to the expectations of many users.
https://git.herrbischoff.com/country-ip-blocks-alternative/