maxmind

Call reference for country in GeoLite2 using PHP

余生长醉 提交于 2020-06-08 06:24:42
问题 I'm trying to use the free MaxMind GeoLite2 code to be able to determine the country of a specific IP address. I am using the Composer-free method that was posted here: Get a localized name of the users city via Maxmind GeoLite2 Free I'm sure its incredibly simple, but I can't figure out how to actually pass an IP address and have it return the country. After the $reader = new Reader... line I have $place = $reader->country('##.###.##.###'); (where the #'s are actual IP address numbers) and

What's the size of the MaxMind MMDB binary GeoIP2 databases?

本秂侑毒 提交于 2020-06-01 02:33:41
问题 What's the size on file system of the MaxMind GeoIP2 databases in binary format? I'm asking about both the country and the city level db. Unfortunately I can't find this information anywhere. I know the file size will change over time but I need to roughly estimate the storage requirements. Also, does anybody know the memory footprint on a minimal console application that resolve a single ip? 回答1: The current City database is approximately 122 MB. The memory footprint would depend on the

What's the size of the MaxMind MMDB binary GeoIP2 databases?

荒凉一梦 提交于 2020-06-01 02:33:17
问题 What's the size on file system of the MaxMind GeoIP2 databases in binary format? I'm asking about both the country and the city level db. Unfortunately I can't find this information anywhere. I know the file size will change over time but I need to roughly estimate the storage requirements. Also, does anybody know the memory footprint on a minimal console application that resolve a single ip? 回答1: The current City database is approximately 122 MB. The memory footprint would depend on the

Opening Maxmind db in Nodejs

Deadly 提交于 2020-03-27 07:23:18
问题 I am trying to open maxmind opensource database in my nodejs application. My application recieves a list of ip addressses from a java application. Application then returns the latitude and longitude corresponding to each ip. I have succesfully done this synchronously, but i want to do it asynchronously to make things a little faster. I have written a code for this, but the application gets killed everytime. I am guessing that the reason might be simultaneous opening of the same database(I

Converting GeoLite2 data for use with xtables geoip

蹲街弑〆低调 提交于 2020-03-23 08:20:13
问题 My apologies if this has been covered here or elsewhere. I read the postings back to 2016. My debian system stopped updating the xtables geoip database. On investigation it developed that this is because Maxmind dropped support for legacy GeoIP databases. I have got as far as installing and configuring Maxmind's geoipupdate program for the GeoLite2 database and scheduling it weekly in crontab. At this point I am stumped. geoipupdate returns a .mmdb database. This is not usable by the debian

MaxMind: Correlating files for lat/lng?

喜你入骨 提交于 2020-01-16 18:35:45
问题 I've downloaded the City database from MaxMind found here: http://geolite.maxmind.com/download/geoip/database/GeoLite2-City-CSV.zip which contains no latitude/longitude information. that information seems be in a different file: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity_CSV/GeoLiteCity-latest.zip however, when attempting to correlate the two I find that the subdivision codes do not match. for example the first file contains the line: geoname_id,locale_code,continent_code

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

做~自己de王妃 提交于 2020-01-10 00:28:45
问题 I wanted small tutorial how to detect an IP's city or country. I heard that MaxMind GeoIp was good for it. 回答1: 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

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

有些话、适合烂在心里 提交于 2020-01-10 00:27:51
问题 I wanted small tutorial how to detect an IP's city or country. I heard that MaxMind GeoIp was good for it. 回答1: 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

IP address for testing MaxMind GeoIP DB

谁说我不能喝 提交于 2020-01-03 14:27:08
问题 I'm experimenting with the MaxMind GeoIP (lite) DB. Part of this is trying to see if I can make solid unittests. For unittests I'd need to have some IP addresses I can rely on sending the same information always. Most IP addresses will move around, and I'm assuming they're even more fluid in a GeoIP database, but are there some IP addresses I can reasonably rely on (for whatever reason)? 回答1: Martijn, You can use the Pingdom probe servers IP address as reference. It is physical server running

How to Convert a Maxmind .MMDB to .DAT?

为君一笑 提交于 2020-01-02 00:14:07
问题 How to convert MaxMinds MMDB GeoIP to DAT format so that I can use with modsecurity+Apache. Modsecurity supports only DAT format. 回答1: 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 回答2: The Legacy GeoIP builds (.dat) are not going