View Full Version : Viewing Source Code
CiNiMoDZA
28-12-2009, 10:12 AM
Is there any way to prevent people viewing your source code(In HTML)? Or, is there any way to copyright or patent your code?
BlackShipsFillt
28-12-2009, 11:05 AM
I'm not certain what you mean by HTML source code? Server-side stuff is never seen by the client, but all the client-side stuff is copyable.
However, as with all information, your work is automatically your intellectual property, and unless you otherwise specify, stealing someone else's intellectual property and profiting off of it is a criminal offense.
But unless you are doing something cutting edge, it will always be at least as much copying your work as it would be for someone to use free resources and do it themselves. Most people making money on the web (like facebook or twitter or youtube) aren't making money because they code well, they are making money because they had a good idea.
dislekcia
28-12-2009, 12:37 PM
BlackShips speaks truth :)
Code you write (because it's re-ordering of existing information, ie: text, according to known rules) isn't patentable. Software patents are one of the big sticking points in IP law. In fact, I'm of the opinion that genetic patents shouldn't be possible either, but big business has decided otherwise.
Why do you want to protect your code, Cinimod?
CiNiMoDZA
29-12-2009, 01:17 AM
I cant really talk about it! Its really exciting though, a friend and myself have a meeting with the board of a really big company because of something I figured out in the bath :P Really looking forward to telling you guys about it as soon as I can!
UntouchableOne
29-12-2009, 01:53 AM
You could use php, code your "secret" idea in php and output it in html. When someone views the code, they will only see the html output code and not the stuff processed within the php tags. All php instructions are processed on the server-side, which is pretty cool :)
Necrolis
30-12-2009, 05:16 PM
also, you could attach a disclaimer to anything that is outputted, and use an obfuscator on any js/client side code(though this only stops copy paste n00bs...)
Dragon-Ion
30-12-2009, 05:42 PM
Why don't you just encrypt it? If you are planning on sending it to someone, it should be sufficient. For release, I would suggest sending the binaries only, not the actual src files.
xyber
07-01-2010, 10:45 AM
+1 on what everyone said.
HTML and CSS is just there to present the info to the user, all your logic and important bits will be on the server side and done via PHP/ASP/etc.
What I think we truly need is a way to protect client side JavaScript. It is becomming more and more in use with web2 and a whole game for example could be done in it and be freely viewed.
Etiko
07-01-2010, 03:52 PM
Why protect it, though? So what if someone sees the code? I doubt there's anything you can code in HTML that is not covered in some tutorial on the Web.
And if it's such an advanced web program, then there will definitely be server side coding. Thus, it'll be impossible stealing ALL your code... 'cept if they hack into the server, that is.
Powered by vBulletin® Version 4.2.4 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.