Jump to content

disallow hidden directory access with httpd.conf


alternapop

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.