From d7834c5ae731cf43a0dd9e99b4422ea612c1f251 Mon Sep 17 00:00:00 2001 From: Zauberfisch Date: Sun, 19 Feb 2017 11:10:21 +0000 Subject: [PATCH] Block common log file names in .htaccess --- .htaccess | 1 + 1 file changed, 1 insertion(+) diff --git a/.htaccess b/.htaccess index 6e29370..0673a20 100644 --- a/.htaccess +++ b/.htaccess @@ -49,6 +49,7 @@ ErrorDocument 500 /assets/error-500.html RewriteRule ^vendor(/|$) - [F,L,NC] RewriteRule silverstripe-cache(/|$) - [F,L,NC] RewriteRule composer\.(json|lock) - [F,L,NC] + RewriteRule (error|silverstripe|debug)\.log - [F,L,NC] # Process through SilverStripe if no file with the requested name exists. # Pass through the original path as a query parameter, and retain the existing parameters.