How to hide files in the directory

0  comments

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/.htaccess

Options -Indexes

This 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.


About the author 

Mark Rauterkus

Mark Rauterkus, is the webmaster for ISCA. Also a swim, SKWIM and water polo coach in Pittsburgh, PA, USA.
Cell: 412-298-3432

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>