Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I don't suppose it's possible to hide the source.... 1

Status
Not open for further replies.

Webrookie

Programmer
May 18, 2000
112
US
when someone does a "view source?"  is it possible to put like some text in the editor when they try to view source, or just not allow it...?
 
you cant hide the source of the client side HTML, if you are writing in ASP, or some other serverside language, the client never see's these codes, they only see the HTML (or other) responses that get sent back to the client, in ASP, the Active Server Page Code, is prcoessed before it reaches the client. <p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
Yeah, I know that.&nbsp;&nbsp;But I don't want the client to see anything if they do a view source.&nbsp;&nbsp;Nothin'
 
> that stinks.

hehe, well the browser can't render your HTML unless you send it the HTML. Once the browser receives the HTML it can do what ever it want's to with it, you can't dictate what the browser can or can't do, that just wouldn't make any sense.

A point to note is that most browsers don't supply any method to view javascript code that was linked using client side include <script></script> tags. So you can, sort of, hide your client side Javascript. Sort of because if I want to I can tap directly into the TCP/IP stream and obtain your source that way if I really wanted to. However I doubt that anyone wants your 'Web' code that much.

&quot;But, that's just my opinion... I could be wrong&quot;.
-pete
 
The only way to stop someone from seeing the source is to create a Java Applet or ActiveX control or userdocument.

Pete:

>A point to note is that most browsers don't supply any
>method to view javascript code that was linked using
>client side include <script></script> tags.

Actually, it does. Type this line into the url/address box in your browser (don't just click on the link, type in the entire line):
view-source:
 
Java applet, ActiveX, etc compiled sources, I'm kind of curious if any company has ever pushed the idea of compiled HTML (I known it seems to exist on MSDN Library [not online])
 
No problem, Pete. It's amazing how many little tidbits like this there are that aren't commonly known.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top