direct file download protection

Posted by Ahmet vardar on Stack Overflow See other posts from Stack Overflow or by Ahmet vardar
Published on 2010-06-13T15:47:50Z Indexed on 2010/06/13 15:52 UTC
Read the original article Hit count: 146

Filed under:

Hi,

I have a folder for downloads on my server, i want to prevent direct access to that folder so i am makin it pass-protected with htaccess and i will push download with a php script. But i have some questions regarding mkdir and file_exists

Do mkdir and file_exists works good for pass-protected folders ?

and

would i get any error while uploading file to that folder ?

AND

is this a good way of preventing direct access ?

thanks

© Stack Overflow or respective owner

Related posts about php