We Recommend

Pro Apache Pro Apache
In addition to installation, maintenance, and deployment, the book demonstrates how to configure Apache to use Perl, PHP, and Python as server-side scripting languages. And unlike other books on Apache, Pro Apache provides comprehensive information on both major revisions - 1.3 and 2.0 - of the software.


Posted By

luizlopes on 07/02/08


Tagged

htaccess security chmod 777


Versions (?)


Prevent Access to multiple file types


Published in: Apache 


This is good to add to folders which are chmod to 777.

  1. <FilesMatch "\.(htaccess|htpasswd|php|html|asp|aspx|htm|cgi|pl|php4)$">
  2. Order Allow,Deny
  3. Deny from all
  4. </FilesMatch>

Report this snippet 

You need to login to post a comment.