Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I have a game which was writen in Html and JS. I want the user can play it only on my website and prevent him to download the code and use it in their local computer. I saw that I can't prevent downloading the code, but can encrypt it. But it dosen't good enough for me, because the encrypted code can work after downloading. Have you have more suggestions how to prevent using my game after downloading my code?

Thank in advance
Posted

1 solution

Don't waste your time. It's not possible with the today's set of standards and technologies defined for HTML5 and JavaScript to work on browsers.

Both JavaScript and HTML5 run on client browser which means that the browser is already downloading it to make it work.

You can add fancy things around like obfuscator etc. but then there are deobfuscators which are also available.

The thing is if you don't want the end user to see and be able to download it on client machine, don't build it HTML5 and JavaScript. Period!

However, if you are developing some super cool and awesome HTML5, JavaScript solution which has not been developed before and is really core to your business; you can get it copyrighted and follow a legal action if someone copies it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900