View Full Version : protecting swf files from downloading

03-12-2009, 11:44 PM
I cant protect my swf files from stealing. I saw lot of post on protecting swf, but it doesn't give an actual solution. Please guide me to protect my swf

with regards
E-mail: vishnukumar@gmx.com

03-13-2009, 07:07 AM
You can't prevent people from downloading your .swf files, but you can prevent those files from playing on other sites. Embed some ActionScript code in your .swf to detect what URL it's being viewed on and refuse to play if it's not on your own site. Note that this only protects against people downloading your .swf file and won't protect against people hotlinking your .swf file. Hotlinking requires other methods to prevent.

If you want to be extra careful you should also use a program like "SWF Encrypt" or "secureSWF" to encrypt your swf file to prevent decompilation. If someone is able to decompile your .swf file they can remove the URL detection code and allow the .swf to play on other sites.