Original link: http://blog.csdn.net/johnnycode/article/details/42028841MaxMind GeoIP2 Services can identify the location and other characteristics of Internet users, including personalized content, fraud detection, advertising targeting, website traffic analysis, enforcement, geo-targeting, geo-fencing (geo-fencing), and digital rights management. Currently using GeoIP more is to cooperate with Nginx or Apache server for log analysis to obtain the geo
Use GeoIP2 to analyze visitors' IP addresses to obtain geographical location information.
Link: http://blog.csdn.net/johnnycode/article/details/42028841
MaxMind GeoIP2 is widely used to identify locations and other features of Internet users, this includes customized content, fraud detection, advertising targeting, website traffic analysis, execution rules, geogr
The following is the Nginx installation configuration
(1) The LIBMAXMINDDB dependent library needs to be installed first. LIBMAXMINDDB is a C library file that reads Maxmind DB files, including GeoIP2 data files under Maxmind.
$ cd/usr/local/src$ git clone--recursive https://github.com/maxmind/libmaxminddb$ CD LIBMAX
Using MaxMind to locate visitors by IP address sometimes you need to know the country from which your site visitors come from-for example, if you are planning to execute an advertising plan for a geographical region. This document introduces this method.
Sometimes you need to know the country in which your site visitors come from-for example, if you are planning to launch an advertising program for a geographical region. This is where a tool like Max
Use MaxMind to locate visitors based on IP addresses. Sometimes you need to know the country in which your site visitors come from-for example, if you are planning to launch an advertising program for a geographical region. This document introduces this method. Sometimes you need to know the country in which your site visitors come from-for example, if you are planning to launch an advertising program for a geographical region. This document introduce
Sometimes you need to know the country from which your site visitors come from-for example, if you are planning to perform the advertising program for the geographical region. This document introduces this method first. Sometimes you need to know which country your site visitors come from-for example, false
Sometimes you need to know the country from which your site visitors come from-for example, if you are planning to perform the advertising program for the geographical region. This document i
Sometimes you need to know the country in which your site visitors come from-for example, if you are planning to launch an advertising program for a geographical region. This document introduces this method.Sometimes you need to know the country in which your site visitors come from-for example, if you are planning to launch an advertising program for a geographical region. This is where a tool like MaxMinds GeoIP can show its skills-it allows you to easily obtain the exact geographic location i
Sometimes you need to know which country your site visitors come from-for example, if you're planning to implement an ad plan for a geographic area. This method is described in this article.
Sometimes you need to know which country your site visitors come from-for example, if you're planning to implement an ad plan for a geographic area. This is where tools like Maxmind's GeoIP are used-it allows you to easily get their exact geolocation information from the visitor's IP address.
Sometimes you need to know which country your site visitors come from-for example, if you're planning to implement an ad plan for a geographic area. This method is described in this article.
Sometimes you need to know which country your site visitors come from-for example, if you're planning to implement an ad plan for a geographic area. This is where tools like Maxminds GeoIP are used-it allows you to easily get their exact geolocation information from the visitor's IP address.
Sometimes you need to know which country your site visitor is from--if you're planning to implement an advertising plan for your geographic area. This method is described in this article.
Sometimes you need to know which country your site visitor is from--if you're planning to implement an advertising plan for your geographic area. This is where the tools like Maxmind's GeoIP--it allows you to easily get the exact location information from the visitor's IP address.
Sometimes you need to know which country your site visitor is from--if you're planning to implement an advertising plan for your geographic area. This method is described in this article.
Sometimes you need to know which country your site visitor is from--if you're planning to implement an advertising plan for your geographic area. This is where the tools like Maxmind's GeoIP--it allows you to easily get the exact location information from the visitor's IP address.
The mod_geoip2 module for Nginx1. About GEOIPOfficial Website: http://www.maxmind.com/zh/homeWith MaxMind's GeoIP product, you can identify the locations, organizations, connection speeds, and user types of network visitors.GeoIP database is the most common and accurate IP location database.This article describes how to install and use Geoip2 in combination with Nginx. For more information about how to use Geoip (Generation 1), see the official websit
important indicators, such as index bulk reject number.
Second, enhance ease of useEnhancing the ease of use of services is to give users a better user experience and reduce user complaints. Elk Performance Optimization is on the one hand, but it is far from enough that the reality we encounter is that users complain more in other ways, as follows:
1,
users first complained that IP resolution to the region, ISP information is not allowed, there is no reference significance.
such as for the
https://pypi.python.org/pypi/GeoIP/RequirementsPython 2.5+ or 3.3+GeoIP C Library 1.4.7 or greaterInstallationWith Pip:$ pip Install GeoIPFrom Source:$ python setup.py build$ python setup.py installDownload and install PythonA very important step is that we are using make altinstall. If you use make install, you will see that there are two different versions of Python in the system in the/usr/bin/directory. This will lead to a lot of problems and is not easy to handle.View Sourceprint?wget http:
1. Based on IP access to the location of the user's ideas:Query the database by IP address, then extract the corresponding geographic information from the database
2. Download the Maxmind database download addresshttps://dev.maxmind.com/geoip/geoip2/geolite2/It has the binary format and CSV format, which can be downloaded first:
geolite2-city.mmdb.gz
geolite2-country.mmdb.gz
geolite2-city-csv_20180306.zip
G
This is a creation in
Article, where the information may have evolved or changed. # # # RESTful interface * * Request url:**-' https://api.turboes.com/Tbsapi/v1/ip2addr?ip=219.140.227.235 ' * * Request method: **-GET * * Parameters: * * | parameter name | Type | description | |:-----|:-----|-----| | IP |url-qurey-string | ' Optional ' to query the IP address, if not pass this represents the current IP | * * Return Example * * "' {" code ": 1," data ": {" Country ":" China "," province ":" Hubei
This is a creation in
Article, where the information may have evolved or changed.
RESTful interface
Request URL:
https://api.turboes.com/Tbsapi/v1/ip2addr?ip=219.140.227.235
Request Method:
GET
Parameters:
Name of parameter
type
Description
Ip
Url-qurey-string
可选The IP address to be queried, if not transmitted, indicates that the current IP
return example
{ "code": 0, "data": { "Country": "中国", "Provi
If you want to find the actual geographic location of an IP address on the earth, you can use many online GeoIp lookup services (such as geoiptool.com ). Most of these online services are supported by a free GeoIP database such as MaxMind. While using these web-based services, there are also some different methods to query GeoIP
If you want to find the actual geographic location of an IP address on the earth, you can use many online GeoIp lookup servi
How to Use libmaxminddb,Name
Libmaxminddb-database used to process MaxMind database filesIntroduction
#include
int MMDB_open( const char *const filename, uint32_t flags, MMDB_s *const mmdb);void MMDB_close(MMDB_s *const mmdb);MMDB_lookup_result_s MMDB_lookup_string( MMDB_s *const mmdb, const char *const ipstr, int *const gai_error, int *const mmdb_error);MMDB_lookup_result_s MMDB_lookup_sockaddr( MMDB_s *const mmdb, con
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.