I am trying to hide directories from being visit by user on my website here is the link I have which is fine
http://localhost:8080/JobScholar/storage/app/public/newpaper_jobs/230_Govrenment-Of-The-Punjab-Agriculture-Department.jpg
But when I type
http://localhost:8080/JobScholar/storage/app/public/newpaper_jobs
I got the list of my images which I don't want to show
I place an empty index.php
file but it work for particular directory not for sub directories.
What is the best possible way to secure my directories?