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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

no View source and with a dialog box

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi everyone,
I'm new to web page creation. I've created an html page and I don't want to let anyone to view the source listing. If someone tries to view the source, a dialog box should appear. I know that we can do it by calling using javascript coding from another web page, but I'm not able to do it. Can anyone help me on this.
Thanks in advance & regards,
Kumar
 
NOTHING WILL STOP ANYONE FROM VIEWING YOUR SOURCE THAT IS 100% CERTAIN.

now if you really want to waste time :

function returnFalse()
{
return false;
}

document.oncontextmenu = returnFalse;

give me half a second and I see your source. Gary Haran
 
Every page and picture viewed on the Internet is cached in a temporary cache on the individual computer. If you want to hide something, don't put it on the Internet. You can disable the right mouse click for viewing the page source, but I don't think there is any way to disable viewing the source in all browsers from the toolbar.

There's nothing you will do, being new to web page design, that many, MANY other people haven't already done. Is what you're hiding something you developed yourself, or that you got from somewhere else? Trying to hide page source only works for those who are about as new to web page design as you are. If what you're doing is new and great, put a copyright notice on it that it's yours and you expect to get credit for it. Not that this is worth anything monetarily, though.

If you have Javascript to hide, use ASP and have that write directly to the page so only the output is seen. Otherwise, anyone with even a little bit of experience can still get the code from your page if they want.
 
if you are a beginner you could also try PHP wich is like ASP but easier to learn and it is not Microsoft so you will not be assimilated. [tongue]

Phptriad installs on your computer and is excellent to learn server side programming. Comes with a web server (apache), php engine, MySQL (database) and phpmyadmin(administration for your MySQL database).

Hope this helps. Gary Haran
 
AAAAAAAAAAHHHHH! HERE WE GO AGAIN!
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Thats right...here we go again, every HTML book or article should state in bold printing "You can't hide your source code"
Had a guy yesterday saying he has done it and no body could touch his coding or graphics because the page was in flash, I reposted an image and various sizes of his other pics, his next reply was 'OK I stand corrected' cant even hide flash coding.
 
Wullie, I have no idea what happened to the other thread. I haven't done anything. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
HAHAHAHAHAHA, LOL, I KNEW THIS WOULD HAPPEN.

HERE jen1000123 READ THIS:

thread215-202580

No-one here is going to get into this again. This thread used to have 150 replies all basically saying the same thing.
YOU CAN'T DO IT, YOU CAN ONLY DETER PEOPLE
colorado.gif
"Quest for the Cup - 2002!"​
 
It wasn't me either Wullie. BTW, now that you're here, what was that link to that picture that had the "whispering voices", gotta show that to my bro.

Thanks!
colorado.gif
"Quest for the Cup - 2002!"​
 
You cannot disable the toolbar!!

If you want to hide your source code, do not put it on the internet for everyone to see!! As mentioned loads of times before the code that you are trying to hide is probably not worth stealing anyway..


Nate,

I don't know where that one was, I will have a look and try to find another when I get time. I will let you know..

Hope this helps Wullie

 
Last time someone asked this question there were over 200 threads. Lets not go there again and leave it at you can't completely hide source code. provide tools to let people become their best.
 
haven't you guys heard of the DONTSTEAL attribute for the BODY tag?? LOL

you know... i think i must be getting stupider! i know there isn't any point to reading the "hide your source code" posts, but i just cant help it: the urge to show up and roast some arrogant. newby's perpetuation of a lost cause is just too tempting!

sorry if this is offensive to anyone... but come on! do people even try researching this before the ask?

for a good laugh: -gerrygerry
Go To
 
Gerry, thanks for that line to Vortex! I love the content on that site. Their FAQ should be required reading for ALL web site designers. Their link to the microFAQ is also very useful (and entertaining). I'm saving the links to both so I can post them in answer to questions here - I'm sure I'll use them.
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top