How can I prevent my javascript from Firebug view?So that I can prevent Hacking from Javascript?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot prevent anyone to examine your JS when browsing your page.
The reason is simple: When you visit a web site, all its content (HTML, images, scripts, etc.) is downloaded to your machine in order to process and display it.
Once the data is downloaded, you can do what ever you want with it (if it is legal is another issue).
But you can make it more difficult for others to examine your JS code by obfuscating it.
See this question: How can I obfuscate JavaScript?
This might or might help. It won’t stop those who really want to know.
The question is, is your code so valuable, dangerous or whatever that you really have to think about such stuff?