My games being hacked easily by right click inspect. How can i prevent this?

Client-side code (HTML, CSS, JavaScript) is called “client-side” because it is downloaded to the client and executed there. There is absolutely nothing you can do to protect this code from users seeing it and modifying their local copy of it. Even storing your JavaScript in an external file and linking to it does not solve the issue. The same is true with obfuscation.

All protected code should exist on a secure server and execute there in a “server-side” architecture, such as .aspx, .PHP, .jsp, etc.

Leave a Comment