问题描述
全部,
我正在开展一个项目,要求公司客户登录我们的网站
。
但是员工他们不想登录的公司。但是
a很多我依赖登录成功的asp页面
因为它返回了一些关于用户权限等的值。
我因此允许公司员工通过登录并访问
所有内容!
但要做到这一点,我需要在幕后有效设置登录到
数据库。
我以为我可以将每个请求的IP地址陷入我们的IIS服务器
并基于IP地址我将强制登录或者如果来自公司
本身我可以在幕后登录。
这是一个很好的方法>
我正在尝试使用servervariables(REMOTE_ADDR)和
ServerVaraibles(REMOTE_HOST)
都只返回IP地址。
我实际上可以得到服务器名称的名称(发出
请求的服务器)这种方式很容易判断它是内联网还是互联网
任何一个ughts?
谢谢
Jawahar Rajan
All,
I am working on a project that requires the companies clients to login to
our web site.
however for employees of the companies they do not want to have a login. But
a lot of the asp pages that I have depend on the login being successful
because it return some values about the user privileges etc.
I am thus allowing company employees to by pass the login and get access to
everything!.
But to do this I need effectively set up behind the scene login to the
database.
I thought that I could trap the IP address of each request to our IIS server
and based on the IP address I will force a login or if from the company
itself I can do a behind the scene login.
Is this a good approach>
I am trying servervariables("REMOTE_ADDR") and
ServerVaraibles("REMOTE_HOST")
both return only IP Address.
can I actually get the name of the server name ( The server that makes the
request) this way It is easy to tell if it is Intranet or internet
Any thoughts?
Thanks
Jawahar Rajan
推荐答案
我不同意。
-
戴夫安德森
未经请求的商业电子邮件将以
I beg to differ.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of
这篇关于互联网与内联网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!