Bugfix
- [security] The root
.htaccessalso keeps thetmp/folder private, refuses scripts inimages/andassets/, and refuses requests inimages/,assets/,system/,vendor/anduser/that map to a file with a path after it, and upgrading adds these rules to an existing site's.htaccess. Backport of the Grav 2 rules - [security] The bundled IIS
web.configapplies its rules in any letter case and however a file path is written, and also keeps hidden files,.envfiles,tmp/, root files such ascomposer.json, Markdown files and scripts inimages/andassets/private (IIS sites copy the updated rules fromwebserver-configs/by hand). Backport of the Grav 2 rules - [security] The bundled
nginx.confalso keeps hidden files,.envfiles,tmp/,webserver-configs/, Markdown files and scripts inimages/andassets/private, and its folder rules match from the site root only, so page routes such as/docs/cache/reach Grav (nginx sites copy the updated rules fromwebserver-configs/by hand). Backport of the Grav 2 rules - [security] The bundled Caddy 2
Caddyfileis rebuilt so every deny rule takes effect, and both Caddyfiles protect the same folders and file types as the Apache rules (Caddy sites copy the updated rules fromwebserver-configs/by hand). Backport of the Grav 2 rules - [security] The bundled
lighttpd.confmatches its rules in any letter case, serves/.well-known/files such as ACME challenges, and protects the same folders and file types as the Apache rules (lighttpd sites copy the updated rules fromwebserver-configs/by hand). Backport of the Grav 2 rules - [security] The
php -Sdevelopment router (system/router.php) keepstmp/,user/config/,user/env/,user/accounts/anduser/data/private and refuses scripts inimages/andassets/, the same as the shipped web-server rules. Backport of the Grav 2 rules - [security] The Apache
.htaccessexception for/.well-known/now covers that folder only, so other hidden files and folders whose names start withwell-knownstay blocked. Upgrading updates existing.htaccessfiles