Open the file .htaccess in the public_html folder of your site. Add the following command: Options -Indexes Save the file.