From 2cc3960c6888190927ef87e7bcdbe96095775fce Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 4 Jan 2024 13:23:01 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#1852 --- htaccess.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htaccess.txt b/htaccess.txt index 975efb8f..3c2eb5a4 100644 --- a/htaccess.txt +++ b/htaccess.txt @@ -390,7 +390,7 @@ DirectoryIndex index.php index.html index.htm RewriteCond %{REQUEST_URI} (^|/)(site|site-[^/]+)/modules/.*\.(php|inc|tpl|module|info\.json)$ [NC,OR] # Block access to any software identifying txt, markdown or textile files - RewriteCond %{REQUEST_URI} (^|/)(COPYRIGHT|INSTALL|README|htaccess)\.(txt|md|textile)$ [NC,OR] + RewriteCond %{REQUEST_URI} (^|/)(COPYRIGHT|INSTALL|README|CHANGELOG|LICENSE|htaccess)\.(txt|md|textile)$ [NC,OR] # Block potential arbitrary backup files within site directories for things like config RewriteCond %{REQUEST_URI} (^|/)(site|site-[^/]+)/(config[^/]*/?|[^/]+\.php.*)$ [NC,OR]