
June 20th, 2004, 01:51 AM
|
|
|
|
Join Date: Apr 2007
Location: GA,USA
Posts: 42
Time spent in forums: < 1 sec
Reputation Power: 2
|
|
|
Protect Javascript
Just looking for peoples opinions, ideas, and thoughts on this...
Most of my Javascript is small scripts that I only use mostly only when php "can't do that"...or when it just makes sense to do it client side.
I usually include it in my pages using <script src= but the user can still download the file by putting that in their browser. Is there any way to prohibit this? (I host my own)
Another thing, I recently saw a site link posted here where the developer had encrypted his entire site code - I have no idea how he did this and still have it viewable in a browser (I did not try it in Mo or Netscape but I am curious about that too), and I couldn't find the link again. This seems a valid solution to me, as many novice developers (including myself) would not know how to de-crypt this for their own use. As I recall, most codewalkers deemed his method of encrypting his site as "more trouble than its worth"...I am curious if anyone has a better solution or thoughts on this. Like I said, I generally don't even use much js, but what I do use (generally) I write. I am a long time non-web developer of Windows client app software and I'm used to my source being safe from prying eyes.
|