chaizhenhua / ngx-ip2location

Nginx IP2Location Module
BSD 2-Clause "Simplified" License
22 stars 19 forks source link

Rewrite test.php script #11

Closed crestone closed 7 years ago

crestone commented 8 years ago

Output for "8.8.8.8" with ngx_http_realip_module and IP2Location DB24 Sample:

COUNTRY_SHORT => "US"
COUNTRY_LONG => "United States"
REGION => "California"
CITY => "Mountain View"
ISP => "Google Inc."
LATITUDE => "37.405991"
LONGITUDE => "-122.078514"
DOMAIN => "google.com"
ZIPCODE => "94043"
TIMEZONE => "-07:00"
NETSPEED => "T1"
IDDCODE => "1"
AREACODE => "650"
WEATHERSTATIONCODE => "USCA0746"
WEATHERSTATIONNAME => "Mountain View"
MCC => "-"
MNC => "-"
MOBILEBRAND => "N/A"
ELEVATION => "31.000000"
USAGETYPE => "SES"
chaizhenhua commented 7 years ago

merged here 27f59449dd0ec366d9fe126b176b4a94014300e7. thanks.