Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Supress html source code
Message
 
 
To
26/05/2001 20:12:52
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00511851
Message ID:
00511899
Views:
14
>Hi, I am wondering is there a way, code wise to not show any source code either by right mouse clicking or from the view, source area in IE & Netscape.
>
>
>Regards
>
>Gary Rimell
>Optecs

AFAIK, if you use normal generation techniques, the end users are always going to be able to see something because HTML is simply a text stream interpreted by your browser. It's stored locally so the end user can view what's being interpreted any time they want.

You could do a couple a things to make it harder. Create Javascript or VBScript files on the backend that generate the HTML stream for you. In your main page, simply have references to it. Here is an example from the MS site:
< script language="JavaScript" src="/library/toolbar/toolbar.js" >< /script >
< script language="JavaScript" src="/library/toolbar/en-us/globalHP9.js" >< /script >
< script language="JavaScript" src="/library/toolbar/en-us/localHP9.js" >< /script >
The code within these Javascript files is initially hidden from the end user. There is nothing to prevent the end user from typeing this URL in and downloading the JS file. They can then view it from a text editor, but it does add one layer of security that the casual browser won't understand.

To truly hide the source, you could use a CGI/ISAPI program to generate the HTML stream and send it to the end user. The end user won't be able to see the logic behind it and they will not be able to download the CGI program. However, they will still be able to look at the HTML generated by it.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform