DOT NET中的安全应用程序文件夹 [英] secure application folder IN DOT NET
本文介绍了DOT NET中的安全应用程序文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人
我想保护我网站的文件夹
例如,如果有人执行http://localhost/dmat_new/templocation/mayur.doc,则它可以访问位于我网站的templocation文件夹中的mayur.doc
Dear All
I want to secure folder of my website
for example if some one do http://localhost/dmat_new/templocation/mayur.doc then it is giving access to mayur.doc which is in templocation folder of my website
推荐答案
在web.config中使用location元素应注意以下事项:
Using the location element in web.config should take care of this:
<location path="templocation">
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</location>
更多信息:
http://msdn.microsoft.com/en-us/library/b6x6shw7.aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/ms178692.aspx [ ^ ]
More info:
http://msdn.microsoft.com/en-us/library/b6x6shw7.aspx[^]
http://msdn.microsoft.com/en-us/library/ms178692.aspx[^]
这篇关于DOT NET中的安全应用程序文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文