Add AcceptPathInfo Off in order to disable access to myfile.php/something

pull/3948/head
Julio 4 years ago
parent bb3e4b149d
commit 4c36bbc833
  1. 4
      .htaccess

@ -8,6 +8,9 @@
RewriteEngine on
# Disables access to myfile.php/something
AcceptPathInfo Off
# Prevent execution of PHP from directories used for different types of uploads
RedirectMatch 403 ^/app/(?!courses/proxy)(cache|courses|home|logs|upload|Resources/public/css)/.*\.ph(p[3457]?|t|tml|ar)$
RedirectMatch 403 ^/main/default_course_document/images/.*\.ph(p[3457]?|t|tml|ar)$
@ -88,4 +91,3 @@ AddType application/font-woff .woff .woff2
ExpiresActive On
ExpiresByType application/font-woff "access plus 1 month"
</IfModule>

Loading…
Cancel
Save