Hi I second the question as to why anyone would want to hide html code?
As for javascript, the same applies, but I'm not wanting to teach my Grandmother how to such eggs, but by simply writing all javascript in a .js file, sticking it in a folder on your site and linking to it using: <SCRIPT language="JavaScript1.2" src="/js/homepage.js"></SCRIPT> Will do the trick and keep your javascript source code away from un-motivated prying eyes. The only 2 times you really want to hide stuff (in my opinion) is data; in the form of images or data that is printed out that a competitor might harvest. 1. Images There is 3rd party software out there that actually encrypts images and even tags where it gets displayed on the web (archemedia i think used to do this). All this disable right hand click stuff might keep the extreme novice out, but otherwsie it's a bit like having a notice "please don't steal anything" on your locker. 2. Harvestors This is more difficult (!), but anything is in theory is possible. As for your code, in my experience there is a wealth of fantastically written code out there for free. My advice is to let it go. You should be flattered anyone would want to use your code! Cheers Mike --- Andy Engle <[EMAIL PROTECTED]> wrote: > Juha Halmu <[EMAIL PROTECTED]> wrote: > > > > http://javascript.internet.com/page-details/no-right-click.html > > http://www.aveda.com tried that trick, and I had > their source code in > less than 5 seconds after attempting the right > click. Even if you > can't right click, you can just go to "Save As..." > (I did this with > Internet Exploiter), and you can save the entire > page. When you save > the page, Internet Exploiter also grabs all of the > other HTML, > Javascript, and image files that go into making a > single page, and > saves it all to a location you specify. So, in this > case, not only did > I work around aveda.com's attempt to prevent me from > looking at their > source code, but I also had all of their supporting > code as well (js > files, etc.), saved to a "folder" on my desktop, > with one click on > "Save As". > > Even if you can't right-click, there are so many > other ways to get code > and graphics ("Save As", "View Source", telnetting > to port 80 on the > httpd, and so on). > > I like what Clayton Nash said earlier: > > > If it's for security, you've already missed the > point completely. If > > your security depends on the user not seeing the > html source -- or > > even what's inside an ActiveX control then you > have no security. > > Exactly. > > > Andy > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with > body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: > "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
