隐藏目录列表 [英] Hide Directory Listing
本文介绍了隐藏目录列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在we.config下面试过了
Hi,
I have tried below in we.config
<location path="Views">
<system.webServer>
<directoryBrowse enabled="false" />
</system.webServer>
</location>
但是它仍然显示我的目录列表。
请帮忙。在此先感谢
But it's still showing me directory lists.
Please help. Thanks in advance
推荐答案
如果IIS版本为7+,它应该按照web配置中已经完成的配置工作。
万一IIS 6,在IIS管理器中尝试它像
运行> inetmgr
转到IIS管理器导航
功能视图>目录浏览
行动窗格>单击启用/禁用
If the IIS version is 7+ it should work as per the configuration already done in web config.
In case IIS 6 , try it in IIS Manager like
Run > inetmgr
go to Navigation in IIS Manager
Features View > Directory Browsing
Actions Pane > click Enable/Disable
试试此链接
http://stackoverflow.com/questions/5549374/how-to-disable-directory-browse-in-web-config [ ^ ]
sheik
www.jobpencil.com [ ^ ]
Try This Link
http://stackoverflow.com/questions/5549374/how-to-disable-directory-browse-in-web-config[^]
sheik
www.jobpencil.com[^]
>
这篇关于隐藏目录列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文