Skip to content
Snippets Groups Projects
Commit 8c729e6f authored by Markus Klein's avatar Markus Klein Committed by Frank Naegler
Browse files

[TASK] Disallow access to documentation folders

Update the default .htaccess file. The users must update their
actual configuration (.htaccess or server config) manually.

Resolves: #75934
Releases: master, 7.6, 6.2
Change-Id: I8e40263c72f68c44cb8fd8c1944a44e4d38d9daa
Reviewed-on: https://review.typo3.org/47930


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarDaniel Goerz <ervaude@gmail.com>
Tested-by: default avatarDaniel Goerz <ervaude@gmail.com>
Reviewed-by: default avatarNicole Cordes <typo3@cordes.co>
Reviewed-by: default avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: default avatarFrank Naegler <frank.naegler@typo3.org>
parent 4dec6ff7
Branches
Tags
No related merge requests found
...@@ -288,7 +288,7 @@ AddDefaultCharset utf-8 ...@@ -288,7 +288,7 @@ AddDefaultCharset utf-8
RewriteRule fileadmin/templates/.*\.(?:txt|ts)$ - [F] RewriteRule fileadmin/templates/.*\.(?:txt|ts)$ - [F]
RewriteRule typo3temp/var/ - [F] RewriteRule typo3temp/var/ - [F]
RewriteRule ^(vendor|typo3_src) - [F] RewriteRule ^(vendor|typo3_src) - [F]
RewriteRule (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|Resources/Private|Tests?)/ - [F] RewriteRule (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|Resources/Private|Tests?|Documentation|docs?)/ - [F]
# Block access to all hidden files and directories with the exception of # Block access to all hidden files and directories with the exception of
# the visible content from within the `/.well-known/` hidden directory (RFC 5785). # the visible content from within the `/.well-known/` hidden directory (RFC 5785).
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment