Solved

hide the source!

Posted on 2000-03-27
5
150 Views
Last Modified: 2010-04-09
Hi,

I'm wondering how can i stop others from viewing my HTML source page?

rgds,

B
0
Comment
Question by:BSIM
5 Comments
 
LVL 5

Expert Comment

by:compmania
ID: 2661745
http://www.vmirror.com/forums/load/html/msg0423460411988.html

That is about all I can find. I know there is a way to disable right-clicking but I can't find it now.
0
 
LVL 1

Accepted Solution

by:
bassque earned 10 total points
ID: 2661762
the only way Ive ever seen it actually done is by scrambling the source with a program called scriptkeeper
available at:
http://psyral.com/
0
 
LVL 11

Expert Comment

by:mouatts
ID: 2665523
If you mean never being able to see it then the answer is that you can't ideas such as disabling the buttons don't work if some one telnets to your site.

Probably the most effective way, although still hackable, is to generate the entire page from javascript which is held in a javascript library file rather than within the html file.

The gist of this would be

<HTML>
<SCRIPT LANGUAGE="javascript" SRC="myjs.js">
</SCRIPT>


Then the js file would contain the document writes to produce the page.

Viewing source will then not show the javascript its self.

HTH
Steve
0
 
LVL 1

Expert Comment

by:Hocam
ID: 2678975
No, you cannot hide your HTML code whatever you do.

I have seen people use scripts to disable right click:
Here is one:

<SCRIPT language=javascript>
// No rightclick script
// (c) 1998 barts1000
// barts1000@aol.coma
function click() {
if (event.button==2) {
alert('Put your text over here!')
}
}
document.onmousedown=click
</SCRIPT>

The problem would be I can still view your source code either by from the 'View' menu in IE or by just simply saving the HTML file to my harddisk and viewing it in Notepad.(IE not only saves the HTML page also the graphics embedded to it. :)

You can also retrieve any htmls or images from the browser cache....

So, there is no really a way to hide your HTML code.

Thanks...good luck...
-Hocam
0
 
LVL 5

Expert Comment

by:compmania
ID: 2680810
Only IE 5+ saves the images also.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now