Thursday 4 October 2012

To restrict files acess on server from htaccess


There should be security on your web server to restrict the access of some file types. This can be done by htaccess file.
# Exclude file types # AR 26/6/2012
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|tar|gz|sql|zip)$">
Order Allow,Deny
Deny from all
</FilesMatch>
 
Enjoy! 

No comments:

Post a Comment