Page 1 of 1

How to hide an swf

Posted: Wed Jun 02, 2010 5:29 am
by tehhparadox
Hi guys

As the title says, how do you hide your swf? I've tried using iframes, php URI checks, php HTTP_REQUEST checks and everything and found, it's not possible to completely hide your swf. On Google Chrome, the component inspector takes you directly to the swf 8O . Using JavaScript also doesn't really work out, loading the swf from another swf doesn't work either. The best way is probably encrypting your swf, but this isn't really hiding your swf. Any ideas?

Re: How to hide an swf

Posted: Wed Jun 02, 2010 1:53 pm
by kaisellgren
It can't be done.

Think about it, if your browser can see and play it, how could you not have it.

Re: How to hide an swf

Posted: Wed Jun 02, 2010 2:46 pm
by phdatabase
I'm not sure I agree that it can't be done. Maybe it can't be done like your trying, but the real question here is hidden from who or what?

Re: How to hide an swf

Posted: Wed Jun 02, 2010 3:16 pm
by tehhparadox
Hiding from the user, in order to protect your swf being downloaded and possibly being decompiled. I know no one really does it but it will make me relieved to know that my swfs are protected from being downloaded. :)

Re: How to hide an swf

Posted: Wed Jun 02, 2010 5:40 pm
by phdatabase
You're right, hiding them in that case probably won't work.

Re: How to hide an swf

Posted: Wed Jun 02, 2010 6:00 pm
by Weirdan
tehhparadox wrote:I know no one really does it but it will make me relieved to know that my swfs are protected from being downloaded. :)
Well, then taking your site offline (make sure you disconnected network cables :twisted: ) seems to be a sensible option.

Re: How to hide an swf

Posted: Wed Jul 07, 2010 1:48 pm
by Bind
it cant be done.

simple as that.

You can code in domain prerequisite checks into the swf (if you have the source), and you can compress/obfuscate the flash source/actionscript, but they are always coming out with new decompilers whenever a new flash version is released.

Until Macromedia (now Adobe) starts taking their customers intellectual property rights seriously and develops a mature, secure, and robust protection mechanism (true encryption) for swf's, it really is like a dog chasing his tail.

your best bet is to code in a check for the domain the swf is hosted on, into the source code, and if its blank or an incorrect domain, then disable the flash file and/or redirect to the authors site, to prevent offline viewing and someone else hosting your files.