View Full Version : source code encryption

10-21-2006, 04:57 PM
I am working on a site that i wish to encrypt the source code and/or disable the view source code attribut on the web browser, what is the best method for doing this?

10-21-2006, 05:26 PM
The only way to stop the source being viewed is to not put it on the web.

10-21-2006, 05:33 PM
I'll paraphrase and say: The best method for disabling source view in a browser is not having a source to look at.

10-21-2006, 06:38 PM
You really don't want to encrypt your source code, unless you don't want to get indexed by the search engines. Remember, they read your source code, not the rendered page. If they can't read it, they won't index your site.

10-21-2006, 06:54 PM
There are quite a few ways to do this. However, none of them work at all. As others have said, the best way to keep your source safe is to not put it on the Web.

If you search many forums, including this one, you will find numerous threads regarding this topic, all with the same answer:
Post from the FAQ - http://www.codingforums.com/showthread.php?s=&threadid=35014#post182173

Those were all from this forum alone. You are not alone in your quest, but it is a hopeless quest. You simply cannot do it.

10-21-2006, 07:28 PM
whether u like it or not, the browser needs something to read from

<?austin ?>
10-21-2006, 10:24 PM
yeah, what you could do is put comments everyso often in your html like

<!-- austin's -->
<!-- flashanims.com -->

so if someone takes the code they take the comments too. then you can spot if someone totally copied your site.
the comments can be deleted but you should at least right before the head section put a disclaimer. like mine for example.

<!-- all code is copyright austin pray, flashanims.com
if you would like to take a snippet of code, please contact austin.pray@gmail.com for permission.
or link to flashanims.com instead. do not take any layout aspects without first contacting me at the
email address above. -->
<!-- website group code 512 -->

it atleast makes the people think for half a second about not taking it :D

all this assuming that the reason you want to hide your code from stealers...

you could write all your code in pure javascript lol, it will take a couple years...but nobody will want to screw with javascript.

10-21-2006, 10:47 PM
Completely bypassing the web page encryption done by $200 programs can be done simply via the "File" / "Save As" menu in Netscape 7.0 (specific version) or by using a "View Source" user script attached into the Opera or Firefox web browser. No form of encryption can block either of these two access methods All but two of the encryption programs I have seen can also be bypassed using a "View Source" bookmarklet/favlet (of the two that can't one completely disables popup windows and the other uses an invisible empty iframe to block the script from working) There are other ways to decrypt an encrypted web page but these three methods only require one or two mouse clicks to decrypt what the web author spent several minutes (or longer) encrypting in the first place.