diff --git a/.git-ftp.log b/.git-ftp.log deleted file mode 100644 index 8bfe357..0000000 --- a/.git-ftp.log +++ /dev/null @@ -1 +0,0 @@ -00077aa09a2f4a21e4af14c732f37ef15feb6c38 diff --git a/.gitignore b/.gitignore index 87bc66d..cc45dde 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,7 @@ sync_config.jsonc # Editor-Deploy-Konfigurationen enthalten FTP-Passwoerter. /.vscode/ftp-sync.json /.vscode/sftp.json + +# Zustand des FTP-Deployments - wird von git-ftp auf dem SERVER gefuehrt, +# die lokale Kopie ist nur ein Abbild und gehoert nicht in die Versionierung. +/.git-ftp.log diff --git a/.htaccess b/.htaccess index ccbf9f1..168df78 100644 --- a/.htaccess +++ b/.htaccess @@ -23,3 +23,17 @@ RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] + +# Editor-, Versions- und Konfigurationsdateien nie ausliefern. +# Anlass: .vscode/ war oeffentlich abrufbar und enthielt FTP-Zugangsdaten. +RedirectMatch 404 (?i)/\.(git|vscode|svn|hg|idea|env)(/|$) + + + + Require all denied + + + Order allow,deny + Deny from all + +