mmdblookup Author: chenryn Available: 8.24+ Purpose MaxMindDB is the new file format for storing information about IP addresses in a highly optimized, flexible database format. GeoIP2 Databases are available in the MaxMind DB format. ...
基于这样的情况使用流解决 不多说,上代码 package com.whcczk.model.utils; import cn.hutool.core.u...
nginxapachemaxmind-dbmaxmindmaxmind-geoipmaxmind-databasemaxminddb UpdatedNov 29, 2024 Python Open & Free IP to ASN/Internet Provider Database ipinfonetworkingbgpnetworkip-addressipmaxmind-dbgeoipasnip-lookupip-geolocationmaxmind-databasemmdbasn-lookupip-geolocation-apiabuse-reporting ...
Customize content and comply with regulations using in-depth IP address data. Prevent fraud and chargebacks, manage cyber risk, and flag proxy users.
There are no differences in API between IPv4 and IPv6. const lookup = await maxmind.open('/path/to/GeoLite2.mmdb'); const location = lookup.get('2001:4860:0:1001::3004:ef68'); Options maxmind.open(filepath, [options]) filepath: <string> Path to the binary mmdb database file....
public static synchronized DatabaseReader getDatabaseReader() { if (databaseReader!=null) return databaseReader; try { File f = new File(MAXMIND_DB_PATH); databaseReader = new DatabaseReader.Builder(f).build(); } catch (IOException e) { lookupFailed = true; log.debug("MaxMind geo lo...
SetRemoteHostInfoAction.ipLookupInDatabase(...) session.setProperty("sessionAdminSubDiv2", cityResponse.getSubdivisions().get(1).getGeoNameId()); String isp = databaseReader.isp(InetAddress.getByName(remoteAddr)).getIsp(); if (isp != null) { session.setProperty("sessionIsp", isp); com...
To use this API, you must create a new MaxMind::GeoIP2::Reader object with the path to the database file as the first argument to the constructor. You may then call the method corresponding to the database you are using.If the lookup succeeds, the method call will return a model ...
[英]Closes the lookup service.[中]关闭查找服务。 代码示例 代码示例来源:origin: i2p/i2p.i2p synchronized void _check_mtime() { try { if ((dboptions & GEOIP_CHECK_CACHE) != 0) { long t = databaseFile.lastModified(); if (t != mtime) { /* GeoIP Database file updated */ /* re...
database_type 这是一个字符串,指示与IP地址相关联的每个数据记录的结构。这些结构的实际定义由数据库创建者决定 以“GeoIP”开头的名字是保留给MaxMind使用的标记,“GeoIP”也是一个保留的标记 languages 一个字符串数组,每个字符串都是一个区域代码。给定的记录可能包含已定位到某些或所有这些区域的数据项。记录不...