Is there a way that I can stop folks messing with my swf app,online, maybe some kind of lock up, or self destruct device I can write in to the original, and activate if I find someone else is using it? Thanks.
Printable View
Is there a way that I can stop folks messing with my swf app,online, maybe some kind of lock up, or self destruct device I can write in to the original, and activate if I find someone else is using it? Thanks.
You can lock a flash app to specific sites using:
Right$(GetWindowDomain$( "Flash® Player" ), Len( "authorized-domain.com" )) = "authorized-domain.com"
You can't really do much more than that.
Thanks. But where in the MMF file does that code go? (I don't speak Actionscript)And is it actually "Flash Player"? I assume both of the "authorized domain.com" s are the actual domain name? Cheers mate.
Dynasoft is talking about a site-lock , which allows your game to run on selected domains only. It can be done in MMF.
If you want to protect the content of your file, you'd have to use an protection/obfuscation tool.
GetWindowDomain$() is an expression on the "Flash® Player" object, inside MMF, which tells you what site the flash game is embedded in. Replace both the "authorized-domain.com"s with the same site, the one you actually want the game to run on.Quote:
Originally Posted by Jafa
By only checking the right-hand side of the domain, if you give it "authorized-domain.com" it will run on all of:
authorized-domain.com
www.authorized-domain.com
arcade.authorized-domain.com
etc etc
Hey guys, thanks for that. Joka, why do you deactive the group "sitelock" in your demo.? Wouldnt the app continue ok as long as the domain matched the string? cheers
Yes, it would continue. I just like it structured and it's not a bad idea to deactivate code that's no longer needed, so it can't interfere with other stuff. Guess I spent too much time with bug hunting :)
Good point. I'll do that , thanks.
i am using another way to protect some of my games as well, the get object retrieves the latest version number from server, and if its incorrect it gives an error and won't start.
Hmm, interesting.. the get object?, latest version number of what? Can you give more detail pls?
Ta
The latest version of his game. He hosts it on a file on his website. If it doesn't match the version number stored in the game, then it locks it up.
What I did was I have a little intro frame that checks to see if the domain is in a list, and if it is, I stop the application. So I have a list with all of the Chinese sites that removed ads from my games.
Good idea, Eliyahu, is there a black list of such sites?
If you try decompiling an MMF SWF you'll find you can't do much with it, as (I believe) the actual MMF code and stuff is locked in a kind of CCN file. No need for obfuscation or anything.Quote:
Originally Posted by JoKa
Yeah, you'd get the runtime that plays the CCN, but to get the actual game code, you'd have to reverse-engineer the CCN format.