通过访问者的IP地址查找访问者的位置 [英] Finding visitor location by their IP address

查看:103
本文介绍了通过访问者的IP地址查找访问者的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要从他们的IP地址中找到访问者的位置(国家/地区).我正在用VB在ASP.NET中开发我的网站.任何人都可以帮助我解决我的问题,或者给我一些想法,让我着手解决这个问题.

问候,
Sasikumar
MCAMDOIS

Hi,

I need to find the visitors'' locations (country) from their IP address. I am developing my site in ASP.NET with VB. Could anybody help me solve my problem or give me some ideas into how I can start on this.

Regards,
Sasikumar
MCAMDOIS

推荐答案

尝试一下,它将为您提供帮助

使用ASP中的IP地址查找访问者地理位置.净 [ ^ ]
Try this, it will help you

Find Visitors Geographic Location using IP Address in ASP.Net[^]


阅读此内容

正如它解释的那样,您可以使用
Read this

As it explains you get the users IP Address using
Request.ServerVariables("REMOTE_ADDR")

获取用户的IP地址,然后对"ip-to-country"数据库进行查询.

and then do a look up against the Ip-to-country database.


也请进行此检查
城市州和其他来自IP地址ASP.NET的国家 [ ^ ]
Check this too
City State Country and more From IP Address ASP.NET[^]


这篇关于通过访问者的IP地址查找访问者的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆