Skip to content

Commit

Permalink
fix .htaccess files
Browse files Browse the repository at this point in the history
  • Loading branch information
computersalat committed Mar 20, 2022
1 parent cab3640 commit 11cc3a9
Show file tree
Hide file tree
Showing 32 changed files with 428 additions and 61 deletions.
15 changes: 13 additions & 2 deletions admin/backups/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
15 changes: 13 additions & 2 deletions admin/export/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
15 changes: 13 additions & 2 deletions admin/import/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
15 changes: 13 additions & 2 deletions admin/tabs/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
15 changes: 13 additions & 2 deletions classes/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
15 changes: 13 additions & 2 deletions config/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
15 changes: 13 additions & 2 deletions config/xml/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
14 changes: 13 additions & 1 deletion docs/.htaccess
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
Deny from ALL
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
14 changes: 13 additions & 1 deletion docs/csv_import/.htaccess
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
Allow from ALL
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
<IfModule mod_access_compat.c>
Order allow,deny
Allow from all
</IfModule>
</IfVersion>
15 changes: 13 additions & 2 deletions download/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
34 changes: 31 additions & 3 deletions img/cms/.htaccess
Original file line number Diff line number Diff line change
@@ -1,8 +1,36 @@
<IfModule mod_php5.c>
php_flag engine off
</IfModule>
deny from all
<IfModule mod_php7.c>
php_flag engine off
</IfModule>

<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>

<Files ~ "(?i)^.*\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm)$">
order deny,allow
allow from all
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
<IfModule mod_access_compat.c>
Order allow,deny
Allow from all
</IfModule>
</IfVersion>
</Files>
15 changes: 13 additions & 2 deletions log/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
15 changes: 13 additions & 2 deletions mails/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
14 changes: 13 additions & 1 deletion modules/.htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
<FilesMatch "\.tpl$">
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
</FilesMatch>
15 changes: 13 additions & 2 deletions override/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
16 changes: 14 additions & 2 deletions pdf/.htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
<FilesMatch "\.tpl$">
Deny from all
</FilesMatch>
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
</FilesMatch>
16 changes: 14 additions & 2 deletions themes/.htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
<FilesMatch "\.tpl$">
Deny from all
</FilesMatch>
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
</FilesMatch>
15 changes: 13 additions & 2 deletions tools/geoip/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
15 changes: 13 additions & 2 deletions tools/htmlpurifier/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
15 changes: 13 additions & 2 deletions tools/http_build_url/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
15 changes: 13 additions & 2 deletions tools/js_minify/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
15 changes: 13 additions & 2 deletions tools/minify_html/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
15 changes: 13 additions & 2 deletions tools/mobile_Detect/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
Order deny,allow
Deny from all
<IfVersion < 2.4>
Order deny,allow
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</IfVersion>
Loading

0 comments on commit 11cc3a9

Please sign in to comment.