Hosting the world one click at a time
| Q: How do I deny web access to a particular file? | |
|---|---|
|
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.
For example: <Files ~ "^somefile\.ext">will deny access to any file that looks like "somefile.ext". |
|
© 2000-2008 EBOUNDHOST. ALL RIGHTS RESERVED.