Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Prevent apache directory listing, vulnerability reported by @CyberWarrior9
givanz96ae04c5e4a2
diff --git a/.htaccess b/.htaccessindex b6eeb2f..5c87a04 100755--- a/.htaccess+++ b/.htaccess@@ -1,3 +1,5 @@+Options +SymLinksIfOwnerMatch -Indexes+<IfModule !mod_authz_core.c><Files *.php>Require all denied@@ -23,7 +25,6 @@DirectoryIndex index.php</IfModule>-#<IfModule mod_headers.c>#Header always set Content-Security-Policy "upgrade-insecure-requests;"#</IfModule>diff --git a/admin/.htaccess b/admin/.htaccessindex 950f595..d415323 100755--- a/admin/.htaccess+++ b/admin/.htaccess@@ -1,3 +1,5 @@+Options +SymLinksIfOwnerMatch -Indexes+<IfModule dir_module>DirectoryIndex index.php</IfModule>diff --git a/plugins/.htaccess b/plugins/.htaccessnew file mode 100644index 0000000..6db4346--- /dev/null+++ b/plugins/.htaccess@@ -0,0 +1,14 @@+Options +SymLinksIfOwnerMatch -Indexes++<IfModule !mod_authz_core.c>+ <Files *.php>+ Require all denied+ </Files>++</IfModule>++<IfModule mod_authz_core.c>+ <FilesMatch "\.(?i:php)$">+ Require all denied+ </FilesMatch>+</IfModule>diff --git a/public/.htaccess b/public/.htaccessindex d95dd48..bbfd63a 100755--- a/public/.htaccess+++ b/public/.htaccess@@ -1,4 +1,4 @@-#Options +SymLinksIfOwnerMatch -Indexes+Options +SymLinksIfOwnerMatch -Indexes<IfModule !mod_authz_core.c><Files *.php>@@ -74,8 +74,8 @@ RewriteRule ^ index.php [L]Header set Cache-Control "max-age=2592000"</FilesMatch>- <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">- Header set Cache-Control "max-age=2592000"+ <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">+ Header set Cache-Control "max-age=2592000"</FilesMatch><FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">diff --git a/public/admin/.htaccess b/public/admin/.htaccessindex 60a21fa..c42fb2e 100755--- a/public/admin/.htaccess+++ b/public/admin/.htaccess@@ -1,4 +1,4 @@-#Options +SymLinksIfOwnerMatch -Indexes+Options +SymLinksIfOwnerMatch -Indexes<IfModule mod_rewrite.c>RewriteEngine Ondiff --git a/public/media/.htaccess b/public/media/.htaccessindex e7d9770..0589867 100755--- a/public/media/.htaccess+++ b/public/media/.htaccess@@ -1,3 +1,5 @@+Options +SymLinksIfOwnerMatch -Indexes+<Files *.php>order allow,denydeny from alldiff --git a/public/themes/.htaccess b/public/themes/.htaccessnew file mode 100644index 0000000..6db4346--- /dev/null+++ b/public/themes/.htaccess@@ -0,0 +1,14 @@+Options +SymLinksIfOwnerMatch -Indexes++<IfModule !mod_authz_core.c>+ <Files *.php>+ Require all denied+ </Files>++</IfModule>++<IfModule mod_authz_core.c>+ <FilesMatch "\.(?i:php)$">+ Require all denied+ </FilesMatch>+</IfModule>diff --git a/public/vadmin/.htaccess b/public/vadmin/.htaccessindex 60a21fa..c42fb2e 100755--- a/public/vadmin/.htaccess+++ b/public/vadmin/.htaccess@@ -1,4 +1,4 @@-#Options +SymLinksIfOwnerMatch -Indexes+Options +SymLinksIfOwnerMatch -Indexes<IfModule mod_rewrite.c>RewriteEngine On