Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create/Update .htaccess file in skin and media directories #2289

Merged
merged 4 commits into from
Jul 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions media/.htaccess
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Options All -Indexes

############################################
## Disable PHP7/PHP8 code execution for media directory
## Disable PHP code execution

<IfModule mod_php7.c>
php_flag engine 0
Expand All @@ -11,8 +11,11 @@ Options All -Indexes
php_flag engine 0
</IfModule>

AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI
############################################
## Don't permit execution of CGI scripts

AddHandler cgi-script .php .pl .py .jsp .asp .sh .cgi
Options -ExecCGI

<IfModule mod_rewrite.c>

Expand Down
16 changes: 16 additions & 0 deletions skin/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
############################################
## Disable PHP code execution

<IfModule mod_php7.c>
php_flag engine 0
</IfModule>

<IfModule mod_php8.c>
php_flag engine 0
</IfModule>

############################################
## Don't permit execution of CGI scripts

AddHandler cgi-script .php .pl .py .jsp .asp .sh .cgi
Options -ExecCGI