everactive
asked on
.htaccess: Deny from all
Hello,
This is working:
<Files *.fileext>
Order Allow,Deny
Deny from all
</Files>
This is not:
<Files *.fileext|somedirectory>
Order Allow,Deny
Deny from all
</Files>
Please help.
This is working:
<Files *.fileext>
Order Allow,Deny
Deny from all
</Files>
This is not:
<Files *.fileext|somedirectory>
Order Allow,Deny
Deny from all
</Files>
Please help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hello.
<DirectoryMatch "somedirectory">
Order Allow,Deny
Deny from all
</DirectoryMatch>
Hope it helps.
<DirectoryMatch "somedirectory">
Order Allow,Deny
Deny from all
</DirectoryMatch>
Hope it helps.
Hi,
You can follow that structure:
DocumentRoot /var/www
<Directory /var/www>
Allow from all
Deny from none
Order deny,allow
</Directory>
<Directory /var/www/*>
Deny from all
</Directory>
You can follow that structure:
DocumentRoot /var/www
<Directory /var/www>
Allow from all
Deny from none
Order deny,allow
</Directory>
<Directory /var/www/*>
Deny from all
</Directory>
please explain what you are trying to protect..
Cheers