CIDR country-level IP data, straight from the Regional Internet Registries, updated hourly. This is a read-only mirror.
Go to file
2024-03-05 07:00:23 +01:00
.github Women Empowerment in Zanzibar 2020-11-22 21:08:42 +01:00
ipv4 Update 2024-03-05T06:00:23+00:00 2024-03-05 07:00:23 +01:00
ipv6 Update 2024-03-05T06:00:23+00:00 2024-03-05 07:00:23 +01:00
.gitignore Update 2020/01/20 2020-01-20 00:55:19 +01:00
LICENSE Update 2020/01/20 2020-01-20 00:55:19 +01:00
README.md Update 2023-11-24T10:03:12+00:00 2023-11-24 11:03:12 +01:00

Country IP Blocks

These have a thousand and one uses but are surprisingly hard to come by in bulk.

  • 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.

Note

There are more than a dozen commercial IP geolocation database providers, and the accuracy of each provider is different. They get IP address information from the RIRs, but the assignment changes regularly as some companies release unwanted IP addresses and others obtain a new block of IP addresses.

The blocks of IP addresses assigned to many companies can, in turn, assign them to their users however they want without geographic boundaries. This makes pinpointing geolocation of an IP address rather difficult. The accuracy of geolocation 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 the data becomes.

This projects downloads the information directly from the local RIRs and is as accurate as the data provided. More often than not, the country attached to an IP range is the one the registering company is located in. There is no reliable way to determine the physical location of any IP without tracing it separately.

For an alternative source, please see the companion repository which is likely more accurate with regards to the expectations of many users.

https://git.herrbischoff.com/country-ip-blocks-alternative/