I allow people to upload files of their projects, I tightened my security, but I just need to go to a simple point. How can I stop the execution of any files in the subdirectories that they download too?
I think that .htaccess, but I will need to generate one for each new subdirectory (I think), I will need to abandon my current code and use the file .phpto send headers to force DL to run instead?
Do you think this is a simple and safe solution for this? It just loads into a subdirectory, for example, uploads/~foo/bar.htmlor something like that, it looks good, so it would be nice if it remained like this format.
source
share