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

后端 未结 11 1811
既然无缘
既然无缘 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:19

    in that folder which you want to show access forbidden create a file with name index.php and paste this code

    
    
    403 Forbidden
    
    

    Forbidden

    You don't have permission to access This Folder on this server.

提交回复
热议问题