Deny access to website folders

后端 未结 2 1498
被撕碎了的回忆
被撕碎了的回忆 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条回答
  •  梦毁少年i
    2021-01-23 02:39

    You likely mean to allow access to the images but preventing browsing. You can disable browsing of a folder when there is no index if you add Options -Indexes into your .htaccess in your images folder.

提交回复
热议问题