Using htaccess, how to restrict seeing directory contents, but allow server to use the contents?

后端 未结 11 1825
既然无缘
既然无缘 2021-01-30 22:38

More specifically, I have an htaccess file that restricts anyone from seeing the directory contents. Such that, nobody can see my 1000s of images in www.example.com/images by us

11条回答
  •  时光取名叫无心
    2021-01-30 23:35

    Magicianeer's suggestion is the best for this problem. If your images are broken into subfolders you'd have to put an index file in each one. 'Options -Indexes' only needs to be done once at the root.

提交回复
热议问题