Click here to Skip to main content
15,919,879 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Actually I'm developing a Chrome extension and a jQuery plugin to upload it and sell it. When I "Inspect source" of the page and I click on the "Resources" tab, the javascript file looks empty. How does Codecanyon do that? I want to have file theft prevention in my own website too, but I don't know how to do it. I know php and javascript and there's no method to do it, because the browser downloads the file to execute it.
Posted
Updated 5-Mar-13 13:55pm
v2

No way. JavaScript is fully exposed to the client. This is how it works. The code can be obfuscated, maybe in a sophisticated way making the use of the code much more difficult, no more.

—SA
 
Share this answer
 
Comments
bbirajdar 6-Mar-13 1:45am    
Obfuscation is the only way.. I agree +5
Sergey Alexandrovich Kryukov 6-Mar-13 1:48am    
Thank you,
—SA
 
Share this answer
 
Comments
NightCodeStalker 6-Mar-13 1:15am    
can you explain what is a javascript obsfuscator ?
bbirajdar 6-Mar-13 1:21am    
Yes of course .. Check here^
Sergey Alexandrovich Kryukov 6-Mar-13 1:24am    
Aha, someone does not like our answers :-)
My 5.
—SA
bbirajdar 6-Mar-13 1:44am    
Yes SA.. It seems NiceCodeStalker was annoyed when I posted him the link to Google search results... I don't think we will see him writing code the next year... We know why...:)

Thanks for the compensation...
Sergey Alexandrovich Kryukov 6-Mar-13 1:49am    
If was only for the correct answer. We don't care about those votes, do we? :-)
—SA

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