...

View Full Version : How to hide web source?



larasimone
01-24-2004, 08:44 AM
I know use <script src=""></script>
can hide webpage source and <body oncontextmenu="return false"> can block right button,but it is not enough so i want to know other method to protect my webpage source.
Thank you.
:)

r0ck1t
01-24-2004, 09:36 AM
It is impossible.

Look for the 3 million other threads on this and they will all tell you the same.

Nightfire
01-24-2004, 10:14 AM
Log into ftp, highlight all files and press delete. Now you've made it so no one can copy your source and I'm sure you don't have anything worth keeping a secret

rmedek
01-24-2004, 10:41 AM
personally, I hide it under the mattress, no one thinks to look there...

Mhtml
01-24-2004, 10:46 AM
Why stop there, you may have them locally and a hacker might want to steal the dynamic drive code you copied! Burn your computer and bury the remains in the garden.

[edit:] I've updated my sticky thread .. maybe some people read it :rolleyes: .. at least they'll know.

suppaman
01-25-2004, 04:17 AM
Some websides tried to validate the right click to stop it from copying the source.

But there is still ways to view it likes save the whole web page into local drive and can see it.

I don't think I can find away to cover the source, same to pictures too.

Paul Jr
01-25-2004, 05:52 AM
I believe the best thing to do would be to make sure all the files are on your PC, and nowhere else, then place your PC on a rocket, which has a timed Nuclear bomb on it. Send the rocket into space, and wait for the Kaboom.

me'
01-25-2004, 10:50 AM
Originally posted by Paul Jr
I believe the best thing to do would be to make sure all the files are on your PC, and nowhere else, then place your PC on a rocket, which has a timed Nuclear bomb on it. Send the rocket into space, and wait for the Kaboom. Ensure the hard drive is rigged with explosives as well, otherwise it might fall to earth.

larasimone
01-25-2004, 10:54 AM
Some websides tried to validate the right click to stop it from copying the source.
yes you are right.if you know the url use
view-source:url method
can find the page code.
And i know use <frameset> sometimes can protect my code.

rmedek
01-25-2004, 01:32 PM
larasimone-

I think you've missed out on the last few posts, and the "sticky" in the general web forum. ABSOLUTELY NOTHING can protect your code.

Let's use a little metaphor here. Let's say that your server is a big folder with sheet music in it. And that your webpage is a song in that folder, written for piano. And let's pretend that the browser, the "interpreter" as it were, is a piano player. The piano player gets a set of instructions of what to play (the sheet music), and plays the song. See how this works? If the sheet music was garbled or hidden or protected, or whatever, the piano player wouldn't be able to read it and would end up playing some kind of abstract jazz. Which, you know, is cool if you're into that sort of thing.

I don't know if any of that made sense, but take my word on it. Nothing will protect your source code from being viewed. If it's that important to you, I suggest you program your pages in Flash.

-Rich

me'
01-25-2004, 01:38 PM
The browser needs the code to display the page. So, the browser must have the code. There's nothing you can do to stop the browser from showing the user the code.

dysfunctionGazz
01-25-2004, 03:56 PM
IMO its the very fact that we CAN see peoples code that helps us all to develop as programmers and designers. It allows us to learn instantly from new ideas and then ultimately create our own ideas which others may benefit from. As long as its not 'blatant' theft, i'm very pro sharing anyway.

Vladdy
01-25-2004, 04:27 PM
The fact that you are trying to "protect" your HTML code says that it is not worth a dime :rolleyes:

ionsurge
01-25-2004, 05:23 PM
Easy.

Go into MS DOS, and type at the prompt:


format c:\

That'll do the trick. If you don't have it, no one can steal it. This topic has been discussed countless amounts of time. Read the sticky about it in General Discussions.

DsgnrsTLZAdmin
01-25-2004, 06:05 PM
Oh wow, if you disable right click, which is simpily done with javascript, go into control panel and make left click your menu clicker or whatever you want to call it. Or just Disable both clicks and make your site non-navigatable :). Look, fact is this: if its not server side then you cannot "hide" the source code.

me'
01-25-2004, 06:07 PM
*calls for closure*

DsgnrsTLZAdmin
01-25-2004, 06:07 PM
On top of all this, internet programing is not worth keeping a secret source anyway.

Vladdy
01-25-2004, 06:16 PM
Originally posted by DsgnrsTLZAdmin
Oh wow, if you disable right click, which is simpily done with javascript, go into control panel and make left click your menu clicker or whatever you want to call it. Or just Disable both clicks and make your site non-navigatable :). Look, fact is this: if its not server side then you cannot "hide" the source code.

That wins "The most complicated way to go around a no-right-click script" award :D :D :D :D

Willy Duitt
01-25-2004, 09:03 PM
Originally posted by Vladdy
That wins "The most complicated way to go around a no-right-click script" award :D :D :D :D

That wouldn't work anyway. Regardless if it is lefty or righty....
The underlying click is the same. :rolleyes:

.....Willy



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum