Ask HN: How do you protect your Javascript-powered WebApps?

https://news.ycombinator.com/item?id=5017362
by neya • 14 years ago
8 11 14 years ago

Let's say I have a web application like a drag-and-drop Website Builder or something like Google Docs. If someone chose to right click and save the page, obviously our code along with its logic gets saved too. So assume this is a paid service, if the user has the source code, then he could generate infinite number of websites with the offline copy he has. The website builder is just an example, but I'm just asking for similar applications. How do you implement protection for such scenarios?

Obviously, you can't stop the user from saving the source-code, but I was thinking maybe you can perform some "validation" or "tests" within the JS to see if the editor is live from the intended URL. But, I'm not sure, how would you do it, if you had a full-fledged JS powered application? Your thoughts?

Thanks

Related Stories

Loading related stories...

Source preview

news.ycombinator.com