Help Center

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">
Order allow,deny
Deny from all
</Files>
will deny access to any file that looks like "somefile.ext".
FREQUENTLY ASKED QUESTIONS
1) Can I block certain IP addresses from seeing my website?

2) How can I make the webserver show a default page other than index.html?

3) How do I deny web access to a particular file?

4) Web server error code explanation (Apache, IIS, Netscape)

5) Why does my website just say "Error 403 Forbidden"?