C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Tips » Web Development »

Protect Javascript


Posted Date: 13 Sep 2009    Resource Type: Tips    Category: Web Development
Author: datta gunturuMember Level: Gold    
Rating: 1 out of 5Points: 2



Programmers are usually very possessive of their code. So if you think you have written this great script in JavaScript and don't want to share it with everyone, you can hide it from the web page source using the SRC attribute of
Here my_Secure_code.js is the name of the file containing your JavaScript code. As evident from the SRC value, the file is located in the same directory as the html document. The file name can be anything you desire, however, the extension must be .js.

This method of hiding and protecting the JavaScript code is not foolproof. Though the JavaScript code is not displayed when you view the page source, smart visitors can check their cache and can find this external JavaScript file there. Also, web site grabbing programs like Go!zilla or Getright download external JavaScript files to display the web page correctly.



Responses

Author: vijaybabu    26 Oct 2009Member Level: Silver   Points : 0
nice one thanks man its really helpfull


Author: saravana jagan    01 Nov 2009Member Level: Silver   Points : 0
good tips, helps a lot.
keep it up

regards
jagan


Author: Gaurav Arora    01 Nov 2009Member Level: Diamond   Points : 1
Hello Datta,

A good tip helps a lot.
Its a good but you can make it extraordinary try to revise it.




Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Protect Javascript  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Import Excel files easily into Java reporting tool
Previous Resource: Dynamic Row & Automatic Computation for Web Input Report
Return to Discussion Resource Index
Post New Resource
Category: Web Development


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use