User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Jun 2008
Posts: 1
Reputation: alternapop is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
alternapop alternapop is offline Offline
Newbie Poster

disallow hidden directory access with httpd.conf

  #1  
Jun 25th, 2008
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
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Linux Servers and Apache Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Linux Servers and Apache Forum

All times are GMT -4. The time now is 7:16 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC