File tree Expand file tree Collapse file tree 5 files changed +36
-0
lines changed
app/code/Magento/AdminNotification/Block/Grid/Renderer Expand file tree Collapse file tree 5 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 364
364
Require all denied
365
365
</IfVersion >
366
366
</Files >
367
+ <Files .user.ini >
368
+ <IfVersion < 2.4 >
369
+ order allow,deny
370
+ deny from all
371
+ </IfVersion >
372
+ <IfVersion >= 2.4 >
373
+ Require all denied
374
+ </IfVersion >
375
+ </Files >
367
376
368
377
# For 404s and 403s that aren't handled by the application, show plain 404 response
369
378
ErrorDocument 404 /pub/errors/404 .php
Original file line number Diff line number Diff line change 341
341
Require all denied
342
342
</IfVersion>
343
343
</Files>
344
+ <Files .user.ini>
345
+ <IfVersion < 2.4>
346
+ order allow,deny
347
+ deny from all
348
+ </IfVersion>
349
+ <IfVersion >= 2.4>
350
+ Require all denied
351
+ </IfVersion>
352
+ </Files>
344
353
345
354
# For 404s and 403s that aren't handled by the application, show plain 404 response
346
355
ErrorDocument 404 /pub/errors/404.php
Original file line number Diff line number Diff line change 8
8
9
9
namespace Magento \AdminNotification \Block \Grid \Renderer ;
10
10
11
+ /**
12
+ * Renderer class for action in the admin notifications grid.
13
+ */
11
14
class Actions extends \Magento \Backend \Block \Widget \Grid \Column \Renderer \AbstractRenderer
12
15
{
13
16
/**
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ charset UTF-8;
33
33
error_page 404 403 = /errors/404.php;
34
34
#add_header "X-UA-Compatible" "IE=Edge";
35
35
36
+ # Deny access to sensitive files
37
+ location /.user.ini {
38
+ deny all;
39
+ }
40
+
36
41
# PHP entry point for setup application
37
42
location ~* ^/setup($|/) {
38
43
root $MAGE_ROOT;
Original file line number Diff line number Diff line change @@ -220,6 +220,16 @@ ErrorDocument 403 /errors/404.php
220
220
Require all denied
221
221
</IfVersion >
222
222
</Files >
223
+ ## Deny access to .user.ini##
224
+ <Files .user.ini >
225
+ <IfVersion < 2.4 >
226
+ order allow,deny
227
+ deny from all
228
+ </IfVersion >
229
+ <IfVersion >= 2.4 >
230
+ Require all denied
231
+ </IfVersion >
232
+ </Files >
223
233
224
234
<IfModule mod_headers.c >
225
235
############################################
You can’t perform that action at this time.
0 commit comments