dcsimg
A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: Protecting Flash Movies?

  1. #1
    FK Times - Head Publisher
    FK Board Heavyweight

    Join Date
    Sep 2000
    Posts
    385

    Protecting Flash Movies?

    Does anyone know if it is possible to digitally watermark a flash movie? We have movies that are authorized to be viewed by specific people, and we need a way to make sure that only those people view those flash movies.

    Also, is there any way to put a "timer" on a flash movie so that it only works on a certain day or a certain week?

    Are there any other ways to trace your flash movies across the Internet so that you know who is viewing them?

    Thanks for all your ideas and help with this

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    If you want to make sure only specific people view your Flash movie, you should put it on a secure site and require a login.

    Yes, you could put a timer on Flash. The built in Date object would work, but it relies on the user's system time to work, so they could foil it by changing the date on their system. If that's not secure enough, look to work with a server side language that passes the server's time into Flash.

    As far as knowing who is viewing them, Flash can read some limited system information, such as operating system, plugin version, etc. If you need more detailed records you should use something on the server side.

  3. #3
    FK Times - Head Publisher
    FK Board Heavyweight

    Join Date
    Sep 2000
    Posts
    385
    Quote Originally Posted by rdoyle720
    If you want to make sure only specific people view your Flash movie, you should put it on a secure site and require a login.
    Yes we will have SSL, but when they view the movies doesn't their computer still download a copy of it?

    look to work with a server side language that passes the server's time into Flash.
    Where could we find more detailed information about this? It sounds like it should work since they wouldn't have access to the server.

    And thanks for all the help

  4. #4
    Flash Gordon McUsher's Avatar
    Join Date
    Mar 2001
    Location
    Krautland
    Posts
    1,560
    As for keeping track who views the swf (even if copied somewhere else) you might take a look at http://www.mochibot.com/ i stumbled over it in some OSS flas, might be interesting in your case as well.

    As for hiding content:
    Code:
    var endViewMe:Date = new Date(2006, 0, 11); // 11th of jan (tomorrow)
    var now:Date = new Date();
    // if you don't trust the users date, get it from your server.
    if(now > endViewMe){
    	// remove all content
    	_level0.unloadMovie();
    }
    And yes, all content viewed by a user is data on his comp.. Sometimes harder to save, sometimes not.. pro-flashers (no not the english football fans) will get into allmost any flash you made..
    It depends on the level of security/obscurity you want..
    My letters on the F1 key have faded, how are yours today?

  5. #5
    Banned NTD's Avatar
    Join Date
    Feb 2004
    Posts
    3,438
    Hi,

    Here is some interesting info related to Flash security.....

    http://ericlin2.tripod.com/mis/protect.html

  6. #6
    FK Times - Head Publisher
    FK Board Heavyweight

    Join Date
    Sep 2000
    Posts
    385
    You guys are GREAT!

    Thanks for the articles. I will be reading them today

    One other question, how hard would it be to make something like this? You make a flash movie and when it opens up it asks you for a password. Before the movie can be viewed the correct password needs to be entered. When a password is entered the flash movie checks it against a master copy which resides on a servers text file. If the two passwords match, the movie plays. If the passwords don't match, the movie doesn't play. How hard would it be to do something like this?

  7. #7
    Senior Member corky§urprise's Avatar
    Join Date
    Jun 2005
    Posts
    346
    You could create a txt file in notepad using your password...oh boy...

    Put this onto your first frame...

    stop()
    loadtextContent = new LoadVars();
    // Load the text file into my movie
    loadtextContent.load("password.txt");
    // Start a new function to load the text file
    loadtextContent.onLoad = function(success) {
    if (success) {
    // loads the file into mytextbox
    _root.passWord = this.password
    }
    if (!success) {
    trace("File could not be loaded");
    }
    };


    Now open up notepad and put in the following:

    password=cats

    save it as

    password.txt

    Now, go into flash. Create a Input TextField. get it the variable

    _root.pass


    Now, create a go button.

    Give it the following script:

    on (press) {
    if (_root.pass == _root.passWord) {
    _root.gotoAndStop(2);
    } else {
    _root.pass = "Incorrect password!";
    }
    }


    Now, create a keyframe on frame 2, this is where your movie will be. Put something like "correct password" on it or something , or the start of your movie. Put a stop() on that frame.

    Thats it, not the most secure way, because people might be able to get the txt file by guessing the URL, but meh.

    Oh ye, the txt file has to be in the same folder as where the swf is
    Attached Files Attached Files

  8. #8
    Flash Gordon McUsher's Avatar
    Join Date
    Mar 2001
    Location
    Krautland
    Posts
    1,560
    You don't need to guess it..
    Tools like HTTPLiveheaders (for FF) log every url loaded from plain html
    or inside flash...
    My letters on the F1 key have faded, how are yours today?

  9. #9
    Banned NTD's Avatar
    Join Date
    Feb 2004
    Posts
    3,438
    Hi,

    Loading a textfile into flash is a rather insecure method for password checking. It would be a better idea to send the password as a variable to a PHP or other backend script that checks the password in a textfile and only returns true or false to flash.

  10. #10
    Member
    Join Date
    Sep 2004
    Location
    Key West
    Posts
    38
    Very cool thread



    IN need of FLA and flv player person to help with client apps

  11. #11
    FK Times - Head Publisher
    FK Board Heavyweight

    Join Date
    Sep 2000
    Posts
    385
    Quote Originally Posted by NTD
    It would be a better idea to send the password as a variable to a PHP or other backend script that checks the password in a textfile and only returns true or false to flash.
    We don't know PHP but if I understand this correctly then you are saying that the flash movie would send the password that they enter to a PHP file on the server. The PHP file would then look at the text file, and if it was the correct password then it would return a 'true' to the flash movie and it would ply. If the password was incorrect then it would return a 'false' and the movie would not play. Is this correct?

    How would the flash movie know to look for an external true/false from the PHP file?

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center