Is there a way to prevent "right click" and "view source" option for my web page?

Daxxax

Senior member
Mar 9, 2001
521
0
0
I don't think thats possible, if you don't want peps to see the source how will their browser display the page??
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
You can use VBScript to capture right-clicks, but it's pointless. If I really want your page I'll use wget, lynx, etc to download it.
 

Daxxax

Senior member
Mar 9, 2001
521
0
0
even if you do prevent right clicks, they can still hit ->View->Source on their toolbar so what's the point??
 

FreshPrince

Diamond Member
Dec 6, 2001
8,361
1
0
It makes it harder to steal images and stuff if right click is disabled...plus it prevents n00bs from viewing my source code if they didn't know how to get it from the menu. Every little effort counts. Either that or put everything in Flash....virtually impossible to get the source code then :cool:
 

FreshPrince

Diamond Member
Dec 6, 2001
8,361
1
0
Originally posted by: Nothinman
plus it prevents n00bs from viewing my source code if they didn't know how to get it from the menu.

Yea, wouldn't want people to learn would you...

not if all they want to do is steal my idea... I don't really care about my main page and pretty much everything else(they can look at those codes all they want), but this one page contains some good code that just wouldn't be cool if someone went in, copied it, and call it their own...
 

mjquilly

Golden Member
Jun 12, 2000
1,692
0
76
not if all they want to do is steal my idea... I don't really care about my main page and pretty much everything else(they can look at those codes all they want), but this one page contains some good code that just wouldn't be cool if someone went in, copied it, and call it their own...

rolleye.gif
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
not if all they want to do is steal my idea... I don't really care about my main page and pretty much everything else(they can look at those codes all they want), but this one page contains some good code that just wouldn't be cool if someone went in, copied it, and call it their own...

Well I'm sorry but that's how HTML was designed to work, if you need to protect your precious formatting algorithms you'll have to hide them in server side things like php or somethign using CGI.