Results 1 to 5 of 5

Thread: Locking a video ?

  1. #1
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default Locking a video ?

    So, my next site is kind of a collection of tutorials, but in order to view them you need to be a member. The question is:

    Is it possible to lock/ unlock a video (wmv for instance) using php? Or, is it possible to lock it with something else and then unlock it with php? I have seen this done on a martial arts site where you downloaded the vid and then type in the code to view it, though I don't know what language they used (Java or C++ maybe? I would further venture to guess that there was some sort of code in the actual video file?).

    If there is no answer to this, what is the best alternitive to blocking videos?
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  2. #2
    Join Date
    Jun 2007
    Location
    Ukraine
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You will have to "lock" each video yourself manually. PHP can not password protect videos. What I can suggest is to encode it into flash video and add embedded flash video player. And video should be returned by php script. You can add some smart algorithm there to protect your videos.

    Something like that.

  3. #3
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    PHP can not password protect videos.
    ...but can protect the PAGE that the video is on.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  4. #4
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Quote Originally Posted by dzysyak View Post
    . . . What I can suggest is to encode it into flash video and add embedded flash video player. And video should be returned by php script. You can add some smart algorithm there to protect your videos. . . .
    If it is a flash video, will a user still be able to DL it, even without having "access" to it?
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Yes. It's always possible to hack any content given to a viewer. The end.
    However, try grabbing a video off the more protected sites (msnbc.com, youtube.com, etc), and you'll find they have very complex ways of 'protecting' it, so it takes a lot of work and knowledge to hack it.
    So... that's the whole story.
    Write a good 'protection' method, and it may be possible to stop most viewers from getting it, but you won't ever be able to make anything you do show/serve/give to viewers completely protected.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •