# Any way to make closed-source games?

**URL:** <https://forum.babylonjs.com/t/any-way-to-make-closed-source-games/13587>\
**Category:** Questions\
**Created:** [August 22, 2020, 7:53am UTC](https://forum.babylonjs.com/t/any-way-to-make-closed-source-games/13587 "2020-08-22T07:53:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharksie](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sharksie/32/10542_2.png) [@Sharksie](https://forum.babylonjs.com/u/Sharksie)\
**Post date:** [August 22, 2020, 7:53am UTC](https://forum.babylonjs.com/t/any-way-to-make-closed-source-games/13587/1 "2020-08-22T07:53:30Z")

</div>

As I understand it, BabylonJS is interpreted and the entire app is sent to the client as plain text. Am I wrong? Is there a way to only send binaries so that the game can’t simply be copied, modified, and pasted onto another site?

I’d like to make a game that sells products and I don’t want players just going to some pirate site to have everything unlocked for free.

---

<div class="post-metadata">

**Author:** ![nasimiasl](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nasimiasl/32/34_2.png) [@nasimiasl](https://forum.babylonjs.com/u/nasimiasl)\
**Post date:** [August 22, 2020, 8:08am UTC](https://forum.babylonjs.com/t/any-way-to-make-closed-source-games/13587/2 "2020-08-22T08:08:39Z")

</div>

hey  
you can not close the JavaScript 100% in browser  
it is not depend for BABYLON js but you can make encryption and hide your key  
that can make hard for copy and use it  
for myself i make key from domain name and encrypt my js files so that just work on the main domain but it not mean i close it completely

---

<div class="post-metadata">

**Author:** ![morterra](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/morterra/32/25383_2.png) [@morterra](https://forum.babylonjs.com/u/morterra)\
**Post date:** [August 22, 2020, 2:24pm UTC](https://forum.babylonjs.com/t/any-way-to-make-closed-source-games/13587/3 "2020-08-22T14:24:01Z")

</div>

Basically, no. Anything you send to the client they can modify (even compiled code, with a little bit more difficulty).

“I’d like to make a game that sells products and I don’t want players just going to some pirate site to have everything unlocked for free.”

Is your game single player? If so, then there’s not much you can do to stop piracy or “hacking”, you can only make it less easy. I just minify & uglify JS to make it less easy, but anyone with programming experience will easily get past it.

If it’s multiplayer you could handle interactions authoritatively, which can fix a lot of those issues.
