Getch
03-25-2003, 11:30 AM
How can I hide the HTML & JS code so visitors cannot see it.
10X
10X
|
Click to See Complete Forum and Search --> : How can I hide Getch 03-25-2003, 11:30 AM How can I hide the HTML & JS code so visitors cannot see it. 10X ozz 03-25-2003, 11:32 AM you can't really but try a little program called webcrypt4 which will render the coding unreadable. Vladdy 03-25-2003, 11:43 AM Is your coding that bad :D :D :D khaki 03-25-2003, 01:42 PM Hi Getch... Good coding or bad coding (yikes, Vladdy!)... your code can't really ever truly be hidden (not yet anyway) - and especially client-side code. There have been many raging discussions on this topic here in this forum. And I'm afraid that every one of them have served to do little more than produce insults among the participants. Hopefully you haven't lit another match under some of the more volatile types that's cruise through here (lol). And hey... even ugly code is beautiful to the person who wrote it... k AdamGundry 03-25-2003, 03:35 PM You can't hide it, but you can make it difficult to use. Try this source code "encrypter": http://www.dynamicdrive.com/dynamicindex9/encrypter.htm Adam khaki 03-25-2003, 03:53 PM .... and here we go again (sometimes I feel just like Bill Murray in Groundhog Day. :rolleyes: ) AdamBrill 03-25-2003, 04:02 PM Originally posted by khaki Good coding or bad coding (yikes, Vladdy!)... your code can't really ever truly be hidden (not yet anyway) - and especially client-side code.What do you mean "not yet anyway"? Do you think it is going to be possible in the future? The internet is public. If people don't want their source seen, then don't put it in a public place... nkaisare 03-25-2003, 04:04 PM Originally posted by AdamBrill Do you think it is going to be possible in the future? Dunno about u, but me aint seen the future. Not yet anyway ;) AdamBrill 03-25-2003, 04:12 PM nkaisare - Actually, I was kidding. I think that I am pretty safe to say that it won't be possible for a long, long time(if ever). I personally am hoping that they don't ever add that into the browser... It would be just one more thing to annoy me while I am online. ;) khaki 03-25-2003, 04:26 PM Thanks for jumping to my defense Niket. Didn't sound like you were kidding originally though, Adam. You quoted me. Didn't see any: :) or :D or ;) or even :p Tough to tell it's kidding without some kind of indication, y'know. There are enough people who cruise around here who take any opportunity to bust my chops. I honestly thought that you decided to join them. Hope not. ability to actually see into the future... but unwilling to talk about it... k pyro 03-25-2003, 04:41 PM Most source code encrypters (all that I've seen) can be decrypted with a simple unencode command... AdamBrill 03-25-2003, 04:56 PM Your mad at me again... :( I thought you would know I was kidding... Sorry... And no, I didn't join the "pick on Khaki" group. ;) nkaisare 03-25-2003, 05:03 PM Originally posted by AdamBrill I didn't join the "pick on Khaki" group. ;) How can I join that group? I want to. I want to. :p :p I dont see source protection in the near future. Encrypt-decrypt is not foolproof because if your browser can decrypt and read, why cant you? It seems to be more of a browser-side thing... and we will always have resourceful people giving us good browsers sans the code protection. BTW, over last year, I have changed my views. I think reading source code is the worst way of learning HTML. At least not for doing anything more than posting pictures on the web. AdamBrill 03-25-2003, 05:14 PM Originally posted by nkaisare How can I join that group? I want to. I want to. :p :pYou don't know what you are getting yourself into. :D But, if you're sure you want to join, go to http://www.pickOnKhaki.com and sign up. ;) j/k nkaisare 03-25-2003, 05:25 PM Originally posted by AdamBrill j/k I guess that wasn't required. "j/k" was implied from the nature of your reply. AdamBrill 03-25-2003, 05:52 PM I can't believe you said that after reading this thread... :rolleyes: :p Larkdog 03-25-2003, 07:41 PM this topic of "hiding source code" has really gone around the block a few times... many say it can never be done, however, you can make it extremely difficult for someone (the inexperienced) take for example this little page... I bet you can't get its source code! http://24.144.19.198/hidden/hidden.html AdamBrill 03-25-2003, 07:51 PM Here you go:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- saved from url=(0044)http://24.144.19.198/hidden/doubleclick.html --> <!-- Error loading document --><!-- Blast! You've found the source code! --><!-- let me know if you can think of ways to make this more cunnung. --><!-- usual html start stuff --><HTML><HEAD><TITLE></TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"><!-- you like that? it redirects if you turn off js --><NOSCRIPT> <META http-equiv=refresh content=0;url=p.html></NOSCRIPT><!-- you can't look at just this page. it always jumps to frameset --> <SCRIPT language=javascript><!-- if (top.frames.length == 0) top.location = "hidden.html"; //--></SCRIPT> <STYLE type=text/css>#glass { LEFT: 0px; POSITION: absolute; TOP: 0px } .big { FONT-WEIGHT: bold; FONT-SIZE: 70pt } BODY { FONT-SIZE: 17pt } </STYLE> <META content="Microsoft FrontPage 5.0" name=GENERATOR></HEAD> <BODY text=#ffffff vLink=#999999 aLink=#ffff00 link=#0000ff bgColor=#000000 topMargin=10 marginwidth="10" marginheight="10"> <SCRIPT language=javascript><!-- // no explanation needed function disable_right_click(e) { var browser = navigator.appName.substring (0,9); var event_number = 0; if (browser=="Microsoft") event_number = event.button; else if (browser=="Netscape") event_number = e.which; if ( event_number==2 || event_number==3 ) { alert ("Please..."); return (false); } return (true); } // sniffs for key that activates context menus function check_mousekey() { var mouse_key = 93; var keycode = event.keyCode; if ( keycode == mouse_key ) alert ( "Well, well... looks like somebody did their homework." ); } // self explanatory function trap_page_mouse_key_events() { var browser = navigator.appName.substring ( 0, 9 ); document.onmousedown = disable_right_click; if ( browser == "Microsoft" ) document.onkeydown = check_mousekey; else if ( browser == "Netscape" ) document.captureEvents( Event.MOUSEDOWN ); } // self explanatory window.onload = trap_page_mouse_key_events; // resizes glass.gif to cover entire screen if (document.body.clientWidth) { var xxx = document.body.clientWidth; var yyy = document.body.clientHeight; } else if (window.innerWidth) { var xxx = window.innerWidth; var yyy = window.innerHeight; } else { var xxx = 2000; var yyy = 2000; } // yet another event handler document.oncontextmenu = function() { return false; } //--></SCRIPT> <!-- actual page content --><FONT color=#ffffff><BR><BR><BR> <DIV align=center> <DIV class=big>Try to get it!</DIV><BR><BR><B>Snag that pesky source code. </B></DIV></FONT></BODY></HTML>Still can't hide the source... It took me a whole minute... :D Larkdog 03-25-2003, 07:52 PM :) fun though huh?! Larkdog 03-25-2003, 08:27 PM #1 for people like me?:confused: #2 what the heck is javascript:var myWin=window.open("","myWin","width=800,height=600,scrollbars,resizable,menubar");var myStr=document.documentElement.outerHTML;myStr=myStr.replace(/\</g,"<").replace(/\>/g,">").replace(/\r\n/g,"<br>");myWin.document.open();myWin.document.write(myStr);myWin.document.close(); #3 for people like ME? you must mean the javascript MORONS like me!! hahahaha, i have no clue whatsoever what all that stuff means!! it took me about an hour to figure out how to get the source code and I did it the old fashioned way! Larkdog 03-25-2003, 08:35 PM hehe ROTFLMAO... thinking, thinking, thinki OOOOOHHHH!!!!! "Rolling on the floor laughing my a_._ off"!! i get it Larkdog 03-25-2003, 08:40 PM oops DaveSW 03-26-2003, 01:45 PM view source on the view menu works well too. edit just tried on a diff machine and it doesn't. neat i think. My machine must have got these naughty habits off my bro lol webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |