Skip to content

Commit 337c3e6

Browse files
committed
Block script execution inside upload folders
1 parent 4387516 commit 337c3e6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/home/.htaccess

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<FilesMatch "(?i)\.(php5|php4|php|php3|php2|phtml|pl|py|jsp|asp|sh|cgi)$">
2+
deny from all
3+
</FilesMatch>

app/upload/.htaccess

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<FilesMatch "(?i)\.(php5|php4|php|php3|php2|phtml|pl|py|jsp|asp|sh|cgi)$">
2+
deny from all
3+
</FilesMatch>

0 commit comments

Comments
 (0)