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

Leave a Reply

Your email address will not be published. Required fields are marked *