Mark RauterkusTips

How to hide files in the directory

2023-11-08 · Status: publish · Development, Pair, Software, WWW

Summary

Hide files by creating a file called:

.htaccess

Then the file's content is:

Options -indexes

More insights

If you do not want the directory listing to be listed when no index file is present you can create a .htaccess file at /usr/home/rauterkus1/public_html/swimisca.org/wp-content/uploads/.htaccessOptions -IndexesThis would result in access to the directory that does not contain a valid index page (index.html, index.php, etc.) returning a 403 forbidden error.

This will not prevent images or other content from being called directly but it will prevent such directory listings from being publicly available.

Source: helpdesk.WordPress.2026-06-05.xml · Original ID: 3937