![]() |
|
|
|
|
1
8th November 03:49
External User
Posts: 1
|
Hi gang:
Here's the problem. I have a client who has Flash Videos and wishes to rent these Videos out for a certain time period. (No, it's not porn -- shame on you). the video. That's all been solved. However, once the user is provided with a url where the Flash Video resides, then the user can view the video remotely by just creating a page that references that url -- that's easy to do. Now, how can I stop that from happening? I have some ideas, but would like to hear what greater minds have to say. :-) Thanks in advance for all replies. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com |
|
|
|
|
3
8th November 03:50
External User
Posts: 1
|
Use a URL that maps to a PHP script. Have the PHP script check that they
are logged in. If not, redirect to login. If they are logged in, then flush the flash object to their browser with appropriate headers. Cheers, Rob. -- .................................................. .......... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! .................................................. .......... |
|
|
4
8th November 03:50
External User
Posts: 1
|
Rob:
I have all of that logic in place now. My question was specifically how to stop a remote viewer from viewing the video once the url is known. I think Daniel answered it by disabling hot-linking. I just need to test it. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com |
|
|
5
8th November 03:50
External User
Posts: 1
|
???
You lost me at "You could do.." You have an example? Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com |
|
|
6
8th November 03:50
External User
Posts: 1
|
Then what is the problem? or do you mean you don't ant the same user to
view the item while logged in at some point in the future? If so then use a GET parameter (MD5 or SHA1 should suffice) that maps to a DB entry that indicates expiration time. Cheers, Rob. -- .................................................. .......... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! .................................................. .......... |
|
|
8
8th November 03:50
External User
Posts: 1
|
Tedd, I think your biggest problem is going to be that most browsers cache
the things they run across, this would include embedded flash videos, although it may take a little work (http://www.walkernews.net/2007/06/03...-cache-folder/) the users could grab the file form their cache. Second even if you use PHP to map to a file eg. somephpfile.PHP?file=dl29coj2jodod which would respond by serving a specific file, all you have to do is use Firefox's HTTP Live Headers extension which will see the response come back with the actual filename since you have to connect to it eventually. You can fix the caching problem by following one of these suggestions http://kb.adobe.com/selfservice/view...nalId=tn_14743 And as far as the evading the live headers finding the actual file name and just directly downloading it I'm not really sure how you would stop that. You could have a PHP file open the .swf and read all of it's contents then write out the headers and all the data, that way the user would really only be talking to the PHP file. Oh, and there's one more big problem. What's to stop people from just taking the url (mapped or not) once logged in and just going to that directly and doing a save as? Really there's a ton of interesting ways a user could grab the flash movies, but maybe rather than just having a .flv player and .flv files which can be stolen off your site you might want to build authentication into the flash movie itself. You could do something like serve the customer a unique cookie every time they request to watch a movie, then serve them the movie and have it check for the cookie. Although even with all that in place you can still just get a flash decompiler and decompile the protected .swf player/video and grab the .flv content out of it. Jesh, this is really a lot harder than I thought. Oh well, guess there's never absolute security. - Dan |
|
|
9
8th November 03:50
External User
Posts: 1
|
Rob:
I'm sorry, I must not explaining it well. I have all the code in place to manage viewers. What I'm asking is how to stop someone who isn't authorized to view a video after they know the url. For example, let's say a person pays and has access to the video for some period of time. Later his time runs out and if he returns to the site and tries to see the video again, he can't because he has to pay again. No problem, I have all that worked out. However, let's say the user pays, views the video, makes a note of the url, and his time runs out. What's to stop him from viewing the video again by just entering the url? That's what I'm asking -- I think Daniel's suggestion to prohibit hot-linking may work. I just need to test. Also, Daniel has provided me with some other code that is going to take me a while to test. Thanks for your time. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com |
|
|
10
8th November 03:50
External User
Posts: 1
|
It's simple, the URL should NOT directly point to the flash. It should
point to a PHP wrapper script. The wrapper script then allows you to do any kind of checking necessary to restrict viewing of the video. This can include: - checking that the user is logged in - checking that the user paid during current session - checking that the user has email address robert@interjinn.com - etc If the check allows viewing of the flash, then read the content of the flash object in PHP and flush to browser along with appropriate flash content headers. Cheers, Rob. -- .................................................. .......... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! .................................................. .......... |
|