Deny access to website folders

后端 未结 2 1496
被撕碎了的回忆
被撕碎了的回忆 2021-01-23 01:54

I have seen several websites: for example http://www.website.com/images/pic001.jpg And when I try to access http://www.website.com/images/ is prohibited. That is exactly what I

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-23 02:43

    You can add Options -Indexes into the .htaccess file in the images folder, this results in a forbidden message if one tries to access /images/, but access to /images/pic001.jpg is still possible.

    For more information see here: http://wiki.apache.org/httpd/DirectoryListings

提交回复
热议问题