All Projects → jarod → Qqwry Java

jarod / Qqwry Java

Licence: mit
A java library to read QQWry IP database. (纯真IP地址数据库)

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Qqwry Java

Crips
IP Tools To quickly get information about IP Address's, Web Pages and DNS records.
Stars: ✭ 272 (+110.85%)
Mutual labels:  geoip
Piwik Intranetgeoip
Piwik plugin to locate all locale data of a user based on the IP address/subnetwork (country, region, city, latitude, longitude, provider, ...)
Stars: ✭ 21 (-83.72%)
Mutual labels:  geoip
Php
Official PHP library for IPinfo (IP geolocation and other types of IP data)
Stars: ✭ 83 (-35.66%)
Mutual labels:  geoip
Maxminddb Golang
MaxMind DB Reader for Go
Stars: ✭ 319 (+147.29%)
Mutual labels:  geoip
Telize
High performance JSON IP and GeoIP REST API (IP Geolocation)
Stars: ✭ 774 (+500%)
Mutual labels:  geoip
Postfwd Anti Geoip Spam Plugin
Postfwd plugin for blocking international spam botnets based on geographical location of IP addresses used to login to postfix via sasl.
Stars: ✭ 40 (-68.99%)
Mutual labels:  geoip
Beeping
HTTP Monitoring via API - Measure the performance of your servers
Stars: ✭ 267 (+106.98%)
Mutual labels:  geoip
Ngx http ipdb module
Another nginx http geoip module by ipdb
Stars: ✭ 104 (-19.38%)
Mutual labels:  geoip
Sypex geo
Sypex Geo IP database adapter for Ruby.
Stars: ✭ 10 (-92.25%)
Mutual labels:  geoip
Ip2geo
Импортер ipgeo-данных в файлы, понятные для nginx geoip module, с поддержкой кодов регионов РФ.
Stars: ✭ 59 (-54.26%)
Mutual labels:  geoip
Mmdb china ip list
Geoip MaxMind Database for china ip list! This is also an example of generating MaxMind Database!
Stars: ✭ 424 (+228.68%)
Mutual labels:  geoip
Nali
An offline tool for querying IP geographic information and CDN provider.一个查询IP地理信息和CDN服务提供商的离线终端工具.
Stars: ✭ 535 (+314.73%)
Mutual labels:  geoip
Th3inspector
Th3Inspector 🕵️ Best Tool For Information Gathering 🔎
Stars: ✭ 1,041 (+706.98%)
Mutual labels:  geoip
V2ray Rules Dat
🦄 🎃 👻 V2Ray 路由规则文件加强版,可代替 V2Ray 官方 geoip.dat 和 geosite.dat,兼容 Shadowsocks-windows、Xray-core、Trojan-Go 和 leaf。Enhanced edition of V2Ray rules dat files, compatible with Xray-core, Shadowsocks-windows, Trojan-Go and leaf.
Stars: ✭ 6,550 (+4977.52%)
Mutual labels:  geoip
Country Ip Blocks
CIDR country-level IP data, straight from the Regional Internet Registries, updated hourly.
Stars: ✭ 100 (-22.48%)
Mutual labels:  geoip
Fccurrentlocationgeocoder
iOS Geocoder for forward geocode and reverse geocode user's current location using a block-based syntax. 📍🌍
Stars: ✭ 268 (+107.75%)
Mutual labels:  geoip
Serverless Geoip
Use MaxMind GeoLite2 database with AWS Lambda
Stars: ✭ 33 (-74.42%)
Mutual labels:  geoip
Fcipaddressgeocoder
iOS Geocoder for geocode device IP Address location using GeoIP service(s) and a block-based syntax. 💻🌍
Stars: ✭ 114 (-11.63%)
Mutual labels:  geoip
Geo ip
Retreive the geolocation of an IP address based on the ipinfodb.com webservice
Stars: ✭ 103 (-20.16%)
Mutual labels:  geoip
Geoip2 Golang
Unofficial MaxMind GeoIP2 Reader for Go
Stars: ✭ 1,074 (+732.56%)
Mutual labels:  geoip

qqwry-java

Build Status Javadocs

usage:

Code sample:

QQWry qqwry = new QQWry(); // load qqwry.dat from classpath

QQWry qqwry = new QQWry(Paths.get("path/to/qqwry.dat")); // load qqwry.dat from java.nio.file.Path

byte[] data = Files.readAllBytes(Paths.get("path/to/qqwry.dat"));
QQWry qqwry = new QQWry(data); // create QQWry with provided data

String dbVer = qqwry.getDatabaseVersion();
System.out.printf("qqwry.dat version=%s", dbVer);
// qqwry.dat version=2020.9.10

String myIP = "127.0.0.1";
IPZone ipzone = qqwry.findIP(myIP);
System.out.printf("%s, %s", ipzone.getMainInfo(), ipzone.getSubInfo());
// IANA, 保留地址用于本地回送

Gradle:

dependencies {
   api (
     "com.github.jarod:qqwry-java:0.8.+",
   )
}

Maven:

<dependency>
  <groupId>com.github.jarod</groupId>
  <artifactId>qqwry-java</artifactId>
  <version>0.8.0</version>
</dependency>

build:

# OPTIONAL To embed qqwry.dat in the jar file, copy qqwry.dat to src/main/resources/qqwry.dat
# jar file will out put as ./build/lib/qqwry-java-X.X.X.jar
./gradlew jar
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].