# View Code button

**URL:** <https://forum.code.org/t/view-code-button/31863>\
**Category:** Uncategorized\
**Created:** [December 7, 2019, 12:54pm UTC](https://forum.code.org/t/view-code-button/31863 "2019-12-07T12:54:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prof.daniel.lazar](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@prof.daniel.lazar](https://forum.code.org/u/prof.daniel.lazar)\
**Post date:** [December 7, 2019, 12:54pm UTC](https://forum.code.org/t/view-code-button/31863/1 "2019-12-07T12:54:06Z")

</div>

I don’t like that everyone is viewing my code on my projects. Can I turn off the “view code” button?

---

<div class="post-metadata">

**Author:** ![infinitestasis](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/infinitestasis/32/5047_2.png) [@infinitestasis](https://forum.code.org/u/infinitestasis)\
**Post date:** [December 8, 2019, 1:27am UTC](https://forum.code.org/t/view-code-button/31863/2 "2019-12-08T01:27:36Z")

</div>

You can’t. You cannot stop people from remixing your game. You cannot stop them from viewing your code. However:

1. You can obfuscate your code.
2. You can stop people from remixing it by using getKeyValue to detect remixes and force the game to not work.

Only do this if you deem your code valuable. Otherwise there is no point in doing this.

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [December 10, 2019, 3:29am UTC](https://forum.code.org/t/view-code-button/31863/3 "2019-12-10T03:29:07Z")

</div>

I don’t believe you can turn that off once you decide to share your code. If you don’t share it, you can keep your projects hidden, but once you share, that button is always available. I don’t want to speak for [code.org](http://code.org), but I’m guessing this is mostly because this environment is a training environment for novice coders (13-18 years old being the main target audience) and being able to look at other code is a good way for them to learn and add features to their own code. It’s also a good way for them to share and get help on their own code.

Best wishes!

Mike
