如何获取IP地址&网页访问者的国家/地区 [英] how to get the ip address & country of the webpage visitor
问题描述
大家好!
i希望使用asp.Net(C#)获取ipaddress和网页的国家名称
访问者。如果有人知道它,请告诉我。
提前预付款。
" bushi" < bu ******* @ gmail.comwrote in message
news:11 ********************** @ b75g2000hsg.googlegr oups.com ...
i想要获取ipaddress,以及网页的国家/地区名称
访问者,使用asp .Net(C#)。如果有人知道的话,请告诉我。
HttpContext.Current.Request.UserHostAddress
然后,您可以在众多网站之一上查找IP地址
提供此类信息,例如 http://www.completewhois.com/
然而,这样做真的没有意义 - IP地址不能保证是准确的,因为它们很容易被欺骗......
" Mark Rae" < ma ** @ markNOSPAMrae.com写信息
news:el ************** @ TK2MSFTNGP03.phx.gbl ...
< blockquote class =post_quotes>
" bushi" < bu ******* @ gmail.comwrote in message
news:11 ********************** @ b75g2000hsg.googlegr oups.com ...
>我想使用asp获取ipaddress,以及网页
访客的国家/地区名称。网(C#)。如果有人知道的话,请告诉我。
HttpContext.Current.Request.UserHostAddress
然后,您可以在众多网站之一上查找IP地址
提供此类信息,例如 http://www.completewhois.com/
但是,这样做真的没有意义 - IP地址不能保证是准确的,因为它们很容易被欺骗...
另外,请记住,有代理服务器和其他种类的网络层实体可能骗你的IP地址。这种
信息不可靠。
John
" John Saunders" < john.saunders at trizetto.comwrote in message
news:uy ************* @ TK2MSFTNGP05.phx.gbl ...
>然而,这样做真的没有意义 - IP地址不能保证准确,因为它们很容易被欺骗...
另外,请记住,有代理服务器和其他类型的
网络层实体可能骗你关于IP地址。这种类型的b $ b信息不可靠。
呃,是的......事实上,我说的是...... :-)
hi everyone!
i want to get the ipaddress,and the country name of a webpage
visitor,using asp.Net(C#).if anyone knows about it,plz rply me.
thanx in advance.
"bushi" <bu*******@gmail.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
i want to get the ipaddress,and the country name of a webpage
visitor,using asp.Net(C#).if anyone knows about it,plz rply me.HttpContext.Current.Request.UserHostAddress
You can then look up the IP address on one of the many websites which
provide this sort of information e.g. http://www.completewhois.com/
However, there really is no point in doing this - IP addresses cannot be
guaranteed to be accurate because they are so easy to spoof...
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:el**************@TK2MSFTNGP03.phx.gbl..."bushi" <bu*******@gmail.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
>i want to get the ipaddress,and the country name of a webpage
visitor,using asp.Net(C#).if anyone knows about it,plz rply me.
HttpContext.Current.Request.UserHostAddress
You can then look up the IP address on one of the many websites which
provide this sort of information e.g. http://www.completewhois.com/
However, there really is no point in doing this - IP addresses cannot be
guaranteed to be accurate because they are so easy to spoof...Also, keep in mind that there are proxy servers and other sorts of
network-layer entities which can lie to you about IP addresses. This sort of
information is not reliable.
John
"John Saunders" <john.saunders at trizetto.comwrote in message
news:uy*************@TK2MSFTNGP05.phx.gbl...
>However, there really is no point in doing this - IP addresses cannot be
guaranteed to be accurate because they are so easy to spoof...
Also, keep in mind that there are proxy servers and other sorts of
network-layer entities which can lie to you about IP addresses. This sort
of information is not reliable.Er, yes... that is, in fact, what I said... :-)
这篇关于如何获取IP地址&网页访问者的国家/地区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!