Skip to content

🌐 Per Country IP Lists based on the GeoLite2 Database

License

Notifications You must be signed in to change notification settings

eksiscloud/GeoIP-Country-Lists

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

🌐 Per Country IP Lists based on the GeoLite2 Database

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%