Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I protect my Flash/Flex SWF with code?

I've written some fancy Flex app, which doesn't really require any server side integration.

Now if someone took that SWF and put it in their server then it will very well run.

What code can recognize that the SWF is not under my domain and stop from execution during startup? I don't mind making some server side calls just to do a check. But how can this be achieved?

like image 897
Yeti Avatar asked Jan 29 '10 08:01

Yeti


2 Answers

Check out loaderinfo.url, it can do this for you. Here's an example on how it can be used to determine where the SWF is being loaded from.

So, you could detect where the swf is loading from, and if it's not from your server, block out the good stuff. :)

Good luck

like image 113
sthg Avatar answered Sep 20 '22 23:09

sthg


Why don't you just watermark your app? But I think if someone steals your app, he would hack it too, to remove any protection.

like image 35
Thomas Müller Avatar answered Sep 20 '22 23:09

Thomas Müller