Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Hi,

I am writing a complex webapplication using HTMl5, CSS,JavaScript and calling a c# webservice using AJAX. I don't want it to get ripped off, and I'm wondering if there's any way to protect the source from being viewed in the clientside.

I am particularly concerned about the JavaScript, and I'm wondering if I can protect it by hosting it in seperate files that cannot be viewed directly.
Posted
Comments
Sergey Alexandrovich Kryukov 13-Mar-13 2:05am    
How about just thinking logically a bit? :-)
—SA

1 solution

Read these words aloud: "client side". Don't you hear your answer already? :-)

If something is on the client side, already on client side, the already client has a full access to it, it's too late to "protect" anything. What protection can you talk about? You can only make the code hard to understand, that's all. This is called "obfuscation". There are special tools to obfuscate JavaScipt code on the fly, before it leaves the server part.

—SA
 
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