Want to disable directory browsing in your web server ?
It’s very simple.
Open your .htaccess file and write the bellow line at the end of line.
Options -Indexes
A complete .htaccess file example given bellow:
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] Options -Indexes </IfModule>