Protecting source code with frames

  • Thread starter Thread starter Guest
  • Start date Start date
Just create a frameset based web site. See FP Help regarding using frames.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================
 
What you need to do is make two pages. One of them has your content--design
it as you normally would. Then make a frames page. One that has two columns
or two rows will work fine. Delete one of those columns or rows, leaving
just a single frame. In design view, you can tell FrontPage which page the
frame should initially load.

What this is supposed to accomplish is this--when the user clicks "source"
on the view menu, the code that comes up is your frameset page, not the page
you're trying to protect. But the truth is, this will deter all but the most
casual code-viewers.

Furthermore, you should note that the right-click disabling script that the
page you linked to advertises is very easy to defeat. Simply press and hold
your left mouse button, then press and hold the right mouse button. Release
the left mouse button, then release the right mouse button, and ta-da, the
standard right-click context menu comes up and you can view the source or
save the image. A better bet might be to find a script that replaces the
right-click menu with another menu instead of trying to disable it.

It all comes down to what you're trying to protect. Some sort of little
navigation button that you plaster everywhere is probably not that important.
Professional-quality photographs like you see on Corbis probably are worth
trying to protect....and in that case, you might as well do what Corbis does
and put a very disruptive watermark onto the picture.
 
Do you honestly believe that there is any HTML that is worth "protecting"?

Bob Lehmann
 
Does not work.
Highlight some text on the page, then use View Source. The page (not the
frameset) source appears.
As Murray implied, if you put it on the web, you cannot protect it.
 
What you need to do is make two pages. One of them has your
content--design

What he NEEDs to do is not to waste his time. And what you are advising is
purely a waste of time.
But the truth is, this will deter all but the most
casual code-viewers.

Misstatement. This should read "this will deter ONLY the most casual
code-viewers." Which brings me to my first point. Are people who are so
ignorant that they can't figure out how to view your HTML markup any threat
to you? Are they even capable of using it? Of course not. The people who
might be a threat can easily get at any code you publish. Therefore, any
attempt to thwart them is a waste of time.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

Expect the unaccepted.
 
Back
Top