How to block folder from listing

Block your web folders from listing files and folders.

.htaccess

Add this line to the .htaccess file inside the folder you want to block and beyond.

Options -Indexes

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*