...

View Full Version : hide source code from html doc



truviet911
09-23-2004, 01:59 AM
anyone here have a script that can hide all the code in html page? please help me . thank you . i know there is alot of software to do it , but i rather use the script .

tsguitar2004
09-23-2004, 02:15 AM
First off, welcome to the forums. This is a great place to get answers and to help others, so good choice!

Secondly, there's really no way to completely hide the code of a page. If you put it out there on the Web, other people will be able to get at it. Disable right click? No problem, just "save as..." and look at the code on your desktop. Disable "save as..."? No problem, there's a way to leech the site off the server with a hyperlink to the page.

But just in case you still aren't convinced, check this (http://www.vortex-webdesign.com/help/hidesource.htm) out. It was among the first in a quick Google search for "protect html code disable left click" and looked interesting enough.
-ts

Nightfire
09-23-2004, 02:24 AM
I doubt you have any html which is so amazing and unique that you need to hide it.

Answer you're looking for: It's impossible

Still want to hide it anyway? Then get a no-right-click script from www.javascriptkit.com if it'll make you happy. Just remember they're easy to get around and are very annoying for people who navigate with their right mouse button

AaronW
09-23-2004, 02:31 AM
*puts on his football helmet and buckles up for yet another "protect my source?" thread*

bradyj
09-23-2004, 02:40 AM
http://www.codingforums.com/showthread.php?t=37610
http://www.codingforums.com/showthread.php?t=35451
http://www.codingforums.com/showthread.php?t=32084
http://www.codingforums.com/search.php?searchid=98648&pp=25&page=2

Please search before you ask -- this question has been asked ALOT, and it is a common response -- you cannot. If you find a way, feel free to post it up here, and I we will be sure to test it -- do not buy software that says they can do it, they cannot. It's the nature of the web.

gsnedders
09-23-2004, 08:57 PM
Take your website off the internet. Seriously, it's the only way.

Willy Duitt
09-23-2004, 09:48 PM
You can not protect your source code and the only good reason to hide it, is that it is so terrible you want to protect everyone from seeing it...

So, whom/what are you trying to protect?
Us or your code?

Basscyst
09-23-2004, 10:27 PM
Just out of curiosity, If I asked how to throw an alert in javascript, would 10 people answer my question with:

It's like this:



alert("");


After the first person answered it? Hmmm....? :(

Die thread. . .die!!!

OK BC I fixed it, but I don't think that was really relevent to my point. :rolleyes:

Basscyst *Sticks tongue out at Brothercake*

brothercake
09-23-2004, 10:35 PM
Just out of curiosity, If I asked how to throw an alert in javascript, would 10 people answer my question with:

It's like this:



alert();


After the first person answered it? Hmmm....?
They'd be wrong if they did - alert must take an argument, at the very least an emppty string:


alert("");

;)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum