4 Jul 2008 6:53 AM #1
I have seen people putting samples out there with business logic, but how actually you can avoid doing that. I could in fact open their JS and see their code, so how would you not show it?
4 Jul 2008 7:16 AM #2
I would steer clear of trying to use any sensitive BL on the client, as far as i know theres no real safe way to do this outside of getting into custom clients/activex - but i could be wrong.
4 Jul 2008 7:17 AM #3
- Join Date
- Aug 2007
- Long Island, NY USA
- Vote Rating
The best you could achieve is a combination of the following:
1) source obfuscation
2) load business logic via Ajax (and eval it)
3) and hope they don't know how to use yourFunction.toSource()/toString().
4 Jul 2008 7:55 AM #4
4 Jul 2008 12:31 PM #5
I've read a few books on website hacking, it can be difficult to keep your code away from peering eyes. It's sooo easy to dissect a dynamic page with firebug.
4 Jul 2008 7:03 PM #6
Thanks for the feedback guys.