Forums
Home / Fixing WordPress / private files?
(@tokis)
15 years ago
How to make my install files private Index of /wp-content/*****/****** etc
(@michaelh)
Put an index.php with this content in the folder you don’t want listed:
<?php // Silence is golden. ?>
Or the .htaccess method: https://www.thesitewizard.com/apache/prevent-directory-listing-htaccess.shtml