Skip to content

Commit

Permalink
Block script execution inside upload folders
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Feb 15, 2017
1 parent 4387516 commit 337c3e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/home/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<FilesMatch "(?i)\.(php5|php4|php|php3|php2|phtml|pl|py|jsp|asp|sh|cgi)$">
deny from all
</FilesMatch>
3 changes: 3 additions & 0 deletions app/upload/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<FilesMatch "(?i)\.(php5|php4|php|php3|php2|phtml|pl|py|jsp|asp|sh|cgi)$">
deny from all
</FilesMatch>

0 comments on commit 337c3e6

Please sign in to comment.