Zeronese, Inc.
Home
Help & Support
Contact Us
Website Templates Web Hosting Reseller Hosting Web Design Web Directory Article Directory Webmaster Tools Make Money Marketing SEO
  economic web hosting Browse Webmasters Article Directory  
 


Log in - Submit Your Article Here

Browse Article Directory

Advice and Reviews Articles Advice and Reviews
Domain Names Articles Domain Names
ecommerce Articles ecommerce
HTML and CSS Articles HTML and CSS
Internet Search Engines Related Articles Internet Search Engines Related
Make Money Online Articles Make Money Online
Other Web Subjects Articles Other Web Subjects
Web Design Articles Web Design
Web Design Software Articles Web Design Software
Web Development Articles Web Development
Web Hosting Articles Web Hosting
web publishing content Articles web publishing content
Website Marketing Articles Website Marketing
web content article categories View all Categories

Article Directory News Letter

 


 
     

 


  By: Joseph Hamilton  
 

Okay, so your problem is that you have been developing in one of many web development languages such as PHP, JSP, or ASP.NET and you love that fact that your code cannot be stolen, but you hate the fact that your javascript can be stolen.

First, I will tell that in order for your javascript to be run, it has to be downloaded by the client! How else can they run it on their screen!

Let's talk about how others are able to view your javascript. First, they may simple view the source of your webpage and presto! There is your inline javascript, naked and embarrassed. So you say, let me put it in a separate file, that will show them. All they need to do is type in the name of that file at the end of your url and they have your javascript. Trust me, I have done it.

Maybe there is a way to stop them from viewing the source. You could make your page pop-up in a window with no menus or anything, that will stop them. Wrong! In firefox all you need to do is press f11 to get your menus back or simply press ctrl+u to get the source directly.

But what if you could block these key presses? Then they couldn't have the menu or press ctrl+u to view the source. Wrong! If they are viewing your site on their computer, that means that is has been downloaded to their computer.

You must understand how a web browser works. It has 2 components, a downloader and a renderer. The downloader connects to the web server and downloads the html then the images and then whatever else needs to be downloading, including the javascript into a temporary place on your hard drive. Then the renderer renders the page using the browsers "render" engine and shows you what that page is. So how can you view a web site without it being on your hard drive? You can't!!!

What can we do?

The most effective solution is no javascript. Wait that doesn't work. Sorry, drugs. You can use an obfuscation tool. If you need an example go to dhteumeuleu.com. He has the best javascripts I have ever seen, but they are utterly unreadable because all the variables are 1 letter long. It's not impossible but very hard to read.

In summary, is there a way to stop anyone from getting your javascript? not while allowing them to run it.

Joseph Hamilton
Webmaster javascripttricks.com

Protect Java Script Now
http://www.javascripttricks.com/

Article Source: zeronese.net article directory.
Article Word Count Appx. : 411
Article Category: Articles » Web-Development » JavaScript
See all articles by Joseph Hamilton


Note: Copying of article contents in whole is permitted provided that article body and article author by-lines are kept intact and unchanged. Hyperlinks and/or URLs including article source link provided by authors and/or zeronese must remain active at all times.

     
The views and opinions of authors expressed on Zeronese Article Directory web sites do not necessarily state or reflect those of the Zeronese.net .


Feedback News Letter Site Map Terms and Policies About Us All copyrights reserved 2008 Zeronese, Inc.©