Daniel-MD
Regular Member
- Dec 2, 2007
- 355
- 339
Hello everyone,
I'm working on something and I need a little bit of help..
So the issue.... I need to protect some javascript code that is generated on thy fly by php in 2 steps
1) If some one call www.site.com/jscode.php the script will not show anything but if is called like <script src="www.site.com/jscode.php"> to show the javascript.. Any clue how I can do that... ?
2) javascript code will be obfuscated on the fly using http://dean.edwards.name/download/#packer php version ..and here another question arise.. Will some antiviruses detect something like function(p,a,c,k,e,r).....unreadable code as malicious code ?!?
Thanks and looking forward for your answers
I'm working on something and I need a little bit of help..
So the issue.... I need to protect some javascript code that is generated on thy fly by php in 2 steps
1) If some one call www.site.com/jscode.php the script will not show anything but if is called like <script src="www.site.com/jscode.php"> to show the javascript.. Any clue how I can do that... ?
2) javascript code will be obfuscated on the fly using http://dean.edwards.name/download/#packer php version ..and here another question arise.. Will some antiviruses detect something like function(p,a,c,k,e,r).....unreadable code as malicious code ?!?
Thanks and looking forward for your answers
Last edited: