Is keeping uploads folder outside of 'public_html' enough to keep my application secure from malicio

Posted by ecu on Stack Overflow See other posts from Stack Overflow or by ecu
Published on 2010-06-03T11:08:40Z Indexed on 2010/06/03 11:14 UTC
Read the original article Hit count: 145

Filed under:
|

Although I realise there are different approaches to securing upload process, I'm still confused when it comes to basic principles. I want to allow users to upload any kind of file they want, but keep my app secure. So my question is:

Is it sufficient to store the files with their original names in 'uploads' folder outside 'webroot' and fetching them via some download.php script?

If it't not secure enough, please point me in the right direction, or suggest what additional steps I should take to make it safe. Thank you.

© Stack Overflow or respective owner

Related posts about php

Related posts about upload