How do I deny web access to a particular file?
Applies to: Grid System
If you have a file underneath your DocumentRoot (accessible to a browser) that you do not want anyone to be able to view in a browser, you can block access to it with a Files directive in an .htaccess file. The .htaccess file will affect all subdirectories below the one in which the .htaccess file resides.
<Files ~ "^somefile\.ext">
Deny from all
will deny access to any file that looks like "somefile.ext".
Please see the Apache documentation on the Files directive here.
7028/0%Last update: 2011-07-11 17:15
Author: FAQ Admin
You can comment this FAQ