Member Avatar for alternapop
alternapop

i'd like to disallow any hidden files and directories, and contents within a hidden directory from being displayed.

i know i can disallow hidden files with this:

<FilesMatch "^\.">
   Order allow,deny
   Deny from all
</FilesMatch>

using these paths, as examples:
www.example.com/.hidden/default.html
www.example.com/.hide/images/logo.png

what do i need to do to disallow anything from within ".hidden" and ".hide" from being displayed? not only ".hidden" and ".hide" but any and all hidden folders, files and contents... so that if any part of the file path is hidden, don't show it.

thanks,
chris