I am building an Intranet website that will allow users to download and upload files. I want to be able to disable PHP scripts from executing in the directory they upload files to.
Why you ask? Because anybody could upload a php file, then execute it.
The site looks something like this:
/Webroot //Php would be fine here
/Webroot/files //Don't want php here
Things I have tried:
1.) If you set permissions to read and write only, then you wont be able to browse subdirectories the user makes because that would require execute permissions.
2.) I know I could simply not allow them to upload a php file, but that would be too easy.
System config:
Apache 1.3.29
PHP 4.3.4
Linux Redhat 9