maxmind

Get a localized name of the users city via Maxmind GeoLite2 Free

怎甘沉沦 提交于 2019-12-08 05:29:57
问题 i want to show the german name of the users city. Is it possible with the free Version of Maxmind Geoip? I did not find a way to open the GeoLite2-City.mmdb or GeoLiteCity.dat, to see which cities are listed, for building my own translation service. How can i open them? 回答1: The GeoIP Legacy database does not include localized names, but the GeoIP2 (or GeoLite2) database does. You may access the localized name as follows: <?php require_once 'vendor/autoload.php'; use GeoIp2\Database\Reader;

GeoLite2 database gets corrupt when added to jar

醉酒当歌 提交于 2019-12-07 22:39:18
问题 I'm trying to include one of the Maxmind databases in my Java application. The database I am using is the latest version of GeoLite2-City.mmdb . When I drop the database file into the project ( src/main/resources/GeoLite2-City.mmdb ) and I run the project I am able to use the database via com.maxmind.geoip2.DatabaseReader and perform lookups of IP addresses. However once I compile the project and create a jar file containing the database I am unable to read the database in the file, I get the

GeoLite2 database gets corrupt when added to jar

我与影子孤独终老i 提交于 2019-12-06 05:33:28
I'm trying to include one of the Maxmind databases in my Java application. The database I am using is the latest version of GeoLite2-City.mmdb . When I drop the database file into the project ( src/main/resources/GeoLite2-City.mmdb ) and I run the project I am able to use the database via com.maxmind.geoip2.DatabaseReader and perform lookups of IP addresses. However once I compile the project and create a jar file containing the database I am unable to read the database in the file, I get the exception: com.maxmind.db.InvalidDatabaseException: Could not find a MaxMind DB metadata marker in

Querying GeoLite2 Country CSV in SQL

不想你离开。 提交于 2019-12-05 03:30:28
问题 Does anyone know how to look up an IP4 address from MaxMind's GeoLite2 Country CSV using SQL? I have been using MaxMind's free GeoIP data for many years, and would like to upgrade to their GeoLite2 data. I have the blocks and locations data loaded into MySQL tables, but am not sure how to determine the address range that an IP4 address falls into. The old format had a start/end number for each block; the new format only seems to have a start number. I have already hunted through the MaxMind

How to Convert a Maxmind .MMDB to .DAT?

假装没事ソ 提交于 2019-12-05 00:14:21
How to convert MaxMinds MMDB GeoIP to DAT format so that I can use with modsecurity+Apache. Modsecurity supports only DAT format. As of February 2019, the following Python script is the best option for converting GeoIP2 MMDB format to legacy .dat format: https://github.com/sherpya/geolite2legacy Using this script, somebody has done the conversion and made the resulting .dat files available for download: https://www.miyuru.lk/geoiplegacy The Legacy GeoIP builds (.dat) are not going away in the near future. If they do ever go away, you could build off of the .dat build program that Debian uses

Exception while accessing maxmind's GeoIP-country.mmdb database through hive

半腔热情 提交于 2019-12-04 06:10:26
问题 I have a custom hive UDF to access Maxmind's GeoIP-country.mmdb database that is added to the hive resources through "add file pqr.mmdb". The compiled UDF is added as "add jar abc.jar" When I run a hive query, behind the scenes the java class tries to access the data in geo database and fails by throwing the following exception. Error: java.lang.ClassNotFoundException: com.maxmind.db.Reader$FileMode at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run

Exception while accessing maxmind's GeoIP-country.mmdb database through hive

一个人想着一个人 提交于 2019-12-02 10:09:42
I have a custom hive UDF to access Maxmind's GeoIP-country.mmdb database that is added to the hive resources through "add file pqr.mmdb". The compiled UDF is added as "add jar abc.jar" When I run a hive query, behind the scenes the java class tries to access the data in geo database and fails by throwing the following exception. Error: java.lang.ClassNotFoundException: com.maxmind.db.Reader$FileMode at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net

How to detect country and city using PHP, GeoIP and Maxmind?

房东的猫 提交于 2019-11-29 02:44:34
I wanted small tutorial how to detect an IP's city or country. I heard that MaxMind GeoIp was good for it. T.Todua Method 1: Using Online services http://www.geoplugin.net/php.gp?ip=123.123.123.123 http://ip-api.com/php/123.123.123.123 http://ipinfo.io/123.123.123.123 http://api.codehelper.io/ips/?callback=codehelper_ip_callback&ip=123.123.123.123 Method 2: Using Maxmind GeoIP_V2 How I did it: let's say, create a folder named " My_Folder " and inside it: create folder GeoIp2 and put in it content of this "SRC" folder ( download ). put MaxMind folder ( download , from "SRC" folder). place i.e.

Best node.js module for finding location? [closed]

那年仲夏 提交于 2019-11-28 15:58:22
I had found couple of node.js modules for finding the information about client location and network using ip address. Requirements: Location - country, city, state, latitude, longitude etc. Network - Internet service Provider, Internet connection type and internet speed etc. Data Accuracy - maximum possibility. Note: Looking for server side solution. The above mentioned modules uses maxmind data . And i had read about the maxmind data accuracy as well. I am little confused to choose the above node.js modules and i like to know is there any better node.js frameworks available for finding

Best IP to Country Database [closed]

爷,独闯天下 提交于 2019-11-28 15:28:29
We've got a requirement in a couple of our systems to detect a user's country based on their IP address. We'd prefer to use a database rather than a Web Service (to prevent issues with downtime/network access to an externally hosted service) so I'm looking for recommendations, anyone got any good or bad stories of the various IP to Country databases? What I've found from google: Paid Maxmind - $50, then $12 a month, site license IP2Location - $50 a year, single server software77 (Donationware) Free Maxmind Geolite ip2nation Any information on how the free ones compare to the paid ones would be