PDA

View Full Version : Javascript protection with ..php ?


RutgerB
05-06-2003, 11:48 AM
Hi I tried somethings to protect a javascript I made.
I know what you think: "noob", but I made a cms and I dont want to give away the source right away.

I tried somethings with php sessions on:
http://www.onssneek.nl/test/test.php

Now who is willing to try and get the javascript source.
So to show me my code is faulty :)

cg9com
05-06-2003, 11:51 AM
I got a "Cannot find server"

I dont get it, javascript is a client side technology, there would be no way to hide it.

RutgerB
05-06-2003, 11:58 AM
Originally posted by cg9com
I got a "Cannot find server"

I dont get it, javascript is a client side technology, there would be no way to hide it.
thats the best to protect your javascripts right :P
Server is online agian :)
The provider is/was messing.

Well try it out try to get the javascript source
http://www.onssneek.nl/test/test.php

RutgerB
05-06-2003, 12:08 PM
.

arnyinc
05-06-2003, 01:26 PM
When I go to java.php

fake_source=true;
Warning: Unlink failed (No such file or directory) in *path name listed here* on line 19

RutgerB
05-06-2003, 01:36 PM
Originally posted by arnyinc
When I go to java.php

fake_source=true;
Warning: Unlink failed (No such file or directory) in *path name listed here* on line 19
Not anymore someone on another forum found out that when you choose "save this page"in IE that the file java.php was saved with the javascript inside (oeps :) )

So now I changed somethings in the php code to prefent this and a miscode in my php brought up that error.

btw because its clientside a packetsniffer will always be alble to get the javascript source.