In message <10*************@corp.supernews.com>, Michael Hill
<hi****@charter.net> writes
I saw a site that looked pretty good, but I could view the source.
2 questions:
1) how can I do the same for my site
2) any way to get around this?
vgstrategies.about.com attempts to stop you looking at the page source
and also stops CTRL-C (text copy) from working.
It only seems to work in Internet Explorer, and appears to rely on this
<BODY> tag to do its evil work:
BODY onselectstart="return false" ondragstart="return false"
BGCOLOR="#ffffff" TEXT="#000000" LINK="#000090" VLINK="#000090">
Saving the page source from within IE, removing onselectstart="return
false" ondragstart="return false" with notepad, saving it, and reloading
the changed local file gets around the problem. Using another browser
such as Firefox is also a solution. :)
I don't think there is a fool-proof way to hide the page source. After
all, a browser will always need it to render the page.
Some of the Javascript scripts that encode pages and display them with
document.write()s are quite clever, and would probably stop most visors
seeing the source. Of course not everyone allows their browser to run
Javascript scripts. Do you really need to hide the source, though? I'm
sure most, if not all, of us 'borrow' ideas and tricks from elsewhere.
Shouldn't we be willing to share our knowledge?
--
Martin Jay