Prevent Access to multiple file types


/ Published in: Apache
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.