获取有关网站用户的一些信息 [英] to get some information about the web site user

查看:69
本文介绍了获取有关网站用户的一些信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在局域网中建立一个网站,不会在

互联网上发布。但局域网中的用户通过ISA防火墙服务器访问网站。我想询问是否有办法获得用户的IP地址来监控他们对网站的访问权限。我b $ b试图使用服务器变量REMOTE_ADDR但当然它会返回

防火墙的IP地址。

可以任何人告诉怎么能我确实得到了用户的IP地址以保存

它在数据库中。

谢谢

i building a website in a LAN which will not be published on the
internet. but the users in the LAN are accessing the web site through
an ISA firewall server. i would like to ask if there is a way to get
the ip address of the users to monitor their access to the web site. i
tried to use the servervariable REMOTE_ADDR but of course it returns
the firewall''s ip address.
can any one tell how can i do get the ip address of the users to save
it in a database.
thank you

推荐答案

Soha写道:
我在局域网中建立一个网站,不会在互联网上发布。但局域网中的用户通过ISA防火墙服务器访问该网站。我想问一下是否有办法获得用户的IP地址来监控他们对网站的访问。我试图使用服务器变量REMOTE_ADDR,但当然它会返回防火墙的IP地址。
任何人都可以告诉我如何获取用户的IP地址来保存
它在数据库中。
i building a website in a LAN which will not be published on the
internet. but the users in the LAN are accessing the web site through
an ISA firewall server. i would like to ask if there is a way to get
the ip address of the users to monitor their access to the web site. i
tried to use the servervariable REMOTE_ADDR but of course it returns
the firewall''s ip address.
can any one tell how can i do get the ip address of the users to save
it in a database.




您是否尝试过单步执行Request.ServerVariables集合?

您应该找到一个那里(例如X_FORWARDED_FOR)与另一个

的IP地址。这不一定是原始IP地址,因为

用户可能坐在NAT后面或其他类型的代理。


-

戴夫安德森


未经请求的商业电子邮件将以每封邮件



Have you tried stepping through the Request.ServerVariables collection yet?
You ought to find one in there (X_FORWARDED_FOR, for example) with another
IP address. This is not necessarily the originating IP address, since the
user could be sitting behind NAT, or some other type of proxy.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of


500的费用阅读。使用

此电子邮件地址即表示同意这些条款。请不要直接联系

我或要求我直接与您联系以获取帮助。如果你的问题值得询问,那就值得发帖了。
500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it''s worth posting.


如果你只在局域网内,为什么不要求用户进行身份验证,然后你可以获得LOGON_USER,这可能比IP

地址更有价值(一般来说,可以用来映射回IP地址) )。

ASP / IIS只能看到最后一跳显示的内容;如果暴露的是防火墙,则无法取回原始用户的机器。


Soha ; < SE ****** @ gmail.com>在消息中写道

news:11 ********************** @ g14g2000cwa.googlegr oups.com ...
If you''re only inside the LAN, why not require the user to authenticate,
then you can get LOGON_USER instead, which is likely more valuable than IP
address (and in general, can be used to map back to IP address).

ASP/IIS can only see what the last hop shows it; there is no way to get back
to the original user''s machine if the one exposed is the firewall.


"Soha" <se******@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
我在局域网中建立一个网站,不会在互联网上发布。但局域网中的用户通过ISA防火墙服务器访问该网站。我想问一下是否有办法获得用户的IP地址来监控他们对网站的访问。我试图使用服务器变量REMOTE_ADDR,但当然它会返回防火墙的IP地址。
任何人都可以告诉我如何获取用户的IP地址来保存<它在数据库中。
谢谢
i building a website in a LAN which will not be published on the
internet. but the users in the LAN are accessing the web site through
an ISA firewall server. i would like to ask if there is a way to get
the ip address of the users to monitor their access to the web site. i
tried to use the servervariable REMOTE_ADDR but of course it returns
the firewall''s ip address.
can any one tell how can i do get the ip address of the users to save
it in a database.
thank you



这篇关于获取有关网站用户的一些信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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