Author: Derick Rethans (derickr) Date: 2025-01-28T11:19:11Z Commit: https://github.com/php/web-analytics/commit/c3f639874dd7a7a9ad7cd4c8956dd81ff732e354 Raw diff: https://github.com/php/web-analytics/commit/c3f639874dd7a7a9ad7cd4c8956dd81ff732e354.diff
Add .htaccess files Changed paths: A www/config/.htaccess A www/core/.htaccess A www/js/.htaccess A www/lang/.htaccess A www/libs/.htaccess A www/misc/user/.htaccess A www/node_modules/.htaccess A www/plugins/.htaccess A www/tmp/.htaccess A www/vendor/.htaccess Diff: diff --git a/www/config/.htaccess b/www/config/.htaccess new file mode 100644 index 0000000..9e95ecb --- /dev/null +++ b/www/config/.htaccess @@ -0,0 +1,24 @@ +# This file is auto generated by Matomo, do not edit directly +# Please report any issue or improvement directly to the Matomo team. + +# First, deny access to all files in this directory +<Files "*"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Deny,Allow + Deny from All + </IfVersion> + <IfVersion >= 2.4> + Require all denied + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Deny,Allow + Deny from All + </IfModule> + <IfModule mod_authz_core.c> + Require all denied + </IfModule> +</IfModule> +</Files> diff --git a/www/core/.htaccess b/www/core/.htaccess new file mode 100644 index 0000000..9e95ecb --- /dev/null +++ b/www/core/.htaccess @@ -0,0 +1,24 @@ +# This file is auto generated by Matomo, do not edit directly +# Please report any issue or improvement directly to the Matomo team. + +# First, deny access to all files in this directory +<Files "*"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Deny,Allow + Deny from All + </IfVersion> + <IfVersion >= 2.4> + Require all denied + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Deny,Allow + Deny from All + </IfModule> + <IfModule mod_authz_core.c> + Require all denied + </IfModule> +</IfModule> +</Files> diff --git a/www/js/.htaccess b/www/js/.htaccess new file mode 100644 index 0000000..8a32e29 --- /dev/null +++ b/www/js/.htaccess @@ -0,0 +1,31 @@ +# This file is auto generated by Matomo, do not edit directly +# Please report any issue or improvement directly to the Matomo team. + +# Allow any file in this directory +<Files "*"> + <IfModule mod_version.c> + <IfVersion < 2.4> + Order Allow,Deny + Allow from All + </IfVersion> + <IfVersion >= 2.4> + Require all granted + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Allow,Deny + Allow from All + </IfModule> + <IfModule mod_authz_core.c> + Require all granted + </IfModule> +</IfModule> +</Files> + +# do not cache preview container files +<Files ~ "^container_.*_preview\.js$"> +<IfModule mod_headers.c> +Header set Cache-Control "Cache-Control: private, no-cache, no-store" +</IfModule> +</Files> \ No newline at end of file diff --git a/www/lang/.htaccess b/www/lang/.htaccess new file mode 100644 index 0000000..9e95ecb --- /dev/null +++ b/www/lang/.htaccess @@ -0,0 +1,24 @@ +# This file is auto generated by Matomo, do not edit directly +# Please report any issue or improvement directly to the Matomo team. + +# First, deny access to all files in this directory +<Files "*"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Deny,Allow + Deny from All + </IfVersion> + <IfVersion >= 2.4> + Require all denied + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Deny,Allow + Deny from All + </IfModule> + <IfModule mod_authz_core.c> + Require all denied + </IfModule> +</IfModule> +</Files> diff --git a/www/libs/.htaccess b/www/libs/.htaccess new file mode 100644 index 0000000..a991cfe --- /dev/null +++ b/www/libs/.htaccess @@ -0,0 +1,51 @@ +# This file is auto generated by Matomo, do not edit directly +# Please report any issue or improvement directly to the Matomo team. + +# First, deny access to all files in this directory +<Files "*"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Deny,Allow + Deny from All + </IfVersion> + <IfVersion >= 2.4> + Require all denied + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Deny,Allow + Deny from All + </IfModule> + <IfModule mod_authz_core.c> + Require all denied + </IfModule> +</IfModule> +</Files> +# Serve HTML files as text/html mime type - Note: requires mod_mime apache module! +<IfModule mod_mime.c> + AddHandler text/html .html + AddHandler text/html .htm +</IfModule> + +# Allow to serve static files which are safe +<Files ~ "\.(gif|ico|jpg|png|svg|js|css|htm|html|mp3|mp4|wav|ogg|avi|ttf|eot|woff|woff2)$"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Allow,Deny + Allow from All + </IfVersion> + <IfVersion >= 2.4> + Require all granted + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Allow,Deny + Allow from All + </IfModule> + <IfModule mod_authz_core.c> + Require all granted + </IfModule> +</IfModule> +</Files> diff --git a/www/misc/user/.htaccess b/www/misc/user/.htaccess new file mode 100644 index 0000000..a991cfe --- /dev/null +++ b/www/misc/user/.htaccess @@ -0,0 +1,51 @@ +# This file is auto generated by Matomo, do not edit directly +# Please report any issue or improvement directly to the Matomo team. + +# First, deny access to all files in this directory +<Files "*"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Deny,Allow + Deny from All + </IfVersion> + <IfVersion >= 2.4> + Require all denied + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Deny,Allow + Deny from All + </IfModule> + <IfModule mod_authz_core.c> + Require all denied + </IfModule> +</IfModule> +</Files> +# Serve HTML files as text/html mime type - Note: requires mod_mime apache module! +<IfModule mod_mime.c> + AddHandler text/html .html + AddHandler text/html .htm +</IfModule> + +# Allow to serve static files which are safe +<Files ~ "\.(gif|ico|jpg|png|svg|js|css|htm|html|mp3|mp4|wav|ogg|avi|ttf|eot|woff|woff2)$"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Allow,Deny + Allow from All + </IfVersion> + <IfVersion >= 2.4> + Require all granted + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Allow,Deny + Allow from All + </IfModule> + <IfModule mod_authz_core.c> + Require all granted + </IfModule> +</IfModule> +</Files> diff --git a/www/node_modules/.htaccess b/www/node_modules/.htaccess new file mode 100644 index 0000000..a991cfe --- /dev/null +++ b/www/node_modules/.htaccess @@ -0,0 +1,51 @@ +# This file is auto generated by Matomo, do not edit directly +# Please report any issue or improvement directly to the Matomo team. + +# First, deny access to all files in this directory +<Files "*"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Deny,Allow + Deny from All + </IfVersion> + <IfVersion >= 2.4> + Require all denied + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Deny,Allow + Deny from All + </IfModule> + <IfModule mod_authz_core.c> + Require all denied + </IfModule> +</IfModule> +</Files> +# Serve HTML files as text/html mime type - Note: requires mod_mime apache module! +<IfModule mod_mime.c> + AddHandler text/html .html + AddHandler text/html .htm +</IfModule> + +# Allow to serve static files which are safe +<Files ~ "\.(gif|ico|jpg|png|svg|js|css|htm|html|mp3|mp4|wav|ogg|avi|ttf|eot|woff|woff2)$"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Allow,Deny + Allow from All + </IfVersion> + <IfVersion >= 2.4> + Require all granted + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Allow,Deny + Allow from All + </IfModule> + <IfModule mod_authz_core.c> + Require all granted + </IfModule> +</IfModule> +</Files> diff --git a/www/plugins/.htaccess b/www/plugins/.htaccess new file mode 100644 index 0000000..7604462 --- /dev/null +++ b/www/plugins/.htaccess @@ -0,0 +1,72 @@ +# This file is auto generated by Matomo, do not edit directly +# Please report any issue or improvement directly to the Matomo team. + +# First, deny access to all files in this directory +<Files "*"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Deny,Allow + Deny from All + </IfVersion> + <IfVersion >= 2.4> + Require all denied + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Deny,Allow + Deny from All + </IfModule> + <IfModule mod_authz_core.c> + Require all denied + </IfModule> +</IfModule> +</Files> +# Serve HTML files as text/html mime type - Note: requires mod_mime apache module! +<IfModule mod_mime.c> + AddHandler text/html .html + AddHandler text/html .htm +</IfModule> + +# Allow to serve static files which are safe +<Files ~ "\.(gif|ico|jpg|png|svg|js|css|htm|html|mp3|mp4|wav|ogg|avi|ttf|eot|woff|woff2)$"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Allow,Deny + Allow from All + </IfVersion> + <IfVersion >= 2.4> + Require all granted + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Allow,Deny + Allow from All + </IfModule> + <IfModule mod_authz_core.c> + Require all granted + </IfModule> +</IfModule> +</Files> +# Allow to serve manifest.json +<Files "manifest.json"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Allow,Deny + Allow from All + </IfVersion> + <IfVersion >= 2.4> + Require all granted + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Allow,Deny + Allow from All + </IfModule> + <IfModule mod_authz_core.c> + Require all granted + </IfModule> +</IfModule> +</Files> diff --git a/www/tmp/.htaccess b/www/tmp/.htaccess new file mode 100644 index 0000000..9e95ecb --- /dev/null +++ b/www/tmp/.htaccess @@ -0,0 +1,24 @@ +# This file is auto generated by Matomo, do not edit directly +# Please report any issue or improvement directly to the Matomo team. + +# First, deny access to all files in this directory +<Files "*"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Deny,Allow + Deny from All + </IfVersion> + <IfVersion >= 2.4> + Require all denied + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Deny,Allow + Deny from All + </IfModule> + <IfModule mod_authz_core.c> + Require all denied + </IfModule> +</IfModule> +</Files> diff --git a/www/vendor/.htaccess b/www/vendor/.htaccess new file mode 100644 index 0000000..a991cfe --- /dev/null +++ b/www/vendor/.htaccess @@ -0,0 +1,51 @@ +# This file is auto generated by Matomo, do not edit directly +# Please report any issue or improvement directly to the Matomo team. + +# First, deny access to all files in this directory +<Files "*"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Deny,Allow + Deny from All + </IfVersion> + <IfVersion >= 2.4> + Require all denied + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Deny,Allow + Deny from All + </IfModule> + <IfModule mod_authz_core.c> + Require all denied + </IfModule> +</IfModule> +</Files> +# Serve HTML files as text/html mime type - Note: requires mod_mime apache module! +<IfModule mod_mime.c> + AddHandler text/html .html + AddHandler text/html .htm +</IfModule> + +# Allow to serve static files which are safe +<Files ~ "\.(gif|ico|jpg|png|svg|js|css|htm|html|mp3|mp4|wav|ogg|avi|ttf|eot|woff|woff2)$"> +<IfModule mod_version.c> + <IfVersion < 2.4> + Order Allow,Deny + Allow from All + </IfVersion> + <IfVersion >= 2.4> + Require all granted + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + Order Allow,Deny + Allow from All + </IfModule> + <IfModule mod_authz_core.c> + Require all granted + </IfModule> +</IfModule> +</Files>