htaccess to stop directory listing code example
Example: deny directory listing htaccess
# Place the following in your .htaccess at doc root
Options -Indexes
# Place the following in your .htaccess at doc root
Options -Indexes