来自未经授权的用户的Asp.Net页面崩溃 [英] Asp.Net Page Bloking from unauthorised user

查看:81
本文介绍了来自未经授权的用户的Asp.Net页面崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个Inverstment Compnay(Asp.Net,C#,Sql Server)项目
有许多不适合投资者使用的安全页面,它们用于
仅限公司内部使用.

但是,当url粘贴在地址栏上时,将显示该页面,我不能
阻止它们.我试图通过url重写来阻止,但是一切都是徒劳的

请帮助我

I am doing a project of Inverstment Compnay(Asp.Net,C#,Sql Server)
There are many secure pages which is not for Investor ,they are for
company internal use only.

But when url is pasted on address bar , the page is displayed, i can not
stop them.I tried to block by url rewriting,but all in vain

Please help me

推荐答案

不知道为什么删除以前的解决方案,这是正确的.使用web.config文件定义页面的授权并使用RoleMembership.您是否确实有用户对网站进行身份验证?
Don''t know why the previous solution was deleted, it was correct. Use the web.config file to define the authorizations for the page(s) and use RoleMembership. You do have users authenticate into the site correct?


这篇关于来自未经授权的用户的Asp.Net页面崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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