PDA

View Full Version : Hide certain types of files?


travisbell
08-13-2007, 10:42 AM
Hey guys,

Just wondering the easiest way I can go about hiding some files...

In my case it's some of OS X's invisible files like, :2eDS_Store.

What would be the easiest way?

David
08-13-2007, 11:43 AM
You can use .htaccess files with configuration like such:
<Files FILENAMEHERE>
order allow,deny
deny from all
</Files>

travisbell
08-13-2007, 12:17 PM
Yes, the .htaccess way would work but I was kind of hoping I could do something server wide... could I not take advantage of the mod security options? I am just not that familiar is all...

mistwang
08-13-2007, 12:48 PM
mod_security probably is the easiest way as it can be configured server wide. It is not hard to learn. Using rewrite rule is possible, but you have to configure it for each virtual host, it is no server wide configuration.