I have been looking online but I can't find what I am looking for.
I have a temp directory that needs to have permission 777. I would like to protect this directory against writing/uploading.
The only files I want to allow are those with the extension .dat and .txt.php (as in tmp.12834930049.txt.php). All the others I want to deny.
Any ideas how?
Thanks