利用QQ去获得来访者的IP和省市
2011-04-11 13:32
274 查看
今天偶然发现,QQ居然有个地址http://fw.qq.com/ipaddress
可以获得来访的用户的IP地址和省,市,因此转一下笔记下
< ?php
function get_ip_place(){
$ip=file_get_contents("http://fw.qq.com/ipaddress"); $ip=str_replace('"',' ',$ip);
$ip2=explode("(",$ip);
$a=substr($ip2[1],0,-2);
$b=explode(",",$a);
return $b;
}
$ip=get_ip_place();
print_r($ip); ?>
可以获得来访的用户的IP地址和省,市,因此转一下笔记下
< ?php
function get_ip_place(){
$ip=file_get_contents("http://fw.qq.com/ipaddress"); $ip=str_replace('"',' ',$ip);
$ip2=explode("(",$ip);
$a=substr($ip2[1],0,-2);
$b=explode(",",$a);
return $b;
}
$ip=get_ip_place();
print_r($ip); ?>
相关文章推荐
- 利用QQ去获得来访者的IP和省市
- 利用IP,用C#来获得远程主机的MAC地址
- 利用Debug Api 获得QQ2007密码
- QQ上面100%获得别人IP的办法
- 利用Wireshark任意获取QQ好友IP实施精准定位
- 利用Wireshark任意获取QQ好友IP实施精准定位
- 获得网页来访者IP;操作系统版本;浏览器版本
- 如何用DOS获得目标主机的IP(媒介类似qq聊天等通讯工具)
- 利用IP,用C#来获得远程主机的MAC地址
- 利用Debug Api 获得QQ2007密码
- 利用phonegap的networkInterface插件获得ip和netmask
- CI框架下利用discuz的IP库将ip转换为省市地址!
- fw.qq.com/ipaddress已失效 javascript获得客户端IP的新方法
- 通过xmlhttp的方式,利用qq天气预报,获得某一特定地方的天气预报
- ASP利用TCPIP.DNS组件获得域名对应的IP
- PHP利用淘宝IP接口获得ip地理位置
- 利用Debug Api 获得QQ密码
- fw.qq.com/ipaddress已失效 javascript获得客户端IP的新方法
- 记一次利用Wireshark玩转骗子(任意qq好友IP精准定位)
- Java/JSP获得客户端网卡MAC地址的三种方法解析(附:获得真实IP)