从办公室和办公室外部访问站点时,更改用户的访问权限. [英] Changing access rights of user while accessing a Site from office and from outside of office.

查看:64
本文介绍了从办公室和办公室外部访问站点时,更改用户的访问权限.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有要求说

1.管理员必须能够在办公室内和办公室外访问网站.
2.非管理员用户必须不能从办公室外部访问网站.

*公司拥有自己的Lan网络.
*网站托管在Global Server上.

I have a requirement saying that

1. Admin must be able to access a Web Site within the office and from outside the office.
2. Non Admin User must not be able to access site from outside the office.

* Company has its own Lan Network.
* Site hosted on Global Server.

How to get this thing done?

推荐答案

查看客户端的IP地址: http://en.wikipedia.org/wiki/Private_network [
Look at the IP address of the client: Request.UserHostAddress[^] If it is in the local range (normally 192.x.x.x or 172.x.x.x or 10.x.x.x - see http://en.wikipedia.org/wiki/Private_network[^]) then it is form within the office (assuming that your server is also within the office lan. If not then you need to look at the valid IP addresses that your office can use and restrict to just those.)


这篇关于从办公室和办公室外部访问站点时,更改用户的访问权限.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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