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)
_______________________________________________
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