询问关于根据IP查询某个IP来自哪里的问题

harvesthouhao harvesthouhao 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我下载了动网的IP地址库,并写了如下代码,但查询不到。。请大家帮忙◎
<% ip=request.servervariables("remote_addr")
response.write ip
response.write "<br>"
ip=replace(ip,".","")
response.write ip
response.write "<br>"
Set rs = Server.CreateObject("ADODB.Recordset")
sql ="select * from dv_address where ip1<="&ip&" and ip2>="&ip&" "
rs.open sql,Conn,1,1
response.write rs.recordcount
%>
...全文
评论 8
收藏 已收藏
分享
返回顶部
harvesthouhao
ASP 28,401 成员 356,940 内容