Skip to the content
Documentation

Binary files world-readable

No ratings yet

With a rewrite rule setup like the one above, binary files (in var/storage/original) will be world-readable (unless you protect them in another way). This can be a serious security risk.
Isn't it better to replace

Rewriterule ^/var/[^/]+/storage/.* - [L]

with more specific rules?

Rewriterule ^/var/[^/]+/storage/images/.* - [L]
Rewriterule ^/var/[^/]+/storage/images-versioned/.* - [L]
Rewriterule ^/var/[^/]+/storage/images/.* - [L]

The same counts for

Rewriterule ^/var/storage/.* - [L]