File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
sites/platform/static/files/fetch/appyaml Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 116116 # Deny access to all static files, except those specifically allowed below.
117117 allow: false
118118
119+ # Disable global PHP execution, allow only nominated paths to be run.
120+ scripts: false
121+
119122 # Rules for specific URI patterns.
120123 rules:
121124 # Allow access to common static files.
@@ -126,11 +129,21 @@ web:
126129 '^/sitemap\.xml$':
127130 allow: true
128131
129- # Deny direct access to configuration files.
130- '^/sites/sites\.php$':
131- scripts: false
132+ # Allow only a selected set of PHP scripts to be executed.
132133 '^/sites/[^/]+/settings.*?\.php$':
133134 scripts: false
135+ '^/index\.php$':
136+ scripts: true
137+ '^/core/install\.php$':
138+ scripts: true
139+ '^/update\.php$':
140+ scripts: true
141+ '^/core/rebuild\.php':
142+ scripts: true
143+ '^/core/authorize\.php':
144+ scripts: true
145+ '^/core/modules/statistics/statistics\.php':
146+ scripts: true
134147
135148 # The files directory has its own special configuration rules.
136149 '/sites/default/files':
You can’t perform that action at this time.
0 commit comments