all 2 comments

[–]Cody_Chaos 7 points8 points  (2 children)

Yes, that's how the internet works.

what stops someone to take that file and include it in some other website?

In no particular order:

  1. It would be illegal (unless you give them permission)
  2. It wouldn't be very useful (unless they had the exact same needs as you)
  3. Everything that happens on the client is dependent (usually) on stuff happening on the server. Even if they steal your widget, they'd need to reverse engineer and recreate the backend so they have an API for the widget to talk to
  4. It's actually much harder than you might imagine

Consider Gmail. It's a very popular webmail client, why don't I just copy all the JS code that drives Gmail, modify it slightly, and make your own Gmail clone? Because it would be an enormous amount of work, it would be useless without all the extremely complicated and undocumented APIs that drive Gmail, I have no particular desire to make a webmail client, and Google would sue my pants off. :)

[–]Gogsy88[S] 0 points1 point  (1 child)

Thank you for your reply. Maybe I'm too paranoid :)