This article describes how to obtain all the information (such as the address, zip code, country, and latitude and longitude) of a specified IP address in php, it is very simple and practical to call an API to query visitor information,
This article
This article describes how to obtain all the information (such as the address, zip code, country, and latitude and longitude) of a specified IP address in php, it is very simple and practical to use an API call to query visitor information. For more
This article describes how to obtain all the information (such as the address, zip code, country, and latitude and longitude) of a specified IP address in php, it is very simple and practical to use an API call to query visitor information. For more
This article is based on the initial phase of my blog, which I used to build a U.S. VPS last year, that is a lot of malicious access, I based on access log in the source IP to do a lot of statistics, and I also have the most visited the most
In web development, there are often needs, need to know the customer's current location (city), the general principle is this, first: through the Request object to obtain the remote user's IP address, second: third-party free (interface) services,
Taobao Company provides a very useful IP geographic information query interface.
Here: http://ip.taobao.com/
TaobaoIPQuery2 This class will greatly simplify the relevant information query.
Class TaobaoIPQuery2 File:
$ip));
$ch =
Tencent IP Address query interface: http://fw.qq.com/ipaddress
Sina IP Address query interface: HTTP://INT.DPOOL.SINA.COM.CN/IPLOOKUP/IPLOOKUP.PHP?FORMAT=JS
Sohu IP Address query interface: Http://pv.sohu.com/cityjson
Google IP address query
Tencent IP address query interface: http://fw.qq.com/ipaddressSina IP address query interface: http://int.dpool.sina.com.cn/iplookup/iplookup.php? Format = jsSohu IP address query interface: http://pv.sohu.com/cityjsonGoogle IP address query
Python obtains the Ip address attribution and other information, and python obtains the ip address attribution.
If you have a batch of IP addresses that want to obtain the specific information of these IP addresses, such as the country of ownership
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.