Be a Supporter!

Disable download of SWF

  • 919 Views
  • 11 Replies
New Topic Respond to this Topic
Sin-sister
Sin-sister
  • Member since: Oct. 9, 2010
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Disable download of SWF 2011-01-27 05:13:25 Reply

Hey guys,

I'd like to know the Action Script 3 code that disables the browsers' SWF download capabilities.
Like, if you have firefox like I do, and you can download SWFs straight off the web pages.

An example can be scene here:

Download this and try to play it.

If you have any code that may be of any help please let me know :)

Thanks
Sin-sister

Callum123456
Callum123456
  • Member since: Mar. 7, 2009
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Disable download of SWF 2011-01-27 06:15:45 Reply

It is using a site lock, nothing can disable the abilty to download it. Although sitelocking is incredibly easy to hack, it's probably the easiest option.
http://www.emanueleferonato.com/2008/03/
10/how-to-sitelock-a-flash-movie/

4urentertainment
4urentertainment
  • Member since: Aug. 1, 2008
  • Offline.
Forum Stats
Moderator
Level 13
Game Developer
Response to Disable download of SWF 2011-01-27 07:47:02 Reply

You can also encrypt it to prevent it from decompiling. The safest encryptor I know of is secureSWF by Kindisoft

GodlyKira
GodlyKira
  • Member since: Dec. 21, 2008
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to Disable download of SWF 2011-01-27 10:39:59 Reply

I see no point in site locking a game. if someone wants the swf they will get it, you wont/cant stop that


BBS Signature
Callum123456
Callum123456
  • Member since: Mar. 7, 2009
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Disable download of SWF 2011-01-27 11:19:05 Reply

At 1/27/11 10:39 AM, GodlyKira wrote: I see no point in site locking a game. if someone wants the swf they will get it, you wont/cant stop that

Sitelocking is more of a deterrent than something that actually stops people from taking it. Sitelocking will stop other sites from easily being able to get it, so unless the .swf is really popular most won't bother hacking it, and secureSWF makes the job alot harder for anybody who does.

GodlyKira
GodlyKira
  • Member since: Dec. 21, 2008
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to Disable download of SWF 2011-01-27 11:46:29 Reply

At 1/27/11 11:19 AM, Callum123456 wrote:
At 1/27/11 10:39 AM, GodlyKira wrote: I see no point in site locking a game. if someone wants the swf they will get it, you wont/cant stop that
Sitelocking is more of a deterrent than something that actually stops people from taking it. Sitelocking will stop other sites from easily being able to get it, so unless the .swf is really popular most won't bother hacking it, and secureSWF makes the job alot harder for anybody who does.

secure swf doesnt really do jack shit...

in as2 use load movie on an swf (this works better with vb, but idc to explain)

then

for (i in _level0) {
trace(i);
}

for as3 games its a lil harder but still very possible...


BBS Signature
zrb
zrb
  • Member since: Aug. 8, 2006
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to Disable download of SWF 2011-01-27 13:13:07 Reply

At 1/27/11 11:46 AM, GodlyKira wrote: secure swf doesnt really do jack shit...

Except you know, encrypt your codes to make it harder for people to decompile.

in as2 use load movie on an swf (this works better with vb, but idc to explain)

You can decompile the loader swf and find the link to the swf.


School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature
PSvils
PSvils
  • Member since: Feb. 3, 2010
  • Offline.
Forum Stats
Member
Level 01
Game Developer
Response to Disable download of SWF 2011-01-28 10:50:41 Reply

You could require the game to contact a server on game load, and use that in conjunction with loading the movie thing.
You have the "jacket" .swf load up, and it contacts a server with a number, and the server checks from where it is being accessed, and then according to the number spits back a link to the .swf file. This is obviously easier said than done, but the idea just popped into my head...

ifureadthisdie
ifureadthisdie
  • Member since: Feb. 9, 2009
  • Offline.
Forum Stats
Member
Level 07
Animator
Response to Disable download of SWF 2011-01-28 12:46:54 Reply

Bump this thread
I made this thread offering everyone full protection of SWF's. This thing protects from decompilers, if someone downloads it from a website the SWF will no longer work.
If it's uploaded to a website you didn't assign it to the SWF will no longer work.
And you can put a message for it to say to the bastard who stole it like "FUCK YOU, YOU THIEVING FUCK!" or something.


The guy below me is gay

BBS Signature
GodlyKira
GodlyKira
  • Member since: Dec. 21, 2008
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to Disable download of SWF 2011-01-28 17:57:55 Reply

At 1/27/11 01:13 PM, zrb wrote:
At 1/27/11 11:46 AM, GodlyKira wrote: secure swf doesnt really do jack shit...
Except you know, encrypt your codes to make it harder for people to decompile.
in as2 use load movie on an swf (this works better with vb, but idc to explain)
You can decompile the loader swf and find the link to the swf.

no what that code does it gives every variable in _level0, if you add another for in you can get every variable and its parent for any flash game... you can get function parameters for function calling with another code, and you can even fully rewrite functions... sure this is short of decompilation... but non the less a security leak...


BBS Signature
Sin-sister
Sin-sister
  • Member since: Oct. 9, 2010
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to Disable download of SWF 2011-02-01 00:08:27 Reply

Thanks for all the suggestions guys :)

I've already downloaded the trial version for SWFprotect, and so far it seems to be all I need.
The watermark is actually more of a plus rather than a minus.

ifureadthisdie
ifureadthisdie
  • Member since: Feb. 9, 2009
  • Offline.
Forum Stats
Member
Level 07
Animator
Response to Disable download of SWF 2011-02-02 17:58:03 Reply

At 2/1/11 12:08 AM, Sin-sister wrote: Thanks for all the suggestions guys :)

I've already downloaded the trial version for SWFprotect, and so far it seems to be all I need.
The watermark is actually more of a plus rather than a minus.

Glad i could help :D


The guy below me is gay

BBS Signature