限制访问文件夹 [英] Restriction to a folder from being access
本文介绍了限制访问文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的文件夹结构看起来像
-NewFolder1 (我要限制此文件夹)
Secret.txt
web.config
-Default.aspx
Default.aspx.cs
web.config
我一直在寻找解决方案,但我无法完成
我在web.config(NewFolder1)文件里面写的:
< system.web >
< 授权 >
< 拒绝 =" *" >
< /authorization >
< /system.web >
还有一些我发现喜欢的地方
< 位置 路径 =" >
< system.web >
< 授权 >
< 拒绝 =" *" >
< /authorization >
< /system.web >
< /位置 >
但还是一样,请建议我如何解决这个问题.
谢谢.
解决方案
请参考以下链接:
^ ]
http://stackoverflow.com/questions/3776847/how-to- limit-folder-access-in-asp-net [ ^ ]
http://www.dotnetfunda.com/forums/thread10590- how-to-restrict-access-to-specific-folder.aspx [的问题
请参考:,将得到更多的澄清
> http://stackoverflow.com/questions/8987860/forms-authentication-not-working-发布后 [ ^ ]
http: //www.asp.net/web-forms/tutorials/deployment/deploying-web-site-projects/Users-and-Roles-On-The-Production-Website-cs [<system.web> <authorization> <deny users="*"/> </authorization> </system.web>
and some where i found to do like
<location path="NewFolder1"> <system.web> <authorization> <deny users="*"/> </authorization> </system.web> </location>
but still the same please suggest me how would i come across the problem.
Thanks.解决方案Hi,
Refer the links below:
http://www.sitefinity.com/devnet/kb/sitefinity-3-x/how-to-restrict-the-access-to-a-given-folder-for-a-specific-role.aspx[^]
http://stackoverflow.com/questions/3776847/how-to-restrict-folder-access-in-asp-net[^]
http://www.dotnetfunda.com/forums/thread10590-how-to-restrict-access-to-particular-folder.aspx[^]
--Amit
Hi
May be the problem with <allow users="*">
Please Ref:,will get more clarification
http://stackoverflow.com/questions/8987860/forms-authentication-not-working-after-publish[^]
http://www.asp.net/web-forms/tutorials/deployment/deploying-web-site-projects/Users-and-Roles-On-The-Production-Website-cs[^]
Shiju
这篇关于限制访问文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文