Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

XMOOV disabling direct file download

4 replies [Last post]

Hello,

I am looking for the way to modify xmoov module so that it does not attempt to download file if called directly from the url ie. www.mysite.com/stream/xmoov.php?file=test.flv.

I would like to allow people use the jwplayer to stream files only through xmoov, but not to download them.

I will appreciate any help with this.

Have a good day!

Hi Chris,

The general mantra is that if someone can view the file, they can download it.

Sorry!

Yes, that's understandable, but it would be useful for me just to restrict the execution of xmoov.php script to the player (as a streamer) only, not as a direct download tool (ie.when the user types the direct path to it).

For example when I put the the following code in the beginning of xmoov.php:

if (!defined('AUTH'))
{die('Access denied!')
exit;}

then the script won't execute when accessed directly,
but it will also not stream when called by jwplayer.
(video not found message). AUTH is my control variable, which I set before calling the jwplayer to stream.

I will appreciate any help with this.

Thanks in advance!

Hi Chris,

Best for you to talk to the xmoov guys about this - it's not something that we support.

Ok, thanks, I will try to contact them...

Chris