mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 08:41:39 +09:00
Block direct access to cached files in files/faceOff
This commit is contained in:
parent
40b3dcd5f0
commit
cfc7cfd53b
3 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ RewriteEngine On
|
||||||
|
|
||||||
# block direct access to templates, XML schema files, config files, dotfiles, environment, etc.
|
# block direct access to templates, XML schema files, config files, dotfiles, environment, etc.
|
||||||
RewriteCond %{REQUEST_URI} !/modules/editor/(skins|styles)/
|
RewriteCond %{REQUEST_URI} !/modules/editor/(skins|styles)/
|
||||||
RewriteRule ^(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml|blade\.php)$ - [L,F]
|
RewriteRule ^(addons|common/tpl|files/(faceOff|ruleset)|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml|blade\.php)$ - [L,F]
|
||||||
RewriteRule ^files/(attach|config|cache)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|[aj]spx?|inc|bak)$ - [L,F]
|
RewriteRule ^files/(attach|config|cache)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|[aj]spx?|inc|bak)$ - [L,F]
|
||||||
RewriteRule ^files/(env|member_extra_info/(new_message_flags|point))/ - [L,F]
|
RewriteRule ^files/(env|member_extra_info/(new_message_flags|point))/ - [L,F]
|
||||||
RewriteRule ^(\.git|\.ht|\.travis|codeception\.|composer\.|Gruntfile\.js|package\.json|CONTRIBUTING|COPYRIGHT|LICENSE|README) - [L,F]
|
RewriteRule ^(\.git|\.ht|\.travis|codeception\.|composer\.|Gruntfile\.js|package\.json|CONTRIBUTING|COPYRIGHT|LICENSE|README) - [L,F]
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
location ~ ^/rhymix/modules/editor/(skins|styles)/.+\.html$ {
|
location ~ ^/rhymix/modules/editor/(skins|styles)/.+\.html$ {
|
||||||
# pass
|
# pass
|
||||||
}
|
}
|
||||||
location ~ ^/rhymix/(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml|blade\.php)$ {
|
location ~ ^/rhymix/(addons|common/tpl|files/(faceOff|ruleset)|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml|blade\.php)$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
location ~ ^/rhymix/files/(attach|config|cache)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|[aj]spx?|inc|bak)$ {
|
location ~ ^/rhymix/files/(attach|config|cache)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|[aj]spx?|inc|bak)$ {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
location ~ ^/modules/editor/(skins|styles)/.+\.html$ {
|
location ~ ^/modules/editor/(skins|styles)/.+\.html$ {
|
||||||
# pass
|
# pass
|
||||||
}
|
}
|
||||||
location ~ ^/(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml|blade\.php)$ {
|
location ~ ^/(addons|common/tpl|files/(faceOff|ruleset)|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml|blade\.php)$ {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
location ~ ^/files/(attach|config|cache)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|[aj]spx?|inc|bak)$ {
|
location ~ ^/files/(attach|config|cache)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|[aj]spx?|inc|bak)$ {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue