Restrict Your Flash Movie to Your Website Domain

After you upload your flash file (SWF file) to you server, this file is open for visit and that also means open to downloading. Every program has its copyright that nobody should use it without your permission. So, what if some visitors download your movie in SWF format and upload it to their website without your permission? Is that possible to control the copyright of your flash movie? The answer is yes, by using the ‘URL restrict’ function of SCREEN2SWF.

untittle.351x263.27.6K

How it works?

After specify a domain or a segment of domain of your website URL, when the SWF file is load, the internal action script will check for the current URL where the SWF file uploaded. If it does not meet the condition you set, the flash will stop play and show an error message.

Let’s take a sample. You have a website A.com, now you make a tutorial movie named name.swf, you upload it to 

1) http://www.A.com/name.swf,

And you visitor can play it with this URL. Now assume you have set the restrict to ‘A.com’, when visitor X try to upload to his website with URL

2) http://www.B.com/newname.swf

The movie can not be play, because there is no substring of ‘A.com’ in the URL (2). Now you get the idea. But there is still some problem.

First, what if X change the file name to ’A.com.newname.swf’, and the URL turns to be,

3) http://www.B.com/A.com.newname.swf

Will, there is a substring of ‘A.com’ so will the URL works? Don’t worry, there is an option ‘in domain’ only for you to check on, (in default). That means the substring ‘A.com’ must exist in the domain part.

There is another issue, the movie with a URL restrict can not be played on local hard disk either. That means you can not preview it in local. I put it here to say, it is not a bug. And it also means your visitors can not download and play your movie to their hard disk.

You may ask “what if I authorize a website to use my SWF file? How can I remove the restriction?” Well, that’s easy if you have same your movie to a project file before. Load it, change the restriction to the website you authorizing, and export again. So the new movie can only played on the authorized website only.

[SCREEN2SWF]

One Comment

  1. Vipin Patil says:

    Can this restriction of flash be possible with Actionscript?

    I think its possible.

    Regards
    Vipin
    http://www.integerz.com

Leave a Reply