|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to hide .htaccess
I have this in the .htaccess file to block people from viewing the .htaccess file, but does not work. Is there something misconfigured in the apache?
<Files .htaccess> order deny,allow deny from all </Files> |
|
#2
|
|||
|
|||
|
<Files ~ "^\.ht">
Order allow,deny Deny from all </Files> is equivalent to: <FilesMatch "^\.ht"> Order allow,deny Deny from all </FilesMatch> Any hidden file starts with ht (including .htpasswd) would be blocked from web access [403] error. This doesn't mean you can't use .htaccess to authenticate users because it's done internally. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > how to hide .htaccess |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|