🌐 Per Country IP Lists based on the GeoLite2 Database
PHP
Latest commit 5c08d82 Apr 18, 2015 @AndiDittrich cleanup
Permalink
Failed to load latest commit information.
Build initial commit Apr 18, 2015
GeoLite2/GeoLite2-Country-CSV_20150407 initial commit Apr 18, 2015
.gitignore initial commit Apr 18, 2015
LICENSE.md initial commit Apr 18, 2015
README.md initial release Apr 18, 2015
build.xml cleanup Apr 18, 2015
convert.php initial commit Apr 18, 2015

README.md

GeoIP Country Lists

Per Country IP lists useful for bash scripting/filter purpose.

This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.

Data-Structure

The Build/ directory contains the per-country ip lists. One CIDR Range per line, separated by \n.

File Format

xxx.xxx.xxx.xxx/yy\n
xxx.xxx.xxx.xxx/yy\n
xxx.xxx.xxx.xxx/yy\n
...

Example DE.txt

188.138.101.0/26
188.138.101.64/27
188.138.101.96/30
188.138.101.100/31
188.138.101.102/32
...

Update

To update the dataset, just run the following command within a shell (PHP and ANT required!). THe script will automatically fetch the current GeoLite2 Database and transform the data in per-country lists.

ant build.xml

License

Data

The GeoIP data (GeoLite2/ directory as well as the derived output data within Build/) is released under the Terms of Creative Commons Attribution-ShareAlike 3.0 Unported License. Following the requirements of MaxMind the "Attribution" has to be:

The GeoLite2 databases are distributed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. The attribution requirement may be met by including the following in all advertising and documentation mentioning features of or use of this database

This product includes GeoLite2 data created by MaxMind, available from
<a href="http://www.maxmind.com">http://www.maxmind.com</a>.

Scripts

The Scripts as well as the Documentation is released under the Terms of The MIT X11 License.