ip_location_db 2.2.2020121618
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +122 -0
- data/WEBNET77-LICENSE +41 -0
- data/geolite2-city/GEOLITE2_EULA +104 -0
- data/geolite2-city/GEOLITE2_LICENSE +23 -0
- data/geolite2-city/README.md +122 -0
- data/geolite2-city/geolite2-city-ipv4.csv.gz +0 -0
- data/geolite2-city/package.json +24 -0
- data/lib/ip_location_db.rb +3 -0
- metadata +51 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: de03e8a4ba4d421f20113464e1be059357abecd1ac85f0f4aaf45f8e9fc280cf
|
4
|
+
data.tar.gz: 22d3828c003211130572c9f9966d4544d3ada35fa6c59be98f627e3871bf6c29
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: aad7cee94bf251d44cf6b2f499d3cfd786befc7823bef59c237ffaf71351d0b9392428a41f3e878edfe5f50717ebff71f248f83253e0e49ec9c0852bef620590
|
7
|
+
data.tar.gz: 0c01184a30acbdcac222aac56810be5a6d5ccbfdcb4a35fdee9e0afa3058d6ea15926678dca392f7eac1b429e75745d892fb1ae3e11f56cfc6c52a6d6e18f093
|
data/README.md
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
# ip-location-db
|
2
|
+
|
3
|
+
|
4
|
+
| Database | Type | License | Update | ipv4 | ipv6 | ipv4-num | ipv6-num |
|
5
|
+
|---|---|---|---|---|---|---|---|
|
6
|
+
| ASN <br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/asn-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/asn-country) | Country | [CC0](https://creativecommons.org/publicdomain/zero/1.0/deed) | Daily | [asn-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/asn-country/asn-country-ipv4.csv) | [asn-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/asn-country/asn-country-ipv6.csv) |[asn-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/asn-country/asn-country-ipv4-num.csv) | [asn-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/asn-country/asn-country-ipv6-num.csv) |
|
7
|
+
| GeoFeed + ASN<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/geo-asn-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/geo-asn-country) | Country | [CC0](https://creativecommons.org/publicdomain/zero/1.0/deed) | Daily | [geo-asn-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country/geo-asn-country-ipv4.csv) | [geo-asn-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country/geo-asn-country-ipv6.csv) | [geo-asn-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country/geo-asn-country-ipv4-num.csv) | [geo-asn-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country/geo-asn-country-ipv6-num.csv) |
|
8
|
+
| GeoFeed + Whois + ASN<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/geo-whois-asn-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/geo-whois-asn-country)| Country | [CC0](https://creativecommons.org/publicdomain/zero/1.0/deed) | Daily | [geo-whois-asn-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv4.csv) | [geo-whois-asn-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv6.csv) | [geo-whois-asn-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv4-num.csv) | [geo-whois-asn-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv6-num.csv) |
|
9
|
+
| [iptoasn.com](https://iptoasn.com/)<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/iptoasn-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/iptoasn-country)| Country | [PDDL](https://opendatacommons.org/licenses/pddl/1.0/) by [iptoasn.com](https://iptoasn.com/)<sup>♣</sup> | Daily | [iptoasn-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country/iptoasn-country-ipv4.csv) | [iptoasn-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country/iptoasn-country-ipv6.csv) | [iptoasn-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country/iptoasn-country-ipv4-num.csv) | [iptoasn-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country/iptoasn-country-ipv6-num.csv) |
|
10
|
+
| [Webnet77](http://software77.net/geo-ip/)<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/webnet77-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/webnet77-country)| Country | [Donationware](http://en.wikipedia.org/wiki/Donationware) by [Webnet77](http://software77.net/geo-ip/)<sup>♠</sup> | Daily | [webnet77-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/webnet77-country/webnet77-country-ipv4.csv) | [webnet77-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/webnet77-country/webnet77-country-ipv6.csv) | [webnet77-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/webnet77-country/webnet77-country-ipv4-num.csv) | [webnet77-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/webnet77-country/webnet77-country-ipv6-num.csv) |
|
11
|
+
| [DB-IP](https://db-ip.com/) Lite<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/dbip-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/dbip-country)| Country | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) <br> by [DB-IP](https://db-ip.com/)<sup>★</sup> | Monthly | [dbip-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country/dbip-country-ipv4.csv) | [dbip-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country/dbip-country-ipv6.csv) | [dbip-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country/dbip-country-ipv4-num.csv) | [dbip-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country/dbip-country-ipv6-num.csv) |
|
12
|
+
| [DB-IP](https://db-ip.com/) Lite<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/dbip-city?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/dbip-city)| City | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) <br> by [DB-IP](https://db-ip.com/)<sup>★</sup> | Monthly | [dbip-city-ipv4.csv.gz](https://github.com/sapics/ip-location-db/raw/master/dbip-city/dbip-city-ipv4.csv.gz) | [dbip-city-ipv6.csv.gz](https://github.com/sapics/ip-location-db/raw/master/dbip-city/dbip-city-ipv6.csv.gz) | [dbip-city-ipv4-num.csv.gz](https://github.com/sapics/ip-location-db/raw/master/dbip-city/dbip-city-ipv4-num.csv.gz) | [dbip-city-ipv6-num.csv.gz](https://github.com/sapics/ip-location-db/raw/master/dbip-city/dbip-city-ipv6-num.csv.gz) |
|
13
|
+
| [GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/)<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/geolite2-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/geolite2-country)| Country | GeoLite2 License by [MaxMind](https://www.maxmind.com/)<sup>♥</sup> | Weekly | [geolite2-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country/geolite2-country-ipv4.csv) | [geolite2-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country/geolite2-country-ipv6.csv) | [geolite2-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country/geolite2-country-ipv4-num.csv) | [geolite2-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country/geolite2-country-ipv6-num.csv) |
|
14
|
+
| [GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/)<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/geolite2-city?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/geolite2-city)| City | GeoLite2 License by [MaxMind](https://www.maxmind.com/)<sup>♥</sup> | Weekly | [geolite2-city-ipv4.csv.gz](https://github.com/sapics/ip-location-db/raw/master/geolite2-city/geolite2-city-ipv4.csv.gz) | [geolite2-city-ipv6.csv.gz](https://github.com/sapics/ip-location-db/raw/master/geolite2-city/geolite2-city-ipv6.csv.gz) | [geolite2-city-ipv4-num.csv.gz](https://github.com/sapics/ip-location-db/raw/master/geolite2-city/geolite2-city-ipv4-num.csv.gz) | [geolite2-city-ipv6-num.csv.gz](https://github.com/sapics/ip-location-db/raw/master/geolite2-city/geolite2-city-ipv6-num.csv.gz) |
|
15
|
+
|
16
|
+
## CSV format
|
17
|
+
|
18
|
+
This project provides ip to location database in csv format.
|
19
|
+
|
20
|
+
#### Country csv format
|
21
|
+
`ip_range_start, ip_range_end, country_code`
|
22
|
+
|
23
|
+
#### City csv format
|
24
|
+
`ip_range_start, ip_range_end, country_code, state1, state2, city, postcode, latitude, longitude, timezone`
|
25
|
+
|
26
|
+
##### country_code
|
27
|
+
`country_code` is the two-letter code defined in [ISO 3166-1 alpha-2](https://wikipedia.org/wiki/ISO_3166-1_alpha-2).
|
28
|
+
You can get the `country name, capital, continent, currency, languages, etc.` from the `country_code` by [Countries Database](https://github.com/annexare/Countries) in JSON, CSV, SQL format.
|
29
|
+
|
30
|
+
##### ip address format
|
31
|
+
`ip_range_start` and `ip_range_end` is ip address.
|
32
|
+
- `ipv4`: The csv line `1.0.0.0,1.0.0.255,AU` means that ip addresses between `1.0.0.0` and `1.0.0.255` inclusive are `AU` country_code.
|
33
|
+
- `ipv4-num`: The csv line `16777216,16777471,AU` means that ip addresses between `1.0.0.0` and `1.0.0.255` inclusive are `AU` country_code. (`16777216` is the number format of the ip address `1.0.0.0`)
|
34
|
+
- `ipv6`: The csv line `2001:200::,2001:200:ffff:ffff:ffff:ffff:ffff:ffff,JP` means that ip addresses between `2001:200::` and `2001:200:ffff:ffff:ffff:ffff:ffff:ffff` inclusive are `JP` country_code.
|
35
|
+
- `ipv6-num`: The csv line `42540528726795050063891204319802818560,42540528806023212578155541913346768895,JP` means that ip addresses between `2001:200::` and `2001:200:ffff:ffff:ffff:ffff:ffff:ffff` inclusive are `JP` country_code. (`42540528726795050063891204319802818560` is the number format of the ip address `2001:200::`)
|
36
|
+
|
37
|
+
Please be careful when using `ipv6` and `ipv6-num` in your program. The numerical value exceeds 32bit unsigned integer, so you need to use 64bit unsigned integer.
|
38
|
+
|
39
|
+
|
40
|
+
## Databases referenced in this project
|
41
|
+
|
42
|
+
When merging multiple database, set the front database above back one.
|
43
|
+
(ex. geo-whois-asn-...csv is created by merging 3 database with GeoFeed > Whois > ASN.)
|
44
|
+
|
45
|
+
|
46
|
+
### ASN database [Update: Daily]
|
47
|
+
|
48
|
+
Created by merging 5 RIP ([afrinic](https://afrinic.net), [apnic](https://www.apnic.net), [arin](https://www.arin.net), [lacnic](https://www.lacnic.net), [ripe ncc](https://www.ripe.net)) IP-ASN database.
|
49
|
+
[ASN (Autonomous System Number)](https://wikipedia.org/wiki/Autonomous_system_(Internet)) is a unique number assigned to an Autonomous System (AS) by the [IANA](https://www.iana.org/).
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
### GeoFeed database [Update: Daily]
|
54
|
+
|
55
|
+
Created by merging GeoFeed database from [OpenGeoFeed](https://opengeofeed.org/).
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
### Whois database [Update: Daily]
|
60
|
+
|
61
|
+
Created by merging 5 RIP provided WHOIS database.
|
62
|
+
There are some inconsistencies between 5 RIP.
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
### [iptoasn.com](https://iptoasn.com/)<sup>♣</sup> database [Update: Hourly]
|
67
|
+
|
68
|
+
You can download hourly updated database in tsv format from [original site](https://iptoasn.com/).
|
69
|
+
This is licensed under a [Public Domain Dedication and Licence v1.0](https://opendatacommons.org/licenses/pddl/1.0/).
|
70
|
+
There are some differences from above `ASN` database.
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
### [Webnet77](https://software77.net/geo-ip/)<sup>♠</sup> database [Update: Daily]
|
75
|
+
|
76
|
+
This database is donationware, please read [the license](https://software77.net/geo-ip/?license) carefully.<br>
|
77
|
+
We **recommend donating to [webnet77](https://software77.net/geo-ip/), if you use this database especially for commercial use**.
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
### [DB-IP](https://db-ip.com/)<sup>★</sup> database [Update: Monthly]
|
82
|
+
|
83
|
+
You could download and read the license from [ip-to-country-lite](https://db-ip.com/db/download/ip-to-country-lite) or [ip-to-city-lite](https://db-ip.com/db/download/ip-to-city-lite).
|
84
|
+
These database are licensed under a [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/),
|
85
|
+
so, **you must create attribution to [DB-IP.com](https://db-ip.com/) for using this database**.<br>
|
86
|
+
In the case of a web application, you must include a link back to DB-IP.com on pages that display or use results from the database. You may do it by pasting the HTML code snippet into your code: `<a href='https://db-ip.com/'>IP Geolocation by DB-IP</a>`.<br>
|
87
|
+
If you need better accuracy or no attribution or daily updates, please use the [Commercial Version of db-ip](https://db-ip.com/db/ip-to-country).
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
### [GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/)<sup>♥</sup> database [Update: Weekly]
|
92
|
+
|
93
|
+
GeoLite2 is created by [MaxMind](https://www.maxmind.com).
|
94
|
+
The license of GeoLite2 is written in GEOLITE2_LICENSE and End User License Agreement (EULA) is written in GEOLITE2_EULA.
|
95
|
+
**Please carefully read the GEOLITE2_LICENSE and GEOLITE2_EULA files, if you use these database.**
|
96
|
+
This package comes with certain restrictions and obligations, most notably:
|
97
|
+
- You cannot prevent the library from updating the databases.
|
98
|
+
- You cannot use the GeoLite2 data:
|
99
|
+
- for FCRA purposes,
|
100
|
+
- to identify specific households or individuals.
|
101
|
+
|
102
|
+
If you need better accuracy, please use the commercial version [GeoIp2](https://www.maxmind.com/en/geoip2-databases).
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
## Which database is recommended to use?
|
107
|
+
|
108
|
+
Of course, it depends on your use case.
|
109
|
+
But the above list is too long, thus, we write down the recommendation.
|
110
|
+
|
111
|
+
- If you need postcode or timezone, `geolite2-city` is the one.
|
112
|
+
- If you need city data with CC-BY License, `dbip-city` is the one.
|
113
|
+
- If you need country database with Public Domain, we recommend `geo-whois-asn-country` database.
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
## License
|
118
|
+
|
119
|
+
License depends on the database which you use. Please read carefully each database license.
|
120
|
+
You can use [PDDL](https://opendatacommons.org/licenses/pddl/1.0/) (ODC Public Domain Dedication and Licence) or [CC0](https://creativecommons.org/publicdomain/zero/1.0/deed) (Creative Commons Zero) licensed database without attribution for any purpose.
|
121
|
+
|
122
|
+
We are glad if you make a link to [sapics/ip-location-db](https://github.com/sapics/ip-location-db), or give us a star to [the github repository](https://github.com/sapics/ip-location-db).
|
data/WEBNET77-LICENSE
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
INFORMATION AND NOTES ON IpToCountry
|
2
|
+
====================================
|
3
|
+
|
4
|
+
LICENSE: "DONATIONWARE"
|
5
|
+
=======================
|
6
|
+
|
7
|
+
Definition: http://en.wikipedia.org/wiki/Donationware
|
8
|
+
Definition: http://www.techterms.com/definition/donationware
|
9
|
+
|
10
|
+
This database is "DONATIONWARE"
|
11
|
+
===============================
|
12
|
+
|
13
|
+
It's simple: we cannot offer tens of thousands of downloads per day without
|
14
|
+
assistance. Please help us.... the PayPal link is near the top right of the
|
15
|
+
page here: http://software77.net/geo-ip/
|
16
|
+
|
17
|
+
If you use the database in a commercial application and therefore benefit
|
18
|
+
financially we ask you to to make a small donation.
|
19
|
+
|
20
|
+
If this database is anywhere half decent, pay what it's worth to you, as a
|
21
|
+
developer or an end user.
|
22
|
+
|
23
|
+
Our IPToCountry database is now part of many Linux and even WINDOWS
|
24
|
+
distributions/packages. In other words, it comes included with the sofware
|
25
|
+
the end user purchases and the end user is usually totally oblivious to this.
|
26
|
+
|
27
|
+
It may be invisible to the user. S/he may not even know they have it on their
|
28
|
+
PC, MAC, Tablet, Cellphone or other device; but be assured, this database
|
29
|
+
is pervasive, and is to be found on many devices across the planet.
|
30
|
+
As a tiny (truly tiny) company, we cannot support the world.
|
31
|
+
|
32
|
+
We appeal to developers to make mention of the fact that this database
|
33
|
+
is DONATIONWARE; many end user applications download the database weekly
|
34
|
+
or even daily as part of the application and the end user is not even aware
|
35
|
+
of the fact that they are making use of a resource entirely for free.
|
36
|
+
|
37
|
+
HELP US! ... and make a small donation. And if you are a developer, make it
|
38
|
+
known to your end users. Please.
|
39
|
+
|
40
|
+
The donation link can be found near the top right on the main page
|
41
|
+
http://software77.net/geo-ip/
|
@@ -0,0 +1,104 @@
|
|
1
|
+
GeoLite2 End User License Agreement
|
2
|
+
|
3
|
+
Revised on December 20, 2019
|
4
|
+
See the latest version at https://www.maxmind.com/en/geolite2/eula
|
5
|
+
|
6
|
+
By downloading or using our GeoLite2 Database, you are accepting and agreeing to the terms and conditions set forth in this GeoLite2 End User License Agreement (this "Agreement").
|
7
|
+
|
8
|
+
MaxMind, Inc. ("MaxMind"), a Delaware Corporation, offers a line of free databases that provide geographic information and other data associated with specific Internet protocol addresses (each a "GeoLite2 Database" and collectively the "GeoLite2 Databases"). The data available through the GeoLite2 Databases is referred to in this Agreement as the "GeoLite2 Data". The term “Services” as used in this Agreement means the Geolite2 Databases and the GeoLite2 Data available at GeoLite2 Free Downloadable Databases on the MaxMind website, www.maxmind.com (the "Website").
|
9
|
+
|
10
|
+
ADDITIONAL POLICIES, TERMS AND CONDITIONS.
|
11
|
+
|
12
|
+
The following policies are incorporated into this Agreement by reference and provide additional terms and conditions incorporated herein by this reference and/or related to the use of the Website:
|
13
|
+
|
14
|
+
Creative Commons Corporation Attribution-ShareAlike 4.0 International License (the “Creative Commons License”)
|
15
|
+
MaxMind Data Processing Addendum (“DPA”)
|
16
|
+
MaxMind Privacy Policy (“PP”)
|
17
|
+
MaxMind Website Terms of Use (“WT”)
|
18
|
+
|
19
|
+
This Agreement controls in the event of any conflict with the above-referenced documents. Thereafter, for any conflicts among the above 4 documents, the priority and precedence of interpretation is DPA, PP, WT and Creative Commons License.
|
20
|
+
|
21
|
+
OTHER DATABASES AND PRODUCTS.
|
22
|
+
|
23
|
+
This Agreement does not apply to your use of any databases or products offered by MaxMind other than the Services. If you use other MaxMind databases or products, additional or other terms and conditions shall apply to your use of such databases and products, and you agree to pay all applicable charges.
|
24
|
+
|
25
|
+
LIMITED GRANT OF RIGHTS.
|
26
|
+
|
27
|
+
Subject to the terms and conditions of this Agreement, to the extent the Services contain any copyrightable elements those copyrightable elements are governed by the Creative Commons License. You must provide attribution of your use to MaxMind (an example of attribution: “This product includes GeoLite2 data created by MaxMind, available from <a href="https://www.maxmind.com">https://www.maxmind.com</a>“).
|
28
|
+
|
29
|
+
In addition and if you are using the Services for internal use, subject to the terms and conditions of this Agreement, MaxMind also hereby grants you a non-exclusive, non-transferable limited license to access and use the Services for your own internal business purposes.
|
30
|
+
|
31
|
+
With respect to either or both of the above licenses, (i) you agree to use the Services only in a manner that is consistent with applicable laws and (ii) you may not remove or obscure any copyright notice or other notice or terms of use contained in the Services.
|
32
|
+
|
33
|
+
NO USE OF GEOLITE2 DATA FOR FCRA PURPOSES.
|
34
|
+
|
35
|
+
The parties understand and agree that MaxMind is not a consumer reporting agency as defined by the Fair Credit Reporting Act, 15 U.S.C. §1681 et seq. ("FCRA"), and that the Services do not constitute "consumer reports" as defined in the FCRA. You agree that you will not use the Services to determine any consumer's eligibility for any product or service to be used by a consumer for personal, family, or household purposes. You also agree that you will not use the Services (i) as a factor in establishing a consumer's eligibility for credit, (ii) as a factor in establishing a consumer's eligibility for insurance, (iii) for employment purposes, (iv) in connection with a determination of an individual's eligibility for a license or other benefit granted by a governmental authority, or (v) in connection with any permissible purpose as defined by the FCRA.
|
36
|
+
|
37
|
+
ACCURACY EXPECTATION: NO USE OF GEOLITE2 DATA FOR IDENTIFYING SPECIFIC HOUSEHOLDS OR INDIVIDUALS.
|
38
|
+
|
39
|
+
Due to the nature of geolocation technology and other factors beyond its control, MaxMind cannot and does not guarantee the accuracy of the GeoLite2 Data. The GeoLite2 Databases contain only the geographic data available and the availability of such data is not consistent for all regions. Furthermore, none of the GeoLite2 Data reliably identifies any geographic level or division more precise than the zip code or postal code associated with an IP address. Accordingly, it is imperative that you and your end users not rely on the GeoLite2 Data to identify a specific household, individual, or street address. You acknowledge the foregoing limitation of the GeoLite2 Data and agree represent and warrant that you will not use or encourage others to use the GeoLite2 Data for the purpose of identifying or locating a specific household, individual, or street address.
|
40
|
+
|
41
|
+
ADDITIONAL RESTRICTIONS.
|
42
|
+
|
43
|
+
Disclosure of Services. Except as explicitly permitted by the Creative Commons License, you will not disclose the Services to any third party or after notifying MaxMind of the anticipated disclosure and obtaining MaxMind’s prior written consent to the disclosure. To the extent you disclose the Services to a third party as permitted by this Agreement, you will impose upon the third party the same or substantially similar contractual duties imposed on you and the rights provided to MaxMind as in this Agreement, including those in LIMITED GRANT OF RIGHTS, ADDITIONAL RESTRICTIONS, and DATA PROCESSING and, where not inconsistent with the other terms of this Agreement, as in the Creative Commons License. You are responsible for the acts or omissions of any third parties with which you share the Services.
|
44
|
+
Security of the Services. You will maintain reasonable and appropriate technical and organizational measures for the protection of the security, confidentiality, and integrity of the Services (including protection against unauthorized or unlawful processing and against accidental or unlawful destruction, loss, or alteration or damage, unauthorized disclosure of, or access to, such data). In the event you discover a data incident involving the Services, you shall promptly notify MaxMind and fully cooperate with MaxMind, at your own expense, in remediating the incident.
|
45
|
+
Destructions of GeoLite2 Database and GeoLite2 Data. From time to time, MaxMind will release an updated version of the GeoLite2 Databases, and you agree to promptly use the updated version of the GeoLite2 Databases. You shall cease use of and destroy (i) any old versions of the Services within thirty (30) days following the release of the updated GeoLite2 Databases; and (ii) all Services immediately upon termination of the license under this Agreement. Upon request, you shall provide MaxMind with written confirmation of such destruction.
|
46
|
+
Provision of Data to MaxMind. The Services provided by MaxMind under this Agreement do not require MaxMind to process Personal Information on behalf of Licensee. Licensee shall not provide any Personal Information to MaxMind nor cause MaxMind to process any Personal Information on its behalf.
|
47
|
+
|
48
|
+
INDEMNIFICATION.
|
49
|
+
|
50
|
+
You will indemnify and hold MaxMind and its affiliates harmless from and against any and all claims, causes of action, liabilities, penalties, costs or expenses (including reasonable attorney’s fees) incurred by MaxMind or any affiliate thereof as a result of your breach of any of the terms of this Agreement.
|
51
|
+
|
52
|
+
FEES.
|
53
|
+
|
54
|
+
The Services are made available to you free of charge. MaxMind reserves the right to stop offering the Services free of charge at any time, and charge for future updates to the Services.
|
55
|
+
|
56
|
+
CHANGES TO THE AGREEMENT/TERMINATION.
|
57
|
+
|
58
|
+
(a) MaxMind may amend this Agreement at any time. Any such amendment(s) shall be binding and effective upon the earlier of (i) the date that is thirty (30) days after the posting of the amended Agreement on the Website or (ii) the date that MaxMind provides notice to you of the amended Agreement. You may immediately terminate this Agreement upon written notice to MaxMind if a change is unacceptable to you. Your continued use of the Services following notice to you of a change shall constitute your acceptance of the change.
|
59
|
+
|
60
|
+
(b) This Agreement shall terminate immediately if, within the reasonable judgment of MaxMind, you materially breach any material term or condition of this Agreement and fail to remedy the breach within ten (10) days of receipt of written notice thereof stating MaxMind's intent to terminate upon non-cure of the breach. Your failure to comply with the Restrictions on Use is a breach of a material term of this Agreement.
|
61
|
+
|
62
|
+
NO CONSEQUENTIAL DAMAGES/LIMITATION ON LIABILITY.
|
63
|
+
|
64
|
+
Under no circumstances, including negligence, shall MaxMind or any related party or supplier be liable for indirect, incidental, special, consequential, or punitive damages, or for loss of profits, revenue, or data, that are directly or indirectly related to the use of or the inability to access and use the Services, whether in an action in contract, tort, product liability, strict liability, statute, or otherwise, even if MaxMind has been advised of the possibility of those damages. The total liability of MaxMind, in connection with a loss or damages arising hereunder (an "Occurrence") is limited to the greater of $100 or the lowest amount permitted by applicable law.
|
65
|
+
|
66
|
+
NO WARRANTIES/AVAILABILITY.
|
67
|
+
|
68
|
+
MaxMind furnishes the Services on an as-is, as-available basis. MaxMind makes no warranty, express or implied, with respect to their capability, accuracy, or completeness. All warranties of any type, express or implied, including the warranties of merchantability, fitness for a particular purpose, and non-infringement of third party rights are expressly disclaimed. Furthermore, since the availability of Services offered through the Website is dependent upon many factors beyond MaxMind's control, MaxMind does not guarantee uninterrupted availability of any such Services. Any such Services may be inoperative and/or unavailable due to technical difficulties or for maintenance purposes, at any time and without notice. While MaxMind does not warrant that the MaxMind Website is free of harmful components, MaxMind shall make commercially reasonable efforts to maintain the Website free of viruses and malicious code.
|
69
|
+
|
70
|
+
GOVERNING LAW.
|
71
|
+
|
72
|
+
This Agreement shall be governed and interpreted pursuant to the laws of the Commonwealth of Massachusetts, applicable to contracts made and to be performed wholly in Massachusetts, without regard to principles of conflicts of laws. You specifically consent to personal jurisdiction in Massachusetts in connection with any dispute between you and MaxMind arising out of this Agreement. You agree that the exclusive venue for any dispute hereunder shall be in the state and federal courts in Boston, Massachusetts. This Agreement shall be construed and interpreted in English, and any translation hereof to a language other than English shall be for convenience only.
|
73
|
+
|
74
|
+
NOTICES.
|
75
|
+
|
76
|
+
Notices given under this Agreement shall be in writing and sent by facsimile, email, or by first class mail or equivalent. MaxMind shall direct notice to you at the email address or physical mailing address you provided in the registration process. You shall direct notice to MaxMind at the following address:
|
77
|
+
|
78
|
+
MaxMind, Inc.
|
79
|
+
|
80
|
+
14 Spring Street, Suite 3
|
81
|
+
|
82
|
+
Waltham, MA 02451
|
83
|
+
|
84
|
+
U.S.A.
|
85
|
+
|
86
|
+
Email: legal@maxmind.com
|
87
|
+
|
88
|
+
Either party may change its notice contact information at any time by giving notice of the new contact information as provided in this section.
|
89
|
+
|
90
|
+
COMPLETE AGREEMENT.
|
91
|
+
|
92
|
+
This Agreement (which includes the policies, terms and conditions referenced above and incorporated herein) represents the entire agreement between you and MaxMind with respect to the subject matter hereof and supersedes all previous representations, understandings, or agreements, oral and written, between the parties regarding the subject matter hereof. The headings contained in this Agreement are for convenience only and shall not govern its interpretation.
|
93
|
+
|
94
|
+
ASSIGNMENT.
|
95
|
+
|
96
|
+
You may not assign this Agreement without MaxMind's prior written consent. MaxMind may assign its rights and obligations under this Agreement without your consent.
|
97
|
+
|
98
|
+
SEVERABILITY.
|
99
|
+
|
100
|
+
Should any provision of this Agreement be held void, invalid, or inoperative, such decision shall not affect any other provision hereof, and the remainder of this Agreement shall be effective as though such void, invalid, or inoperative provision had not been contained herein.
|
101
|
+
|
102
|
+
COMPLIANCE WITH LAW.
|
103
|
+
|
104
|
+
Notwithstanding any provisions of this Agreement to the contrary, you shall in performance of this Agreement comply with all applicable laws, executive orders, regulations ordinances and rules of all governments (“Applicable Laws”), including all applicable export and re-export control laws and regulations, such as the Export Administration Regulations (“EAR”) maintained by the USA Department of Commerce, trade and economic sanctions maintained by the USA Treasury Department’s Office of Foreign Assets Control, and the International Traffic in Arms Regulations (“ITAR”) maintained by the USA Department of State. Specifically, and without limitation, you agree that you shall not, directly or indirectly, sell, export, re-export, transfer, divert, or otherwise dispose of any Services (including products derived from or based on such Services) to any destination, entity, or person prohibited by the laws or regulations of the USA, without obtaining prior authorization from the competent government authorities as required by those laws and regulations.
|
@@ -0,0 +1,23 @@
|
|
1
|
+
GeoLite2 databases
|
2
|
+
|
3
|
+
By downloading or using the "ip-location-db/geolite2-city" software library (published
|
4
|
+
to the Node Package Manager at https://www.npmjs.com/package/ip-location-db/geolite2-city,
|
5
|
+
thereafter the "Library"), you agree to be bound by the terms and
|
6
|
+
conditions of this License.
|
7
|
+
|
8
|
+
The Library redistributes copyrighted data (the "GeoLite2 Databases")
|
9
|
+
that is property of MaxMind, Inc. ("MaxMind"), and which use is bound
|
10
|
+
by the terms and conditions of the MaxMind's End User License Agreement
|
11
|
+
(the "Agreement"). You should have received an archived copy of the
|
12
|
+
Agreement with the Library (see GEOLITE2_EULA), but this License shall only
|
13
|
+
refer to the latest revision which can be found at
|
14
|
+
https://www.maxmind.com/en/geolite2/eula.
|
15
|
+
|
16
|
+
The present License incorporates all the terms and conditions of said
|
17
|
+
Agreement. Your use of the Library must honor those terms.
|
18
|
+
|
19
|
+
Additionally, (i) you may not redistribute the Library itself under
|
20
|
+
different terms and conditions, (ii) you may not remove or obscure any
|
21
|
+
copyright notice, (iii) you may not prevent the Library from updating
|
22
|
+
local copies of the GeoLite2 Databases to honor Do Not Sell requests
|
23
|
+
submitted to MaxMind.
|
@@ -0,0 +1,122 @@
|
|
1
|
+
# ip-location-db
|
2
|
+
|
3
|
+
|
4
|
+
| Database | Type | License | Update | ipv4 | ipv6 | ipv4-num | ipv6-num |
|
5
|
+
|---|---|---|---|---|---|---|---|
|
6
|
+
| ASN <br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/asn-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/asn-country) | Country | [CC0](https://creativecommons.org/publicdomain/zero/1.0/deed) | Daily | [asn-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/asn-country/asn-country-ipv4.csv) | [asn-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/asn-country/asn-country-ipv6.csv) |[asn-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/asn-country/asn-country-ipv4-num.csv) | [asn-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/asn-country/asn-country-ipv6-num.csv) |
|
7
|
+
| GeoFeed + ASN<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/geo-asn-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/geo-asn-country) | Country | [CC0](https://creativecommons.org/publicdomain/zero/1.0/deed) | Daily | [geo-asn-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country/geo-asn-country-ipv4.csv) | [geo-asn-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country/geo-asn-country-ipv6.csv) | [geo-asn-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country/geo-asn-country-ipv4-num.csv) | [geo-asn-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country/geo-asn-country-ipv6-num.csv) |
|
8
|
+
| GeoFeed + Whois + ASN<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/geo-whois-asn-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/geo-whois-asn-country)| Country | [CC0](https://creativecommons.org/publicdomain/zero/1.0/deed) | Daily | [geo-whois-asn-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv4.csv) | [geo-whois-asn-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv6.csv) | [geo-whois-asn-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv4-num.csv) | [geo-whois-asn-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv6-num.csv) |
|
9
|
+
| [iptoasn.com](https://iptoasn.com/)<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/iptoasn-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/iptoasn-country)| Country | [PDDL](https://opendatacommons.org/licenses/pddl/1.0/) by [iptoasn.com](https://iptoasn.com/)<sup>♣</sup> | Daily | [iptoasn-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country/iptoasn-country-ipv4.csv) | [iptoasn-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country/iptoasn-country-ipv6.csv) | [iptoasn-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country/iptoasn-country-ipv4-num.csv) | [iptoasn-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country/iptoasn-country-ipv6-num.csv) |
|
10
|
+
| [Webnet77](http://software77.net/geo-ip/)<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/webnet77-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/webnet77-country)| Country | [Donationware](http://en.wikipedia.org/wiki/Donationware) by [Webnet77](http://software77.net/geo-ip/)<sup>♠</sup> | Daily | [webnet77-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/webnet77-country/webnet77-country-ipv4.csv) | [webnet77-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/webnet77-country/webnet77-country-ipv6.csv) | [webnet77-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/webnet77-country/webnet77-country-ipv4-num.csv) | [webnet77-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/webnet77-country/webnet77-country-ipv6-num.csv) |
|
11
|
+
| [DB-IP](https://db-ip.com/) Lite<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/dbip-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/dbip-country)| Country | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) <br> by [DB-IP](https://db-ip.com/)<sup>★</sup> | Monthly | [dbip-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country/dbip-country-ipv4.csv) | [dbip-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country/dbip-country-ipv6.csv) | [dbip-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country/dbip-country-ipv4-num.csv) | [dbip-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country/dbip-country-ipv6-num.csv) |
|
12
|
+
| [DB-IP](https://db-ip.com/) Lite<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/dbip-city?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/dbip-city)| City | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) <br> by [DB-IP](https://db-ip.com/)<sup>★</sup> | Monthly | [dbip-city-ipv4.csv.gz](https://github.com/sapics/ip-location-db/raw/master/dbip-city/dbip-city-ipv4.csv.gz) | [dbip-city-ipv6.csv.gz](https://github.com/sapics/ip-location-db/raw/master/dbip-city/dbip-city-ipv6.csv.gz) | [dbip-city-ipv4-num.csv.gz](https://github.com/sapics/ip-location-db/raw/master/dbip-city/dbip-city-ipv4-num.csv.gz) | [dbip-city-ipv6-num.csv.gz](https://github.com/sapics/ip-location-db/raw/master/dbip-city/dbip-city-ipv6-num.csv.gz) |
|
13
|
+
| [GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/)<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/geolite2-country?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/geolite2-country)| Country | GeoLite2 License by [MaxMind](https://www.maxmind.com/)<sup>♥</sup> | Weekly | [geolite2-country-ipv4.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country/geolite2-country-ipv4.csv) | [geolite2-country-ipv6.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country/geolite2-country-ipv6.csv) | [geolite2-country-ipv4-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country/geolite2-country-ipv4-num.csv) | [geolite2-country-ipv6-num.csv](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country/geolite2-country-ipv6-num.csv) |
|
14
|
+
| [GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/)<br>[![npm version](https://img.shields.io/npm/v/@ip-location-db/geolite2-city?color=success&style=flat-square&label=%20)](https://www.npmjs.com/package/@ip-location-db/geolite2-city)| City | GeoLite2 License by [MaxMind](https://www.maxmind.com/)<sup>♥</sup> | Weekly | [geolite2-city-ipv4.csv.gz](https://github.com/sapics/ip-location-db/raw/master/geolite2-city/geolite2-city-ipv4.csv.gz) | [geolite2-city-ipv6.csv.gz](https://github.com/sapics/ip-location-db/raw/master/geolite2-city/geolite2-city-ipv6.csv.gz) | [geolite2-city-ipv4-num.csv.gz](https://github.com/sapics/ip-location-db/raw/master/geolite2-city/geolite2-city-ipv4-num.csv.gz) | [geolite2-city-ipv6-num.csv.gz](https://github.com/sapics/ip-location-db/raw/master/geolite2-city/geolite2-city-ipv6-num.csv.gz) |
|
15
|
+
|
16
|
+
## CSV format
|
17
|
+
|
18
|
+
This project provides ip to location database in csv format.
|
19
|
+
|
20
|
+
#### Country csv format
|
21
|
+
`ip_range_start, ip_range_end, country_code`
|
22
|
+
|
23
|
+
#### City csv format
|
24
|
+
`ip_range_start, ip_range_end, country_code, state1, state2, city, postcode, latitude, longitude, timezone`
|
25
|
+
|
26
|
+
##### country_code
|
27
|
+
`country_code` is the two-letter code defined in [ISO 3166-1 alpha-2](https://wikipedia.org/wiki/ISO_3166-1_alpha-2).
|
28
|
+
You can get the `country name, capital, continent, currency, languages, etc.` from the `country_code` by [Countries Database](https://github.com/annexare/Countries) in JSON, CSV, SQL format.
|
29
|
+
|
30
|
+
##### ip address format
|
31
|
+
`ip_range_start` and `ip_range_end` is ip address.
|
32
|
+
- `ipv4`: The csv line `1.0.0.0,1.0.0.255,AU` means that ip addresses between `1.0.0.0` and `1.0.0.255` inclusive are `AU` country_code.
|
33
|
+
- `ipv4-num`: The csv line `16777216,16777471,AU` means that ip addresses between `1.0.0.0` and `1.0.0.255` inclusive are `AU` country_code. (`16777216` is the number format of the ip address `1.0.0.0`)
|
34
|
+
- `ipv6`: The csv line `2001:200::,2001:200:ffff:ffff:ffff:ffff:ffff:ffff,JP` means that ip addresses between `2001:200::` and `2001:200:ffff:ffff:ffff:ffff:ffff:ffff` inclusive are `JP` country_code.
|
35
|
+
- `ipv6-num`: The csv line `42540528726795050063891204319802818560,42540528806023212578155541913346768895,JP` means that ip addresses between `2001:200::` and `2001:200:ffff:ffff:ffff:ffff:ffff:ffff` inclusive are `JP` country_code. (`42540528726795050063891204319802818560` is the number format of the ip address `2001:200::`)
|
36
|
+
|
37
|
+
Please be careful when using `ipv6` and `ipv6-num` in your program. The numerical value exceeds 32bit unsigned integer, so you need to use 64bit unsigned integer.
|
38
|
+
|
39
|
+
|
40
|
+
## Databases referenced in this project
|
41
|
+
|
42
|
+
When merging multiple database, set the front database above back one.
|
43
|
+
(ex. geo-whois-asn-...csv is created by merging 3 database with GeoFeed > Whois > ASN.)
|
44
|
+
|
45
|
+
|
46
|
+
### ASN database [Update: Daily]
|
47
|
+
|
48
|
+
Created by merging 5 RIP ([afrinic](https://afrinic.net), [apnic](https://www.apnic.net), [arin](https://www.arin.net), [lacnic](https://www.lacnic.net), [ripe ncc](https://www.ripe.net)) IP-ASN database.
|
49
|
+
[ASN (Autonomous System Number)](https://wikipedia.org/wiki/Autonomous_system_(Internet)) is a unique number assigned to an Autonomous System (AS) by the [IANA](https://www.iana.org/).
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
### GeoFeed database [Update: Daily]
|
54
|
+
|
55
|
+
Created by merging GeoFeed database from [OpenGeoFeed](https://opengeofeed.org/).
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
### Whois database [Update: Daily]
|
60
|
+
|
61
|
+
Created by merging 5 RIP provided WHOIS database.
|
62
|
+
There are some inconsistencies between 5 RIP.
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
### [iptoasn.com](https://iptoasn.com/)<sup>♣</sup> database [Update: Hourly]
|
67
|
+
|
68
|
+
You can download hourly updated database in tsv format from [original site](https://iptoasn.com/).
|
69
|
+
This is licensed under a [Public Domain Dedication and Licence v1.0](https://opendatacommons.org/licenses/pddl/1.0/).
|
70
|
+
There are some differences from above `ASN` database.
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
### [Webnet77](https://software77.net/geo-ip/)<sup>♠</sup> database [Update: Daily]
|
75
|
+
|
76
|
+
This database is donationware, please read [the license](https://software77.net/geo-ip/?license) carefully.<br>
|
77
|
+
We **recommend donating to [webnet77](https://software77.net/geo-ip/), if you use this database especially for commercial use**.
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
### [DB-IP](https://db-ip.com/)<sup>★</sup> database [Update: Monthly]
|
82
|
+
|
83
|
+
You could download and read the license from [ip-to-country-lite](https://db-ip.com/db/download/ip-to-country-lite) or [ip-to-city-lite](https://db-ip.com/db/download/ip-to-city-lite).
|
84
|
+
These database are licensed under a [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/),
|
85
|
+
so, **you must create attribution to [DB-IP.com](https://db-ip.com/) for using this database**.<br>
|
86
|
+
In the case of a web application, you must include a link back to DB-IP.com on pages that display or use results from the database. You may do it by pasting the HTML code snippet into your code: `<a href='https://db-ip.com/'>IP Geolocation by DB-IP</a>`.<br>
|
87
|
+
If you need better accuracy or no attribution or daily updates, please use the [Commercial Version of db-ip](https://db-ip.com/db/ip-to-country).
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
### [GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/)<sup>♥</sup> database [Update: Weekly]
|
92
|
+
|
93
|
+
GeoLite2 is created by [MaxMind](https://www.maxmind.com).
|
94
|
+
The license of GeoLite2 is written in GEOLITE2_LICENSE and End User License Agreement (EULA) is written in GEOLITE2_EULA.
|
95
|
+
**Please carefully read the GEOLITE2_LICENSE and GEOLITE2_EULA files, if you use these database.**
|
96
|
+
This package comes with certain restrictions and obligations, most notably:
|
97
|
+
- You cannot prevent the library from updating the databases.
|
98
|
+
- You cannot use the GeoLite2 data:
|
99
|
+
- for FCRA purposes,
|
100
|
+
- to identify specific households or individuals.
|
101
|
+
|
102
|
+
If you need better accuracy, please use the commercial version [GeoIp2](https://www.maxmind.com/en/geoip2-databases).
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
## Which database is recommended to use?
|
107
|
+
|
108
|
+
Of course, it depends on your use case.
|
109
|
+
But the above list is too long, thus, we write down the recommendation.
|
110
|
+
|
111
|
+
- If you need postcode or timezone, `geolite2-city` is the one.
|
112
|
+
- If you need city data with CC-BY License, `dbip-city` is the one.
|
113
|
+
- If you need country database with Public Domain, we recommend `geo-whois-asn-country` database.
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
## License
|
118
|
+
|
119
|
+
License depends on the database which you use. Please read carefully each database license.
|
120
|
+
You can use [PDDL](https://opendatacommons.org/licenses/pddl/1.0/) (ODC Public Domain Dedication and Licence) or [CC0](https://creativecommons.org/publicdomain/zero/1.0/deed) (Creative Commons Zero) licensed database without attribution for any purpose.
|
121
|
+
|
122
|
+
We are glad if you make a link to [sapics/ip-location-db](https://github.com/sapics/ip-location-db), or give us a star to [the github repository](https://github.com/sapics/ip-location-db).
|
Binary file
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"name": "@ip-location-db/geolite2-city",
|
3
|
+
"version": "2.2.2020121618",
|
4
|
+
"description": "Ip to location database",
|
5
|
+
"keywords": [
|
6
|
+
"ip",
|
7
|
+
"ip-location",
|
8
|
+
"ip-location-db",
|
9
|
+
"ipv4",
|
10
|
+
"ipv6",
|
11
|
+
"location",
|
12
|
+
"city",
|
13
|
+
"country"
|
14
|
+
],
|
15
|
+
"license": "SEE LICENSE IN GEOLITE2_LICENSE AND GEOLITE2_EULA",
|
16
|
+
"author": "sapics",
|
17
|
+
"publishConfig": {
|
18
|
+
"access": "public"
|
19
|
+
},
|
20
|
+
"repository": {
|
21
|
+
"type": "git",
|
22
|
+
"url": "https://github.com/sapics/ip-location-db"
|
23
|
+
}
|
24
|
+
}
|
metadata
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ip_location_db
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.2020121618
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Patrice Lebel
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-12-21 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: IpLocationDb
|
14
|
+
email:
|
15
|
+
- patleb@users.noreply.github.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- README.md
|
21
|
+
- WEBNET77-LICENSE
|
22
|
+
- geolite2-city/GEOLITE2_EULA
|
23
|
+
- geolite2-city/GEOLITE2_LICENSE
|
24
|
+
- geolite2-city/README.md
|
25
|
+
- geolite2-city/geolite2-city-ipv4.csv.gz
|
26
|
+
- geolite2-city/package.json
|
27
|
+
- lib/ip_location_db.rb
|
28
|
+
homepage: https://github.com/patleb/ip-location-db
|
29
|
+
licenses:
|
30
|
+
- Nonstandard
|
31
|
+
metadata: {}
|
32
|
+
post_install_message:
|
33
|
+
rdoc_options: []
|
34
|
+
require_paths:
|
35
|
+
- lib
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
requirements: []
|
47
|
+
rubygems_version: 3.0.3
|
48
|
+
signing_key:
|
49
|
+
specification_version: 4
|
50
|
+
summary: IpLocationDb
|
51
|
+
test_files: []
|