Please wait while we load your page...


HTACCESS Magic :: Article :: Hide File

Results 1 to of

Hide File

To hide one or more files:

<Files ""^(.*)\.(inc|php|tpl|sql|ht)$"">
Order deny,allow
Deny from all

In this example, no one would be able to view the following file types via the web: .INC, .PHP, .TPL, .SQL, and any files with the file extension that begins with ht (e.g., .htaccess and .htpasswd).

Last Revised: 2015-08-24

Live Chat Not Available