Deny access to phocadownloads folder/problem with mp3player

Phoca Download - download manager
MrAndy
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 21 Jul 2009, 21:52

Deny access to phocadownloads folder/problem with mp3player

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Deny access to phocadownloads folder/problem with mp3player

Post 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
If you find Phoca extensions useful, please support the project
MrAndy
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 21 Jul 2009, 21:52

Re: Deny access to phocadownloads folder/problem with mp3player

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Deny access to phocadownloads folder/problem with mp3player

Post 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
If you find Phoca extensions useful, please support the project
a2phone
Phoca Member
Phoca Member
Posts: 12
Joined: 27 Jun 2009, 02:21
Contact:

Re: Deny access to phocadownloads folder/problem with mp3player

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Deny access to phocadownloads folder/problem with mp3player

Post 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
If you find Phoca extensions useful, please support the project
Post Reply