Open you .htaccess file and update as following
Options -Indexes
If you want access image file you can add
Options -Indexes
Order Deny,Allow
Deny from all
Allow from localhost
<Files ~ "^index\.php|JPG|png|jpg|JPEG|jpeg|svg|gif">
Allow from all
</Files>