How can invisible js script code?

They have: 1 posts

Joined: Nov 2012

any one know how to invisible javascript? I've googled it but on result so far. I have tried so many way for hide the source code from the hacker but I can't ... I hope u guys can do that ..

He has: 1 posts

Joined: Nov 2012

The js runs on the client machine. That's why you have to send the code to the client machine, for it to be run. The client can display the page source and you can't stop that. Even if you could instruct the browser not to, tools like wget can pretend to be a valid browser and put the full webpage image onto a client text file, including the js.

The best you can do is to make the js as unreadable to humans as possible, maybe with the Online Javascript Compression Tool or something like it. The js will still run but it will be harder to comprehend. The functionality can still be patched and re-used but it can't be re-commented, and your meaningful data names will be lost.

They have: 25 posts

Joined: Jun 2012

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.