View Full Version : protect my JS files
ottodo
Sep 9th 2006, 10:32 am
Hello,
I just want to know how can I protect my JS files?
I want to protect these files, so no one can read 'em!
Cheers!
ottodo
Sep 9th 2006, 2:20 pm
No one helps? :(
sea otter
Sep 9th 2006, 10:19 pm
What you want is a javascript source code obfuscator. Do a google search on "javascript obfuscator" and you'll get lots of results.
Jean-Luc
Sep 9th 2006, 10:34 pm
JavaScript is client side software. It runs in the browser of your visitor. If no one can read it, no one can execute it.
All what you could do is to obfuscate it, but a clever user could read it anyway (as his browser can).
Jean-Luc
angellica2017
Sep 10th 2006, 12:13 am
Why you didn't try with HTML Guard or other stuff like that?
VONRAT
Sep 11th 2006, 7:17 pm
i dont understand why you need the hastle to make your script unreadable by the human eye ... if it is something really important then best you do the coding server side :)
angellica2017
Sep 12th 2006, 4:43 am
Perhaps he don't want someone stole his script without his permission....
I think that's his main purpose for hiding her script.
Btw, you may not make any link exchange with hiding your script!
VONRAT
Sep 12th 2006, 8:21 am
Btw, you may not make any link exchange with hiding your script!
hmmm .. didn't know that ... could you explain further? thanks
ottodo
Sep 12th 2006, 1:10 pm
Btw, you may not make any link exchange with hiding your script!
I don't want to do that, i just want to protect my function in my .js file
:confused:
Pat Gael
Sep 12th 2006, 1:40 pm
There is a script for doing that but requires your server support ASP
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8053&lngWId=4
ottodo
Sep 12th 2006, 3:13 pm
thx for sharing
i'll check it right now
avakai
Sep 16th 2006, 7:18 pm
You cannt hide the javascript. But you can do obfuscation. Use Ajax, so that you can hide mainlogic on the server and remaining in the javascript.
ottodo
Sep 17th 2006, 5:20 am
You cannt hide the javascript. But you can do obfuscation. Use Ajax, so that you can hide mainlogic on the server and remaining in the javascript.
Well is there converter from js to ajax?
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.