On one of my websites, a user can access the URL site.com/galery. There is no index.html / .php file in this folder so Apache is just listing every single images of the directory galery.
I was wondering, is it possible (using htaccess) to deny direct access to this folder (by typing site.com/galery) but still allow a user to see images from this folder with
<img src="galery/myPicture.jpg" alt="">
EDIT : This topic is not a duplicate. The proposed topic's solutions does not allow to view images as asked in mine.
Thanks !