![]() |
Secure streaming link
How to secure and protect video link from direct downloads...
I am try to make something like this link Code:
server1.site.com/videos/123/456/789.mp4?key=0457043013fbd9ebae8ae3 Code:
server1.site.com/videos/123/456/789.mp4 edit: good example is here this is stream link from vimeo and can be downloaded Code:
pdl.vimeocdn.com/42891/829/162390948.mp4?aktimeoffset=0&aksessionid=3b9dcceb7a14b3436e0a7bfa0b40126b&token=1369110913_9c3017a9a1bbb77b1ca36c7b7c1eb7 Code:
pdl.vimeocdn.com/42891/829/162390948.mp4 |
you can use flowplayer.
|
What you are asking does not have a simple answer...if you want to add a session key to the query string like your examples, you will need to employ a bit of Perl or PHP scripting. First, you would probably want to generate a session Id and store it as a cookie on the user's machine, then you will need to access that cookie and append it to the query string when a video is requested. This would require some sort of account management script.
Your best bet is to enlist the help of a PHP or Perl programmer to code something up for you. It isn't difficult if you know what you're doing with that kind of thing. |
Yes i can make it with php, its not a problem, but example above hmm ...im not sure its a php, i think this can be done via htaccess
|
Sure, you could do it with .htaccess, the problem is that you only have a couple of options:
1. Allow any "key" matching a specific pattern to access the content 2. Store all of the "keys" in your .htaccess and iterate through them every time a URL is accessed The Vimeo example you posted is using a unique session Id to track a user around the web site. That user's credentials are tied to that session Id so when that user tries to access a video, all the server needs to do is cross-reference the session Id with the user's permissions to see if they have access to the requested URL or not. This is common practice among larger sites. I promise you that Vimeo is using cookies and scripting to manage that level of access to their assets. .htaccess is bad ass, just not for that kind of work :upsidedow. If you know PHP, you can code something up like that in a few lines...let me know if you need a starting point. |
Im make it with php, and video URL looks like
Code:
site.com/playback?key=98w73987354234&id=54564651 in php im compare if userIP+sessionid = &_GET['key ']{ Also im limit streem speed to 350kb/s ... So php is maybe good option , but maybe little slow when you seek video... |
I use mod_auth_token - https://code.google.com/p/mod-auth-token/
|
Quote:
The best way to do it is to do your authentication before you print any HTTP headers, then use the "location" directive to redirect the HTTP request to the appropriate video file. This will all be seamless to the user and the only bandwidth limitation will be your server/ISP. PHP is just the middle-man in the request - it authenticates and redirects accordingly. |
There are a few WP plugins that do this for videos and digital downloads. WPEC is one for digital downloads... id look at that plugin and see what makes it tick... ill do a lil research for ya tonight.
|
Quote:
|
late answer but chaturbate has similar thing http://aws.amazon.com .. they use it to block unauthorized users from viewing media on models profiles
any verified model is allowed to upload files directly to amzn cloud and put price for the content |
for example i can access this thumbnail link for 10 minutes
https://cbphotovideo.s3.amazonaws.co...5I24YED36F5HNQ but i will never be able to access big picture if i'm not authorized... something like https://cbphotovideo.s3.amazonaws.co...5I24YED36F5HNQ |
All times are GMT -7. The time now is 07:20 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc