How to protect uploaded files?

This has been discussed a few times in our community already. For example: