|
|
Author |
Thread |
punchdrunk
Paranoid (IV) Inmate
From: Calgary,Ab Canada Insane since: May 2001
|
posted 06-11-2001 16:53
can anyone send me in the right direction? i am looking to find out how to hide your html code.
|
twItch^
Maniac (V) Mad Scientist
From: the west wing Insane since: Aug 2000
|
posted 06-11-2001 16:56
Why would you want to do that?
|
Slime
Lunatic (VI) Mad Scientist
From: Massachusetts, USA Insane since: Mar 2000
|
posted 06-11-2001 18:09
Yeah, first, you need to ask, what are your motives here. most of the people at the Asylum would argue that it's better to let everyone see your code - we like to learn from others, let them learn from us!
But, if you really have a good reason, then you're still just about out of luck. There is no way to hide your HTML code. Period. There just isn't. There are tons of methods, and not one of them works. Your only hope is making it as complicated as possible. Mess it up, put it all on one line. It'll be hard to read. But that's about all you can do.
|
kars10
Bipolar (III) Inmate
From: Europe Insane since: Mar 2001
|
posted 06-11-2001 19:17
well, punchdrunk,
yu could search the asylum archive and find sme ways to "hide" your html.
But there are easy ways to have look at them anyway.
Of course, you'll find that in each of those topics 90% tell you want @#!$%# idea that is and I agree.
k10
PS: Well, I can't figure out how to see the source code of an .asp (no wonder). Maybe you should learn who to program asp's if you code is so important to you...
only change remains
|
punchdrunk
Paranoid (IV) Inmate
From: Calgary,Ab Canada Insane since: May 2001
|
posted 06-11-2001 22:20
kars maybe you should check your spelling while i run right out and learnt to program asps.
you all talk like i am violoating some law by wanting to hide my code, F**k all i am trying to do is hide it from the other people i am working with at school so they dont copy my stuff.
|
Jeni
Paranoid (IV) Mad Scientist
From: 8675309 Insane since: Jul 2000
|
posted 06-11-2001 22:21
You don't need to worry about them stealing your code if you carry a big stick around with you...and talk to it...
:: j e n i ::
fist-eater
|
Bugimus
Maniac (V) Mad Scientist
From: New California Insane since: Mar 2000
|
posted 06-12-2001 01:34
You can't hide your code... you shouldn't hide your code... if you *really* *really* have the need to hide your code... don't ever write any HTML code, that's the only way.
Seriously, the web is sort of founded on the idea that HTML code is viewable. Sure you are going to get creeps copying your stuff but look on the flip side, you can see how people who are better than you do their code and learn from it.
|
arlechinu
Bipolar (III) Inmate
From: dunno, really dunno anymore... Insane since: May 2001
|
posted 06-12-2001 01:36
Simply add the following code to the <BODY> section of your web page
<script language=JavaScript>
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers| |(document.getElementById&&!document.all)) {
if (e.which==2| |e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
// -->
</script>
Skinrust...
|
Bugimus
Maniac (V) Mad Scientist
From: New California Insane since: Mar 2000
|
posted 06-12-2001 01:50
Oh yes, go ahead and put that code in. Umm... how is that supposed to hide HTML???
arlechinu, that just disables the right click. You can still hit ctrl+u in Netscape and view>source in IE and there's all the code.
punchdrunk, if you just want to *discourage* newbies from reading your code you can do some of these things like what arlechinu offered but you can't hide the code from anyone who really wants to see it. That's really the point here.
|
WarMage
Maniac (V) Mad Scientist
From: Rochester, New York, USA Insane since: May 2000
|
posted 06-12-2001 02:44
Let me explain it better.
HTML is coded in plain text. That means you can simply start typing up your HTML and change the extention and any HTML viewer can read it. HTML is also not changed during the transfer from server to client. Because of this, the same code the the programmer used is parsed on the clients side, in the same fashion.
If you want to have the code hidden you would need to have the interperators or the browsers not able to show the code. That means from IE down to Telnet. They will all display the HTML.
So there is no way to hide it with the current technology. Now, with other students, if they steal your code, then... well they stole it, so deal with it and move on. Make a copy of the creation of it, as proof of your creation if you are really paranoid. But I would not feel it that important.
Now with hiding HTML as a rebuttle towards kars10, ASP does not hide HTML, again HTML can not be hidden. The visual basic script that was used is paresed on the server side, and is not returned, but the HTML is still returned and is still completely viewable. Sorry you lose, nice attempt at a flame, but all togeather not needed, and useless.
-mage-
|
mbridge
Paranoid (IV) Mad Scientist
From: Insane since: Jun 2000
|
posted 06-12-2001 02:58
I think we've proven the point that it cannot be hidden, but there are certain mechanisms that might prevent his schoolmates from getting to it, assuming they are not very computer savvy.
For instance, you could make a 1 pixel frame at the top of the page and use the right-click code to block direct access. You could also put a few pages of blank space at the beginning of each file. These methods are quite easy to defeat, but might help with the most elementary of computer users.
|
Pugzly
Paranoid (IV) Inmate
From: 127.0.0.1 Insane since: Apr 2000
|
posted 06-12-2001 05:35
Here's the best I've been able to do:
window.open a window without the toolbars, and all that other stuff. Use the code listed above. The window won't have the FILE EDIT VIEW options, thus eliminating the possibility of someone using VIEW>SOURCE. The code listed above kills the right click.
You could even make it really tough by making the javascript that runs the window.open fairly complex so that it would take a while to figure out what pages are being called.
Just a thought.
|
linear
Paranoid (IV) Inmate
From: other places Insane since: Mar 2001
|
posted 06-12-2001 06:11
Don't hide, obfuscate. You'll never beat someone telnetting to port 80, no matter what kind of JavaScript madness you whack up.
However, you can encode your brilliant gems using HTML entities, as long as you don't jack with the angle brackets. For example, "linear" would be encoded as "linear" To be a real bitch, make sure you encode your whitespace too. Then chop all your code up into lines the same length and introduce whitespace at regular intervals.
here's a lovely chart to get you started.
For double bonus points, pick an alternate character set, specify that as your encoding and make it a lot harder to decode.
Edit: looks like UBB chose to render my carefully crafted example. That was
& #108;& #105;& #110;& #101;& 097;& #114;
without the spaces between the ampersand and hash.
[This message has been edited by linear (edited 06-12-2001).]
|
arlechinu
Bipolar (III) Inmate
From: dunno, really dunno anymore... Insane since: May 2001
|
posted 06-12-2001 23:52
I knew what the script does, but i kinda thought that disabling the right click would prove somewhat useful since most people just rightclick and select view source...
however,
check http://www.dynamicdrive.com/dynamicindex9/index.html
there's some encription stuff there...
might help u
Skinrust...
|
kars10
Bipolar (III) Inmate
From: Europe Insane since: Mar 2001
|
posted 06-13-2001 00:47
ok, i'll run a spell check. But I won;t change my opinion about hiding source codes...
:-)
k10
PS: good luck with asp...
only change remains
|
kars10
Bipolar (III) Inmate
From: Europe Insane since: Mar 2001
|
posted 06-13-2001 20:37
WarMage:
I didn;t know about that ASP readable thing. So, how can I read it then?
k10
|