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, geographic target positioning, geo-fencing, and digital copyright management. Currently, GeoIP is used with the Nginx or Apache server for l
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 geographical distribution of website traffic.Geo
Original: https://redislabs.com/ebook/redis-in-action/part-2-core-concepts-2/ Chapter-5-using-redis-for-application-support/5-3-ip-to-city-and-country-lookup/5-3-1- Loading-the-location-tablesFor development data, I downloaded a free IP address from http://dev.maxmind.com/geoip/geolite to the city database. This database contains two important files: the geo-litecity-blocks.csv that contains the IP address range and the city ID range information, and
In this article, readers will learn how to use the Spring MVC Framework and jquery and Google Maps to create a simple search application based on an IP location. Users can enter an IP address in the page and then show the approximate geographic location of the IP via Google Maps.We will use the following techniques:
Spring MVC Frameworks
JQuery (Ajax Request)
GeoLite Database
Google Map
The following steps are provided for the user:
Here are a brief outline of the steps needed to install GeoIP Legacy City on Linux/unix. The installation on Windows are similar, just replace the tar command with WINZIP or a similar ZIP program.Step 1–download DatabaseFor GeoIP clients, go to the Download files page. Need to enter your username and password. From there, you can download the binary or CSV formats of the GeoIP databases you purchased. Then you'll want to upload the databases to your Web server.If you aren't a client, you can use
Installation MaxMind GeoLite City1. Install GeoIP C library FirstGeoIP C library >= 1.4.6 installed on your machine. >= 1.4.6 installed on your machine.wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.7.tar.gzTar-xvzf geoip-1.4.7.tar.gzCD GeoIP-1.4.7./confiureMakeMake install2. Download Geolite City Phthon versionHttps://codeload.github.com/maxmind/geoip-api-python/zip/masterUnzip Master$ pyt
This article mainly introduces the use of GeoIP Library instances in php. This article provides code instances subdivided into countries and cities, for more information, see maxmind, which is the provider of the geoip database,
Sample and api instructions in many languages are also provided.
For example, php and php's geoip library are quite different, including usage methods and interface functions.
The official php geoip needs to configure the php environment, load the geoip. dll library, and
To use GeoIP, you need to recompile nginx, my system is centos6.5,nginx with Tengine, the required package:GCC, gcc-c++, OpenSSL, Openssl-devel, GeoIP Library, GeoLite Country, GeoLite City, Pcre, Tengine21. Download the required Packageswget http://tengine.taobao.org/download/tengine-2.0.3. Tar.gzwget http://geolite.maxmind.com/download/ geoip/database/GeoLiteCity.dat.gzwget http://geolite.maxmind.com/down
It is important to note that Maxmind is the provider of the GeoIP database,
Sample and API documentation are also available in many languages.
For example, PHP, and PHP GeoIP library is very different, including the use of the interface function.
PHP official GeoIP needs to configure the PHP environment, load the Geoip.dll library, and specify the GeoIP library address in php.ini.
Maxmind offers a range of. Inc and PHP for the environment, so long as PHP is supported, it can be used directly req
duration.
6): statistical information of different files types.
7): Pages-URL statistics.
8): Visitor Operating System Browser and other information.
9): Other information (search keyword, etc)
2. Preparations
After introducing what awstats is, let's introduce the preparations before installing awstats.
2.1Install GeoIP
GeoIP is mainly used to locate the access country and city database. You can run the following command to install it:
Yum-y install GeoIP-devel perl-Geo-IP
View t
This article mainly introduces the use of GeoIP Library instances in php. This article provides code instances subdivided into countries and cities, for more information, see maxmind, which is the provider of the geoip database,
Sample and api instructions in many languages are also provided.
For example, php and php's geoip library are quite different, including usage methods and interface functions.
The official php geoip needs to configure the php environment, load the geoip. dll library, and
It should be noted that Maxmind is the provider of the GeoIP database,It also provides sample and API documentation for many languages.For example, PHP, and PHP GeoIP library is very different, including the use of the interface function.The official PHP GeoIP needs to configure the PHP environment, load the Geoip.dll library, and specify the GeoIP library address in php.ini.Maxmind provides a range of. Inc and. PHP is not dependent on the environment, as long as the support of PHP, direct requi
1.
CD geoip/
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gzip-d GeoIP.dat.gz
ls
GeoLiteCity.dat
Other libraries: viewing
http://dev.maxmind.com/zh-hans/geoip/legacy/geolite/
2.
wget http://www.maxmind.com/download/geoip/api/php/php-latest.tar.gz
Unzip php-latest.tar.gz
3. Use
Include ("/www/web/develop/marketsystem/common/lib/geoip-api-php-1.14/src/geoip.inc");
Get the country. The IP
function G
Preparatory workTo associate IP with a physical location, we need to have a database that contains such a corresponding relationship.We can use the open source database geolitecity, which can more accurately associate the IP address with the city in which it resides.: http://dev.maxmind.com/geoip/legacy/geolite/After download we unzip: xz-d GeoLiteCity.dat.xz, such as:/my/lib/ip/geolitecity.datInstall the Pygeoip library. This library is used to query
I. Software Module dependency:
[[Email protected] # Yum-y install GCC + gcc-C ++ GCC * Make * libpcre. so * OpenSSL * PCRE * zlib * libtool * libxml2 * libxslt * GD * Lua *
Ii. Install geoip
Install the maxmind geoip Library
Maxmind provides a free IP region database (geoip. dat), but this database file is binary and needs to be read using the geoip library, so in addition to downloading geoip. in addition to the DAT file (see the next step), you also need to install a library that can read thi
Excuse me! The ip address geographic location can be downloaded from the web open-source version to display ip addresses and domain names. the geographic location is similar to this: ip.adminunion.com ------ solution ------------------ geolite. maxmind. comdownloadgeoipgeoIP nbsp. Excuse me! Nayan has an ip address, which can be downloaded from the web open-source version.
Displays the geographic location of ip addresses and domain names.
Like th
Jsp+jquery+google map shows the final resultsIn this article, readers will learn how to use the Spring MVC Framework and jquery and Google Maps to create a simple search application based on an IP location. The user can enter an IP address in the page and then show the approximate geographic location of the IP via Google Map (note: The database used in this article is Geolite).Finally, in the page, we send AJAX requests via jquery to call the Spring M
1. Product article
1. What are the products?
1. Ipip.net
Official website: http://www.ipip.net/
Advantages: Support offline downloads, frequent data updates, accurate data
Disadvantage: The charges are as follows, the price of the latitude and longitude
2.Max Mind
Official website: http://dev.maxmind.com/zh-hans/geoip/legacy/geolite/
Advantages: Support offline downloads, data if the fee version of the update is frequent, accurate data, there is a
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.