rejetto forum
May 21, 2012, 08:35:02 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Help Needed How to Prevent File Direct Download But allow Streaming  (Read 441 times)
0 Members and 1 Guest are viewing this topic.
gurukrish
Occasional poster
*
Offline Offline

Posts: 3


View Profile Email
« on: February 01, 2012, 09:47:39 AM »

Hi Friends,

Somehow i managed and customize the HFS 2.3 Beta to stream video over lan and through HFS HTML Template code, I force my clients to use only Firefox. I added VLC Context Menu that helps me to play video over LAN. But struck in that users just download the file to their hard disk from the server using firefox right click -> Save Link As option. If i prevent right click on the browser using javascript they can't access VLC context menu. Is there any way to detect in HFS about direct download by user and prevent downloading file but allowing them stream through VLC Player. I have searched the net for the solution. Still i have not able to find a solution.
« Last Edit: February 01, 2012, 11:56:43 PM by gurukrish » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11822


View Profile
« Reply #1 on: February 02, 2012, 04:31:59 AM »

there's no way to truly prevent it, because there's no difference between streaming and downloading (on YOUR side, it's a client side difference).

What you can do is make the template so that when they clicking on the video they actually launch a flash video player with that video. This is just making it harder, for those who don't know how to workaround it.
Logged
gurukrish
Occasional poster
*
Offline Offline

Posts: 3


View Profile Email
« Reply #2 on: February 02, 2012, 05:25:38 AM »

there's no way to truly prevent it, because there's no difference between streaming and downloading (on YOUR side, it's a client side difference).

What you can do is make the template so that when they clicking on the video they actually launch a flash video player with that video. This is just making it harder, for those who don't know how to workaround it.

Thanks for your reply,
Is there way to disable Save Link As or track click event of Save Link As of Context Menu Item of Firefox using Javascript at user side. Still now i can only track right click button event on HTML page. Because this is a big drawback that users easily download and takes all valuable videos.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11822


View Profile
« Reply #3 on: February 02, 2012, 09:40:08 AM »

as i said: no way.
You can only make it harder, not impossible.
Logged
gurukrish
Occasional poster
*
Offline Offline

Posts: 3


View Profile Email
« Reply #4 on: February 13, 2012, 04:47:52 AM »

Hi rejetto,

I think we can stop banning direct download and allow streaming.

For example while streaming through LAN with 1GB movie if i set Speed Limit for single address to 3000 KB/s. Normally if i stream using VLC it will reach maximum of 300 KB/s to 1000 KB/s. But you save the link using web browser it will reach the full peak of 3000 KB/s constantly. Based on this big variation we can conclude a user trying to save a file. So that we can Ban that downloading. We can check the Speed in server side continuously for 1 minute for each download and then decide whether it is streaming or direct download and then ban that download.

Waiting for you early reply,
K.Guru.


as i said: no way.
You can only make it harder, not impossible.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11822


View Profile
« Reply #5 on: February 13, 2012, 05:39:52 PM »

that's true in your case, not generally.
i can tell my downloader to limit the speed, and that's done.
Logged
rejetto forum
« Reply #5 on: February 13, 2012, 05:39:52 PM »

Do you like this software? Consider even $2
 Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 20, 2012, 05:31:36 PM