拒绝在IIS 6.0中访问目录 [英] Deny access to directory in IIS 6.0

查看:92
本文介绍了拒绝在IIS 6.0中访问目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么能拒绝访问特定的目录在IIS中。
在Apache中我可以只添加.htaccess文件:

How can I deny access to particular directory in IIS. In Apache I could just add .htaccess file:

Order allow,deny
Deny from all

要日志或缓存目录,没有人会允许查看该目录中的任何内容。

to Logs or cache directory and nobody will allowed to see any content in that directory.

然而,当我加入Web.config文件:

However when I add Web.config:

<?xml version="1.0"?>
<configuration>

    <system.web>
      <authorization>        
        <deny users="*"/>
      </authorization>
    </system.web>

</configuration>

它只能通过ASP处理文件和即log.txt中不起作用。

it works only for files handled by asp and doesn't work for i.e. log.txt.

我没有访问IIS服务器,我只能添加和更改文件。

I don't have access to IIS server, I can only add and change files.

预先感谢帮助。

推荐答案

在IIS6当您打开文件夹属性,你会看到一个复选框标记为读取。尝试搅乱它

In IIS6 when you open folder properties you will see a checkbox labeled "Read". Try unsettling it

这篇关于拒绝在IIS 6.0中访问目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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