Socket
Socket
Sign inDemoInstall

ip-location-db

Package Overview
Dependencies
0
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ip-location-db

Ip to location database


Version published
Weekly downloads
12
increased by33.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

ip-location-db NPM version

This project provides ip to location database in csv.
Country csv format: ip_range_start,ip_range_end,country_code
City csv format: ip_range_start,ip_range_end,country_code,state,city,latitude,longitude
country_code is the two-letter code defined in ISO 3166-1 alpha-2. You can get the country name, capital, continent, currency, languages, etc. from the country_code by Countries Database.

DatabaseTypeLicenseUpdateipv4ipv6
IP-ASNCountryPublic DomainDailyasn-ipv4-country.csvasn-ipv6-country.csv
GeoFeed + IP-ASNCountryPublic DomainDailygeo-asn-ipv4-country.csvgeo-asn-ipv6-country.csv
iptoasn.comCountryPDDL by iptoasn.comDailyiptoasn-ipv4-country.csviptoasn-ipv6-country.csv
Webnet77CountryDONATIONWARE by Webnet77Dailywebnet77-ipv4-country.csvwebnet77-ipv6-country.csv
DB-IPCountryCC BY 4.0 by DB-IPMonthlydbip-ipv4-country.csvdbip-ipv6-country.csv
DB-IP + IP-ASNCountryCC BY 4.0 by DB-IPDailydbip-asn-ipv4-country.csvdbip-asn-ipv6-country.csv
DB-IPCityCC BY 4.0 by DB-IPMonthlydbip-ipv4-city.csv.gzdbip-ipv6-city.csv.gz

IP-ASN database [Update: Daily]

Created by merging 5 RIP (afrinic, apnic, arin, lacnic, ripe ncc) IP-ASN database. ASN (Autonomous System Number) is a unique number assigned to an Autonomous System (AS) by the IANA.

GeoFeed database [Update: Daily]

Created by merging GeoFeed database from OpenGeoFeed and geofeeds.lacnic.net.

iptoasn.com database [Update: Hourly]

You can download hourly updated database in tsv format from original site. This is licensed under a Public Domain Dedication and Licence v1.0. There are some differences from above IP-ASN database.

Webnet77 database [Update: Daily]

Created by webnet77 geo-ip country database. This database is donationware, please read the license carefully.
We recommend donating to webnet77, if you use this database especially for commercial use.

DB-IP database [Update: Monthly]

Created by DB-IP database which you could download and read the license from ip-to-country-lite or ip-to-city-lite. These are licensed under a Creative Commons Attribution 4.0 International License, so, you must create attribution to DB-IP.com for using this database.
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>.
If you need better accuracy, no attribution or daily updates, please use the Commercial Version of db-ip.

Of course, it depends on your use case. But the above list is too long, thus, we write down the recommendation.

  • If you need city or geo-location data, DB-IP is the one.
  • If you need Public Domain country database, GeoFeed + IP-ASN looks best.
  • If you need more precise country database, DB-IP+ IP-ASN looks best.

License

Files in dist/* have their own license as described above.
Files other than dist/* are under MIT License by sapics/ip-location-db.
When you write the attribution to this project, we are glad if you make a link to sapics/ip-location-db.

Keywords

FAQs

Last updated on 26 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc