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
XFileSharing Pro - Disable directlinking and downloading of MP4 video files
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"
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"
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?
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?
seems ? have u even tried itventure89 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.
Last edited by ankurs on Jul 11, 2012 5:53 am, edited 1 time in total.
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???
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???