I am allowing people to upload their project files, I've tightened my security but I just need to get to the simple point. How can I stop execution of any files in the subdirectories they're uploading too?
I'm thinking .htaccess
but I'd need to generate one for each new subdirectory (I think), would I need to scrap my current code and use a .php
file to send headers to force DL on the file instead of running?
What do you think is an easy and safe solution for this? It just uploads to a subdirectory like uploads/~foo/bar.html
or something, it looks nice that way so it'd be nice if it can stay like that format.