Skip to content

Commit 4c36bbc

Browse files
committed
Add AcceptPathInfo Off in order to disable access to myfile.php/something
1 parent bb3e4b1 commit 4c36bbc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.htaccess

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
RewriteEngine on
1010

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

0 commit comments

Comments
 (0)