Thursday, February 14, 2013

How to block access to Unix Hidden Directories in Web Clients?

We can block the hidden files and directories in the web-server by adding below config in httpd.conf file.

# The following lines prevent any .files from being viewed by web clients.
<Files ~ "^\.">
Order allow,deny
Deny from all
</Files>

1 comment: