Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
close #118
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Oct 28, 2021
1 parent a36cd07 commit 4f63569
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 71 deletions.
5 changes: 5 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ Options -MultiViews
#RewriteRule images/.+\.(gif|jpe?g|a?png|bmp|webp) content/images/system/default/404.gif [NC,L]
RewriteRule images/.+\.(gif|jpe?g|png|bmp|webp) - [NC,L,R=404]

# PHP front controller
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

# Single PHP-entrypoint (disables direct access to .php files)
RewriteCond %{THE_REQUEST} ^.+?\ [^?]+\.php[?\ ] [NC]
RewriteRule \.php$ - [NC,L,F,R=404]
</IfModule>
9 changes: 0 additions & 9 deletions app/.htaccess
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
<LimitExcept GET>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from all
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</LimitExcept>
<FilesMatch "\.(?:[Pp][Hh][Pp][345]?|[Pp][Hh][Tt][Mm][Ll])|(po|sql|html?)$">
<IfModule !mod_authz_core.c>
Order Allow,Deny
Expand Down
27 changes: 0 additions & 27 deletions app/content/.htaccess

This file was deleted.

18 changes: 7 additions & 11 deletions app/importer/jobs/.htaccess
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<FilesMatch "\.(txt)$">
# Apache 2.2
<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from all
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</FilesMatch>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from all
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
19 changes: 12 additions & 7 deletions content/.htaccess
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
<Files .*>
# Apache 2.2
<FilesMatch "\.(?:[Pp][Hh][Pp][345]?|[Pp][Hh][Tt][Mm][Ll])|(po|sql|html?)$">
<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from all
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</Files>

SetHandler default-handler
</IfModule>
</FilesMatch>
<IfModule mod_php7.c>
php_flag engine off
</IfModule>
<FilesMatch ".+\.*$">
SetHandler !
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteRule ^.*\.php$ - [F,L]
</IfModule>
4 changes: 0 additions & 4 deletions content/pages/.htaccess

This file was deleted.

9 changes: 0 additions & 9 deletions images/.htaccess
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
<LimitExcept GET>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from all
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</LimitExcept>
<FilesMatch "\.(?:[Pp][Hh][Pp][345]?|[Pp][Hh][Tt][Mm][Ll])|(po|sql|html?)$">
<IfModule !mod_authz_core.c>
Order Allow,Deny
Expand Down
8 changes: 4 additions & 4 deletions importing/.htaccess
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from all
Order Allow,Deny
Deny from all
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
Require all denied
</IfModule>

0 comments on commit 4f63569

Please sign in to comment.