PHP some can query IP location, identity card location, mobile phone ownership of the interface

Source: Internet
Author: User
Tags call back interface json query return

Some can query IP location, identity card location, mobile phone ownership of the interface.
Because some interfaces need to provide routing, the following code if JS can not directly read, you can return the results through PHP, and then through JS call back the results of the page.

Source Code and Demo: source code Source Demo source

01 <?php
02 /*
03 Sina's IP query interface:
04 Sina's: Http://counter.sina.com.cn/ip?ip=IP address
05 Back to the JS data, the feeling is not very accurate, you can put the question mark after the removal, directly return to the corresponding IP location of the machine
06
07 Youdao IP Query Interface:
08 Return XML data: http://www.yodao.com/smartresult-xml/search.s?type=ip&q=0.0.0.0
09 Back to JSON data: http://www.yodao.com/smartresult-xml/search.s?jsFlag=true&type=ip&q=0.0.0.0
10 Replace 0.0.0.0 with the IP address you need to query, this should be a database of innocence
11
12 Pacific Internet IP Query interface:
13 http://whois.pconline.com.cn/?ip=0.0.0.0
14 Change the 0.0.0.0 to IP address, there are other irrelevant content on the page, which is to tell us which interfaces can be invoked, interface call parameters and usage methods, etc.
15
16 Search mobile phone number attribution to the interface:
17 Return XML data: http://www.youdao.com/smartresult-xml/search.s?type=mobile&q=13888880000
18 Back to JSON data: http://www.youdao.com/smartresult-xml/search.s?jsFlag=true&type=mobile&q=13888880000
19
20 ID Card Query Interface:
21st Return XML data: http://www.youdao.com/smartresult-xml/search.s?type=id&q= ID number
22 Back to JSON data: http://www.youdao.com/smartresult-xml/search.s?jsFlag=true&type=id&q= ID number
23 */
24 echo file_get_contents ("Interface URL and Parameters");
25 ?>


Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.