Page 1 of 1

Protect online files

Posted: Sun Aug 16, 2009 5:47 pm
by moussa854
I need to protect my files from any download. I know that some software can download the whole website. In case this happen to my website, I need to protect the files in folder "X". What is the best way to do this? Thanks in advance.

Re: Protect online files

Posted: Sun Aug 16, 2009 6:05 pm
by jackpf
Put them outside your public html dir.

Or, put a htaccess file with:

Code: Select all

deny from all

Re: Protect online files

Posted: Sun Aug 16, 2009 6:18 pm
by moussa854
I need to upload and download files from this folder

Re: Protect online files

Posted: Sun Aug 16, 2009 6:21 pm
by jackpf
You can use php to upload and download. It doesn't use the HTTP protocol with local files so it doesn't matter.

Re: Protect online files

Posted: Sun Aug 16, 2009 6:26 pm
by moussa854
Thanks