XFileSharing Pro - Disable directlinking and downloading of MP4 video files

Powerfull XFileSharing version

Moderator: admin

Message
Author
venture89
Posts: 95
Joined: Aug 30, 2011 12:11 am
Location: Planet Z

Disable directlinking and downloading of MP4 video files

#1 Postby venture89 » Jun 28, 2012 12:12 am

Hello All, We are starting a video site and I have noticed that any one can directly download the mp4 or flv file as given by the embedcode2.

i.e http://site.com/vidembed-4wxtbnp3lw1j.mp4

Is there a way to disable direct downloading using .htaccess or any other mod (without effecting the ability to stream video using jwplayer?)

Please share your thoughts. Thanks in advance

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#2 Postby ankurs » Jun 28, 2012 6:37 am

there was a option to disable this in previous versions

quick fix:
comment, the below line in .htaccess on main server
RewriteRule ^vidembed-([0-9A-Za-z]{12}) /cgi-bin/index_dl.cgi?op=video_embed2&file_code=$1 [L]

dirty fix:
find "sub VideoEmbed2" in index_dl.cgi and change it to "sub UNWANTEDFUNCTION"

venture89
Posts: 95
Joined: Aug 30, 2011 12:11 am
Location: Planet Z

#3 Postby venture89 » Jun 29, 2012 2:51 pm

Hi, Thanks for the help.
It seems the both methods prevent the generation of direct download code.
However, any one can download the file looking at the file-code.

i.e. http://site.com/vidembed-4wxtbnp3lw1j.mp4

Can we disable mp4 downloads all together? would that also effect the streaming by player as well?

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#4 Postby ankurs » Jun 29, 2012 3:21 pm

venture89 wrote:It seems the both methods prevent the generation of direct download code.
However, any one can download the file looking at the file-code.

seems ? have u even tried it
Last edited by ankurs on Jul 11, 2012 5:53 am, edited 1 time in total.

venture89
Posts: 95
Joined: Aug 30, 2011 12:11 am
Location: Planet Z

#5 Postby venture89 » Jun 29, 2012 5:04 pm

I will try it and update the topic soon. thx

venture89
Posts: 95
Joined: Aug 30, 2011 12:11 am
Location: Planet Z

#6 Postby venture89 » Jun 29, 2012 5:14 pm

Great the .htaccess fix you mentioned worked! My apologies for not trying it out before posting

randy
Posts: 321
Joined: Mar 13, 2012 7:00 pm

#7 Postby randy » Jul 10, 2012 11:24 pm

could you please be more specific? in my htaccess I have this line:

RewriteRule ^vidembed-([0-9A-Za-z]{12}) /cgi-bin/index_dl.cgi?op=video_embed2&file_code=$1 [L]

and in my index_dl.cgi does not stand

sub VideoEmbed2

there just stands:

#!/usr/bin/perl
use strict;
use CGI::Carp qw(fatalsToBrowser);
use lib '.';

use index_dl;
&index_dl::run();

so what do I have to do???


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests