•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Linux Servers and Apache section within the Tech Talk category of DaniWeb, a massive community of 425,893 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,974 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Linux Servers and Apache advertiser: Programming Forums
Views: 829 | Replies: 0
![]() |
•
•
Join Date: Jun 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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:
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
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb Linux Servers and Apache Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: URL ReWrite examples requested
- Next Thread: Case insensitive vs case sensitive urls


Linear Mode