佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1078|回复: 12

用ip 找用户所在地?[解决了]

[复制链接]
发表于 22-10-2007 02:27 PM | 显示全部楼层 |阅读模式
能利用IP 来做出判断吗?
ip 找用户的国际就比较容易,以ip 来区分用户所居住的州属要怎样找呢?
谁有数据可以分享吗?

[ 本帖最后由 vampcheah 于 22-10-2007 05:16 PM 编辑 ]
回复

使用道具 举报


ADVERTISEMENT

发表于 22-10-2007 02:36 PM | 显示全部楼层
不可以的...................
回复

使用道具 举报

发表于 22-10-2007 05:05 PM | 显示全部楼层
试一试这个
http://www.cz88.net/
回复

使用道具 举报

发表于 22-10-2007 05:13 PM | 显示全部楼层
原帖由 vampcheah 于 22-10-2007 02:27 PM 发表
能利用IP 来做出判断吗?
ip 找用户的国际就比较容易,以ip 来区分用户所居住的州属要怎样找呢?
谁有数据可以分享吗?

just try this
http://www.whois.sc/
回复

使用道具 举报

发表于 22-10-2007 05:18 PM | 显示全部楼层
原帖由 天下人管天下事 于 22-10-2007 05:13 PM 发表

just try this
http://www.whois.sc/

if u want to retieve the visitor ip address who visit your website, just declare a variable and set it to Request.ServerVariables("Remote_Addr")
then u will get them.
this work in asp and asp.net
回复

使用道具 举报

发表于 24-10-2007 10:02 AM | 显示全部楼层
Request.ServerVariables("Remote_Addr"

事实上这个数据不一定拿到..
因为有些firewall/antivirus可以block掉这个数据..
回复

使用道具 举报

Follow Us
发表于 24-10-2007 02:05 PM | 显示全部楼层
以ip 来区分用户所居住的州属要怎样找呢?

你如何办到?streamyx的ip是分不出州属的吧
回复

使用道具 举报

发表于 24-10-2007 02:23 PM | 显示全部楼层
原帖由 超笨无比 于 24-10-2007 02:05 PM 发表
以ip 来区分用户所居住的州属要怎样找呢?

你如何办到?streamyx的ip是分不出州属的吧

可以,肯定可以找到。
Dim IP As String = "202.75.47.235"
'202.75.47.235 is the WAN IP belong to chinese.cari.com.my
Dim doc As XmlDocument = New XmlDocument
doc.Load(
"http://www.showmyip.com/xml/?ip=" & IP)
Dim nodeLstCountry As XmlNodeList = doc.GetElementsByTagName("lookup_country")
Dim nodeLstCity As XmlNodeList = doc.GetElementsByTagName("lookup_city2")
IP =
"Country :" & nodeLstCountry(0).InnerText & _
" -- City :" & nodeLstCity(0).InnerText & "" & IP
Response.Write(IP)
回复

使用道具 举报


ADVERTISEMENT

发表于 24-10-2007 04:42 PM | 显示全部楼层
原帖由 天下人管天下事 于 24-10-2007 02:23 PM 发表

可以,肯定可以找到。
Dim IP As String = "202.75.47.235"
'202.75.47.235 is the WAN IP belong to chinese.cari.com.my
Dim doc As XmlDocument = New XmlDocument
doc.Load("http://www.showmyip.com ...

果然可以,谢谢指教了
回复

使用道具 举报

发表于 25-10-2007 11:32 AM | 显示全部楼层
原帖由 超笨无比 于 24-10-2007 04:42 PM 发表

果然可以,谢谢指教了

纯粹分享而已。
回复

使用道具 举报

发表于 25-10-2007 06:52 PM | 显示全部楼层
我还以为不可能的,每次都显示TELEKOM MALAYSIA而已。
回复

使用道具 举报

发表于 25-10-2007 06:59 PM | 显示全部楼层
原帖由 天下人管天下事 于 24-10-2007 02:23 PM 发表

可以,肯定可以找到。
Dim IP As String = "202.75.47.235"
'202.75.47.235 is the WAN IP belong to chinese.cari.com.my
Dim doc As XmlDocument = New XmlDocument
doc.Load("http://www.showmyip.com ...

看了之后,其实我还是不明白要怎么做。

有了IP,到那里放进去,然后出现的说是KUALA LUMPUER,MALAYSIA而已(我的不是KL的)。
你说的是要MANUALLY输入的吗?在那里呢?
谢谢你先。
回复

使用道具 举报

发表于 28-10-2007 09:06 AM | 显示全部楼层
原帖由 IdontWantToDie 于 25-10-2007 06:59 PM 发表

看了之后,其实我还是不明白要怎么做。

有了IP,到那里放进去,然后出现的说是KUALA LUMPUER,MALAYSIA而已(我的不是KL的)。
你说的是要MANUALLY输入的吗?在那里呢?
谢谢你先。


是不是要付钱的服务?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 20-9-2025 10:49 PM , Processed in 0.132504 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表