国内IP地址API调用

新浪的IP地址查询接口:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js
新浪多地域测试方法:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=218.192.3.42
搜狐IP地址查询接口(默认GBK):http://pv.sohu.com/cityjson
搜狐IP地址查询接口(可设置编码):http://pv.sohu.com/cityjson?ie=utf-8
搜狐另外的IP地址查询接口:http://txt.go.sohu.com/ip/soip

我做的:

[code lang=”php”]
<script src="http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js" type="text/javascript"></script>
<script typee="text/javascript">
document.write(remote_ip_info.country);
var guojia =remote_ip_info.country;
var shenfen =remote_ip_info.province;
var city =remote_ip_info.city;
//document.write(remote_ip_info.province);
document.write(remote_ip_info.city);
document.write(remote_ip_info.isp);
if(guojia=="中国" && city=="厦门"){
alert(1);
}
//document.write(remote_ip_info.country);
//document.write(remote_ip_info.country);
//document.write(remote_ip_info.country);
//document.write(remote_ip_info.country);
</script>
[/code]