Page 1 of 1

Deny access to phocadownloads folder/problem with mp3player

Posted: 21 Jul 2009, 22:24
by MrAndy
As i am providing downloads only to registred users, i denied access to phocadownload folder by apache configuration.

Download still works well, but MP3-Player doesnt work anymore. Maybe it is possible to provide the mp3 file via php to the flash player.

im using Version 1.2.0beta

regards
Andy

Re: Deny access to phocadownloads folder/problem with mp3player

Posted: 22 Jul 2009, 21:49
by Jan
Hi, then just try to create two folders in phocadownload folder:

first, which will be protected, there will be the file for donwload
second, which will be not protected, there will be stored and linked files for preview and play.

Jan

Re: Deny access to phocadownloads folder/problem with mp3player

Posted: 23 Jul 2009, 22:21
by MrAndy
thank you for your answer but the problem is: preview and download are the same file, otherwise i have to use the double amount of webspace and there will be still a possible direct access to the file. Isn't it possible to get the mp3-player to work with a link to a php file which reads the file as it is done if you download the file? Maybe you can implement this in v1.2.0 beta2.

Re: Deny access to phocadownloads folder/problem with mp3player

Posted: 24 Jul 2009, 14:02
by Jan
Hi, yes, two files need to be add.

It should work this way. E.g. you have a MP3 to download and you will to add some sample, so your original mp3 will have e.g. 5 MB and you will create a sample (e.g. 20 seconds with 200 KB). You will select the original for download and the sample for play (preview in case e.g. pdf or image)

If you want to add the original to preview there is no option to protect it as this needs to be run in browser :-(

Jan

Re: Deny access to phocadownloads folder/problem with mp3player

Posted: 31 Jul 2009, 07:58
by a2phone
Dear Sir,
can you share apache configuration about folder protection to protect,
so the file can not be remote or download by other server ?

Thanks

Re: Deny access to phocadownloads folder/problem with mp3player

Posted: 31 Jul 2009, 23:23
by Jan
Dear Sir,
can you share apache configuration about folder protection to protect,
so the file can not be remote or download by other server ?
Hi, see .htaccess to protect your folder or you can set the folder for download files outside public_html, so they cannot be reached by web

https://www.phoca.cz/documents/17-phoca- ... tml-folder

Jan