I am creating an website that allows users to upload any type of file and download it later.
So I have a secret folder and all the files are saved there and returned back via php script.
I want to disable all the script execution .So I added below code to .htaccess in secret folder.
<Files *>
SetHandler default-handler
</Files>
Its working perfect.But now how to prevent users to upload .haccess file..I can just try by blocking via filename matching with .htaccess in php script.But is there any other workaround for hackers to upload the .htaccess file ?