Closed Thread Icon

Preserved Topic: Hiding the page source. Pages that link to <a href="https://ozoneasylum.com/backlink?for=18270" title="Pages that link to Preserved Topic: Hiding the page source." rel="nofollow" >Preserved Topic: Hiding the page source.\

 
Author Thread
Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 03-19-2003 08:52

Hi
I'm interesting in hiding the page source from the user.
Is there is any cross browsers (IE5.5+ / NS6+) code enable to hide the "view source" property?
I found some code that pops up a message on right clicking, I dont want to skip the pop up.

10x in advanced
Yossi


kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 03-19-2003 10:33

Hi Yossi -

there are very few things that are more annoying than those little bits of JS code which pretend to 'hide' the source code from the visitor by disabling the right mouse button

Don't do it. Everyone will still be able to see the code by going to View > Page Source. There's no way to prevent that, so doing mouse button tricks is just pointless.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 03-19-2003 10:44

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 03-19-2003 11:12

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 03-19-2003 14:02

I take it your using document.write for the content.

If so then it's not a very partical solution.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 03-19-2003 15:37
quote:
If you can't, I won



InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 03-19-2003 15:48

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 03-19-2003 15:59

I'm just getting a blank white page there... using Mozilla and also IE.

But as others seem to see it as intended I guess there must be something unexpected happening at my end again

patric design
Bipolar (III) Inmate

From: 290 km/h, fast lane, Autobahn, Germany
Insane since: Feb 2001

posted posted 03-19-2003 17:36

Very cool indeed! So, are you gonna show us how you did it?

<´¯`·.¸ Patric ¸.·´¯`>

[This message has been edited by patric design (edited 03-19-2003).]

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 03-19-2003 18:30

Confusing matters is that this is being dealt with in two threads so for more of an explanation see:
www.ozoneasylum.com/Forum1/HTML/006917.html

___________________
Emps

FAQs: Emperor

Archonian
Nervous Wreck (II) Inmate

From: Sweden, Malmoe
Insane since: Jan 2003

posted posted 03-19-2003 20:01

If one disabled the context menu(right click menu), and opened the page in a new window and disabled the menubar, would that protect the source?

quisja
Paranoid (IV) Inmate

From: everywhere
Insane since: Jun 2002

posted posted 03-19-2003 20:50

Archonian - you could go to your history, look at the last page in a regular broswer window, and then view source... By no means a way to prevent the determined, and would also be very annoying.

Maskkkk
Paranoid (IV) Inmate

From: Willaimsport, PA, US of A the hole in the Ozone
Insane since: Mar 2002

posted posted 03-20-2003 00:50

I'll bet you I can get the source with Ethereal!

It has to pass through as packets does it not?

:-D



Maskkkk

- Face the Present
- AIM: MASKKKK

[This message has been edited by Maskkkk (edited 03-20-2003).]

dizzyrascal
Obsessive-Compulsive (I) Inmate

From:
Insane since: Mar 2003

posted posted 03-20-2003 12:20

REPLY FOR:Mad Scientist
AND HE MUST BE {MAD} TO THINK THAT U CAN ACTUALY HIDE UR SOURCE CODE LOL THERE IS NO POSIBLE WAY, & JUST 2 SHOW U, U DID NOT WIN, HERE IS UR SOURCE CODE:
<html>
<HEAD>
<META http-equiv=Expires content=0>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Pragma content=no-cache>
<SCRIPT language=javascript src="invisible.php" type=text/javascript>
</SCRIPT>
</HEAD>
<BODY>Hello World. See if you can find the source for this webpage You can't? How sad...<BR>Maybe some guy, at <A href="http://www.ozoneasylum.com">Ozone Asylum</A><BR>found a clever way to hide those sources, after all </BODY>
</html>


InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 03-20-2003 12:34

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 03-20-2003 12:58

dizzyrascal: And the monkey pushes the button
If you had read the other posts, you may have saved us your pointless posts.

InI: Your method to hide the javascripts is neat and good enough to avoid the "c0wb0yz" like dizzyrascal to rip them.

Mathieu "POÏ" HENRI

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 03-20-2003 14:30

My main goal for the request is to avoid unprofessional hackers from changing parameters that going to the server (like permissions) and not to hide the code from other programmers.
I know there is no way to avoid hackers from seeing the code.
I found nice site that hide JS and HTML (Microsoft menu tree) where the trick is to hide the code in .htc file using style sheet.
.deeptree{
padding:4px 5px;
behavior:url(/library/shared/deeptree/htc/deeptree.htc);
}
you can see the menu using the following URL. http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects.asp
dizzyrascal: In order to view page source you can just run the following line in the address bar:
javascript function(){alert(document.getElementsByTagName("HTML").item(0).innerHTML);})();


Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 03-20-2003 15:24

InI: Why bother?

Yossi Admon: You said:

quote:
My main goal for the request is to avoid unprofessional hackers from changing parameters that going to the server (like permissions) and not to hide the code from other programmers.



I'm not sure what you are doing but it strikes me that there should be ways to make things secure without having to resort to actually hiding the code from anyone - I feel that you are working hard to address the wrong problem.

We have looked into making sure PHP is as secure as it cn be:

:FAQ: What are the security problems with using PHP and how can I fix them?

and, although I'm not sure what language you are using, it shoud be possible to make sure your code is secure.

___________________
Emps

FAQs: Emperor

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 03-20-2003 15:31

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 03-20-2003 18:00



here we go again...

quote:
Mad-scis overreact as well



Yup - you sure did. And uh...still are...

[This message has been edited by DL-44 (edited 03-20-2003).]

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 03-20-2003 23:31

Lol what happened to that other post? is InI STILL on about not *winning*.... i guess *whining* is close enough for some people..

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 03-21-2003 02:22

InI: I can't see he is really worth you wasting any time on but its your call.

H][RO: Don't start baiting people or are we going to have 2 threads wrecked?

___________________
Emps

FAQs: Emperor

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 03-21-2003 08:39

Man, emperor i never bagged anyone about anything until he started mouthing off, and it just annoyed me to see he was still at it that is all. All i did was point out a fact that when u saved from IE it gave u the php file, and all of a sudden im getting dumped on? So yeh i was a little ticked off, but i hardly think i was the one that ruined the thread.

Anyhow been a crap time for alot of ppl i think so everyone needs to just calm down

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 03-21-2003 10:30

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 03-21-2003 13:59

Oh for fucks sake - it appears we can't act like grown ups so I'm shutting this down and I'll restart it so that Yoshi can get an answer to their problem (yes there was a point to this thread as strange as that may seem).

___________________
Emps

FAQs: Emperor

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 03-21-2003 15:08

Hmmmmmmmmmmmmm someone seems to have missed where I said this in the thread I used to try and ressurect things:

quote:
Soooooo in this thread (if anyone tries opening it again I'll archive it): www.ozoneasylum.com/Forum15/HTML/000130.html



So I'm sending this to the archive.

___________________
Emps

FAQs: Emperor

« BackwardsOnwards »

Show Forum Drop Down Menu