Solved

hide the source!

Posted on 2000-03-27
5
149 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

743 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

11 Experts available now in Live!

Get 1:1 Help Now