appscan漏洞--目录列表

本文介绍如何通过修改httpServer的httpd.conf配置文件来禁止服务器显示目录列表。具体操作包括更改Options指令设置以移除Indexes选项,并提供了一个具体的配置示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

直接访问http://xxx.xx.xxx.xx/images/后可以看到列表:


响应包含目录的内容(目录列表)。这表示服务器允许列示目录(通常不推荐此做法)

修改服务器配置以拒绝目录列表,修改httpServer的配置:/opt/IBM/HTTPServer/conf 的httpd.conf,看到

<Directory "/opt/IBM/HTTPServer/htdocs">


#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI Multiviews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://publib.boulder.ibm.com/httpserv/manual70/mod/core.html#options
# for more information.
#
    Options  Indexes FollowSymLinks    =======>Options   FollowSymLinks(去掉Indexes即可,表示不允许访问目录列表的意思)或者加上-号:Options -Indexes FollowSymLinks


#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None


#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all


</Directory>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值