查看: 1077|回复: 12
|
用ip 找用户所在地?[解决了]
[复制链接]
|
|
能利用IP 来做出判断吗?
ip 找用户的国际就比较容易,以ip 来区分用户所居住的州属要怎样找呢?
谁有数据可以分享吗?
[ 本帖最后由 vampcheah 于 22-10-2007 05:16 PM 编辑 ] |
|
|
|
|
|
|
|
发表于 22-10-2007 02:36 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 22-10-2007 05:05 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 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掉这个数据..  |
|
|
|
|
|
|
|
发表于 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)
|
|
|
|
|
|
|
|
发表于 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
|
显示全部楼层
|
|
|
|
|
|
|
发表于 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输入的吗?在那里呢?
谢谢你先。
是不是要付钱的服务? |
|
|
|
|
|
|
| |
本周最热论坛帖子
|