File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 1
1
Options All -Indexes
2
2
3
3
############################################
4
- ## Disable PHP7/PHP8 code execution for media directory
4
+ ## Disable PHP code execution
5
5
6
6
<IfModule mod_php7.c >
7
7
php_flag engine 0
@@ -11,8 +11,11 @@ Options All -Indexes
11
11
php_flag engine 0
12
12
</IfModule >
13
13
14
- AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
15
- Options -ExecCGI
14
+ ############################################
15
+ ## Don't permit execution of CGI scripts
16
+
17
+ AddHandler cgi-script .php .pl .py .jsp .asp .sh .cgi
18
+ Options -ExecCGI
16
19
17
20
<IfModule mod_rewrite.c >
18
21
Original file line number Diff line number Diff line change
1
+ ############################################
2
+ ## Disable PHP code execution
3
+
4
+ <IfModule mod_php7.c >
5
+ php_flag engine 0
6
+ </IfModule >
7
+
8
+ <IfModule mod_php8.c >
9
+ php_flag engine 0
10
+ </IfModule >
11
+
12
+ ############################################
13
+ ## Don't permit execution of CGI scripts
14
+
15
+ AddHandler cgi-script .php .pl .py .jsp .asp .sh .cgi
16
+ Options -ExecCGI
You can’t perform that action at this time.
0 commit comments