Hi, I recently followed the Build Project Flyer here and I made my own version of it while following but I wonder how can I make the photo directory which is inside the Public folder not available when they access the image url directory (http://projectURL.com/images). Because when I access the image url directory it displays all the uploaded photos of users in directory folder.
I moved it inside the Storage folder but still the same problem the users can access the image url directory folder
I know, and i meant to add it there (htaccess in public folder, it prevents directory listing), and why/how is your storage folder accessible from web ?
@premsaurav it works after adding "Options -Indexes" into my .htaccess but is there other way to show my 404 page instead of plain "Access forbidden!" ?