View Full Version : a VIEW SOURCE question


swi.t
04-20-2003, 02:02 AM
i know there aren't any ways to block view source 100%, but i was on someone's site and i happened to peek at the source, but when i went to the toolbar on the top and did a view>source, a pop up came up and said something like "U TRYIN TO LOOK AT MY CODES, HUH?!"

i was juss wondering how u do that..

Dude128
04-20-2003, 02:20 AM
I've never seen a way to have a pop up when using View>Source- was it a JavaScript popup, or just text in Notepad like when you normally view source? if it was in Notepad, it was just a comment. put a message between <!-- and --> then put a bunch of blank lines after it, and when someone views the source, thats all that they'll see in the window. some people won't realize that you can scroll down to see the code, so it protects it from the less experienced ;)

nikkidee
04-21-2003, 10:23 PM
i think that the code is-->

<script language="JavaScript"><!--function click(){if (event.button==2){alert('dont copy')}}document.onmousedown=click// --></script>

im not 100% sure but i tried...

J E P P O
04-21-2003, 10:39 PM
there is 1 way...

try this! http://www.cgiscript.net/cgi-script/csNews/csNews.cgi?database=js_misc%2edb&command=viewone&id=60

it doesn't actually stop ppl seeing the source box but wen they do see it, there is nothing

pb&j
04-21-2003, 11:48 PM
Originally posted by J E P P O
there is 1 way...

try this! http://www.cgiscript.net/cgi-script/csNews/csNews.cgi?database=js_misc%2edb&command=viewone&id=60
here is a link to show the source coding of their own example page...
http://www.cgiscript.net/encrypt.htm

all they are doing is using a bunch of escape characters to kinda hide the real coding...

%3c = <
%21 = !
%23 = #
%20 = space
%3e = >
%3d = equals
%22 = "
%a9 = copywrite symbol
%0D%0A = return
%2c = ,
%27 = '
%28 and %29 = open and closing quotes

any experienced person can get through this mess easily.

weezer_rocks182
04-25-2003, 06:00 PM
there was this cool one in which when you right-clicked once it would say "2 more times and your computer is frozen..." and you do it again "1 more time..." and the last time it would say something like "why dont you listen? your computer is locked." and it would freeze. i miss that script, it was soo cool..