Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serial Numbers/Copy Protection




On Jan 17, 2007, at 1:11 PM, Chris Adams wrote:


On 2007-01-17, at 10:26 AM, Mark Allen wrote:
The real question is this - is there a way to copy protect a widget?

Assuming that your widget is designed to use internet resources anyway there's very little drawback to having it poll a page on a webserver which you control to check registration status. The major caveat is that this server then becomes the single point of failure for your widget so it'd probably be best to check only the first time a widget is run.

Of course since the JavaScript is going to be human readable and editable, people can just comment out that check unless you do something like "check with the server and download additional code to enable full functionality" (and there are fairly easy ways around that as well).


Adding obfuscation helps, but due to the dynamic nature of JavaScript, it's tricky to do it right and not break anything (since you have to make sure that if you obfuscate the name of a function, you need to change that not only in the rest of the source code, but all in the HTML and potentially even in the CSS, but you can't obfuscate everything because then accessing page properties would break but of course you don't know if "foo.width" refers to a DOM object where you can't obfuscate 'width' or one of your objects where you want to obfuscate the field 'width', and so forth)



Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build, mutate, evolve, animate




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden
References: 
 >Serial Numbers/Copy Protection (From: "Mark Allen" <email@hidden>)
 >Re: Serial Numbers/Copy Protection (From: Chris Adams <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.