From 0ffc5f68b453ce798f05b4c0bb393b67541c0c31 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 23 Jun 2024 09:56:12 +0200 Subject: [PATCH] deny all is enough --- nginx-sample.conf | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nginx-sample.conf b/nginx-sample.conf index fb3967b5..40d85fb4 100644 --- a/nginx-sample.conf +++ b/nginx-sample.conf @@ -10,24 +10,20 @@ server { # this is very important, be sure its in your nginx conf - it prevents access to logs etc. location ~ /system { deny all; - return 404; } location /vendor { deny all; - return 404; } # block .htaccess, CHANGELOG.md, composer.json etc. # this is to prevent finding software versions location ~\.(ht|md|json|dist)$ { deny all; - return 404; } # block git files and folders location ~ /\.git { - return 404; deny all; }