GeoIP + PHP Usage
Method One:
Download GeoIP PHP file Geoip.inc, save as Geoip.inc.php
Http://sjolzy.cn/php/GeoIP/bak/geoip.inc
PHP uses code
Note: If you test locally because $_server[' remote_addr ' and $_server[' REMOTE_ADDR '] may be 127.0
Awstats is a foreign open source of the website PV flow monitoring software, can obtain Apache or Nginx log information, the log useful information to integrate into the HTML page display, because the content of the analytic log is very meticulous,
GeoIP + PHP UsageMethod One:Download GeoIP PHP file Geoip.inc, save as Geoip.inc.phpHttp://sjolzy.cn/php/GeoIP/bak/geoip.incPHP uses codeNote: If you test locally because $_server[' remote_addr ' and $_server[' REMOTE_ADDR '] may be 127.0.0.1, the
Believe that have done awstats have used the open source Geoip.dat IP database, just nginx wiki on the GeoIP module, so that can achieve a regional load balance, but the Maxmind of IP database for China's support is not too good, but now is not bad ~
If your m website is for English customers and you may not want to accept access from Chinese IP segments, you can use Apache's geoip module to easily achieve this.
Http://www.maxmind.com/app/mod_geoip
For reference only!
I. Briefly
The previous article wrote to use the Apache GeoIP module to implement the sub-directory of domain name jump, he is the global effective, but my virtual host has other virtual host, if according to the previous article configuration, those do not
The geoip database of maxmind can accurately obtain the user's geographic location information based on the user's IP address. Firefox uses it to calculate the region where the user is downloaded.
It mainly includes two data files stored in
You don't have to have the patience to read everything: Brief installation instructions are as follows install http://sourceforge.net/projects/awstats/Download installation package: gnu/ Linux:tar zxf awstats-version.tgz awstats scripts and
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.