Security tip wrt to downloads (J5/PC5)
Posted: 28 Feb 2024, 20:16
This is not an issue, just a suggestion for either Installation information or Tips & Tricks.
I have looked into the security of downloads since that's what my customer will want to be selling and Joomla 5/Phoca Cart 5 handle this very well if I may say so. (I haven't yet tested older versions.)
What I mean is that even though folder names might be almost not guessable, there is no reason to have phocacartdownload open to the internet.
So it would be even safer to have the webserver deny access to it (via web server config file or .htaccess).
Downloads from within Phoca Cart will still function. But if you would copy the exact path of the downloadable file in the browser address bar, you will have no access to it. (Which you do if you don't deny access to phocacartdownload)
Tested with images and ZIP files.
One drawback: if you try to view or open the files in phocacartdownload with e.g. Phoca Commander, it will fail also. Which is a good test to see if the folder is actively locked down. If you really need to, you could copy it into another (tmp) folder temporarily.
Other operations (upload, copy, move, delete) work fine.
Thanks for reading
I have looked into the security of downloads since that's what my customer will want to be selling and Joomla 5/Phoca Cart 5 handle this very well if I may say so. (I haven't yet tested older versions.)
What I mean is that even though folder names might be almost not guessable, there is no reason to have phocacartdownload open to the internet.
So it would be even safer to have the webserver deny access to it (via web server config file or .htaccess).
Downloads from within Phoca Cart will still function. But if you would copy the exact path of the downloadable file in the browser address bar, you will have no access to it. (Which you do if you don't deny access to phocacartdownload)
Tested with images and ZIP files.
One drawback: if you try to view or open the files in phocacartdownload with e.g. Phoca Commander, it will fail also. Which is a good test to see if the folder is actively locked down. If you really need to, you could copy it into another (tmp) folder temporarily.
Other operations (upload, copy, move, delete) work fine.
Thanks for reading