Jibap I apologize if you feel my answer seems arrogant, but I don't know how to say it any differently. Your report doesn't apply, because it is based on factors that simply don't apply.
When someone accesses config.php in browser, it will not show any information. It's really not more complicated.
Jibap That said, I still think that if such a "bug" was present on your server, it can be in others, I do not see what prevents it...
This was stupid of me. We can't do much about this, except write somewhere "Remember to not disable PHP execution on config.php
files!", but most people won't even understand what that means. I can't imagine anyone will have servers setup like this anyway. By default, for all normal users who haven't messed around with complex stuff on servers (like I did), this will not be an issue.
Jibap <FilesMatch ".php$">
Yes, but it's kinda pointless to spend time adding a fix for an issue that should not exist in the first place. If it did (like in my case), the owner must be aware of it, and would then fix the issue instead of "patching" it with another fix.
PS! For maximum security, you could create the _files
dir outside of the servers document_root
, so that it's not even accessible from browser.
Thanks for taking the time report, and sorry if I was rude!