Go Back   Dynamic Drive Forums > General Coding > Coding tips & tutorials threads
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 10-04-2009, 06:42 PM
traq's Avatar
traq traq is offline
Senior Coders
 
Join Date: Apr 2008
Location: So.Cal
Posts: 464
Thanks: 22
Thanked 45 Times in 45 Posts
Default Why you cannot protect your source code and files

1. A visitor must download and save your source code on their computer in order to view your web page. If they don't have the source code, they don't see the site. Same goes for images. It's as simple as that.

2. There are scripts, etc. that "hide" the source code from the visitor (encoding, no-right-clicking, transparent image overlays, file save redirects, etc.), but all rely on client-side scripting (e.g., javascript) to do it, so any visitor that realizes this can simply turn it off. Again, once someone can see your webpage, they already have your webpage.

3. There is some webservice called copyguard (or something like that) that takes your source code and compares it to the rest of the web on a regular basis, and alerts you if it finds a copy on someone else's site. That still doesn't solve anything unless you're willing to take legal action, however. And I don't know how much it costs. On top of it all, what's to stop someone from copying your source code, buying this service, and then accusing you of stealing from them? I can't imagine it would hold up in court.

4. Speaking of going to court (and no offense intended), your (or anyone's) source code is probably not worth protecting anyway. I'm not getting into the whole "philosophy of open sharing of information that the internet is based on" issue; html is just html. You may have some awesome server-side crap developed that's worth holding on to, but it outputs normal html and can't easily be "stolen" anyway (if your server is set up properly, that is).
__________________
i design your custom anything
$question = (2B) || (!2B);

Last edited by traq; 10-06-2009 at 02:01 AM.
Reply With Quote
  #2  
Old 10-04-2009, 08:06 PM
djr33's Avatar
djr33 djr33 is offline
Global Moderator
 
Join Date: Mar 2006
Location: N. California, USA
Posts: 6,408
Thanks: 11
Thanked 82 Times in 82 Posts
Default

5. There are some ways to make it harder (but not impossible) to steal the code. Doing this DOES NOT WORK, because people who steal are good at stealing. These ways will only annoy your normal friendly visitors and NOT STOP the thieves who know how to get around anything you can do.

6. It is possible to make it very difficult to find the actual files for embedded videos (and audio files) displayed on a page through flash. youtube is an example of this. However, it is STILL possible if someone is motivated enough and has enough skill to determine where the original file is. Images, however, won't work this way, because you can always take a screen capture. Doing that frame by frame for a video would be a pain. And for audio it is just a matter of recording the computer's output and you have a copy of it, though saving the actual file may be hard.

7. A copyright notice will always do more good than trying to stop people from stealing. However, that means you will need to take legal action if someone does steal, and even big companies really can only send a "cease and desist" letter threatening legal action... if still nothing is done it might make it to court, but that is rare. Generally the internet is just an open place for sharing information, and that's how it works, nothing you can do about it.

8. If someone is stealing your content actively and clearing breaching copyright, you can contact the ISP or host of the individual and they may be able to shut down the account.
__________________
Daniel - <?php?> | <html>| Ich lerne Deutsch. | Studio l'italiano. | Estudiaba español. | Estudo português. | 日本語の勉強。| मैं हिन्दी सीखो | درس العربية

Last edited by djr33; 10-04-2009 at 08:12 PM.
Reply With Quote
  #3  
Old 10-06-2009, 08:41 AM
forum_amnesiac's Avatar
forum_amnesiac forum_amnesiac is offline
Senior Coders
 
Join Date: Apr 2009
Location: Cognac, France
Posts: 400
Thanks: 2
Thanked 57 Times in 57 Posts
Default

I totally agree with traq and djr33.

The only thing that I want to add to this thread is a comment about certain HTML encryption systems.

Whilst they can make it a bit more difficult to steal source code they can also make it impractical for search engine optimisation.

I have seen examples of encrypted HTML sites where the search engine listing for the site is also encrypted.

Not really what we're trying to achieve!

I added this to the original post yesterday, traq suggested I added it here as well
Reply With Quote
  #4  
Old 10-14-2009, 04:39 PM
jscheuer1's Avatar
jscheuer1 jscheuer1 is offline
No Kidding?
 
Join Date: Mar 2005
Location: SE PA USA
Posts: 19,005
Thanks: 19
Thanked 1,135 Times in 1,121 Posts
Blog Entries: 3
Default

I think the difficulty of the legal option is being exaggerated here at the expense of common sense things you can do yourself. Though touched on, many folks will be happy to stop using your material if you just email them and ask. If that doesn't work, an email to their ISP will often do the trick. If both of these fail, one can threaten legal action, or merely point out that the activity is illegal. None of that costs anything more than your time, and a bit of nerve.

Also, for important work one can do various things to ensure that what is on the web doesn't comprise the whole of the work. Like with images - go low res &/or watermark. For various text, video, and audio works, only give excerpts, samples.
__________________
WWWWWWWWWWWW
- John
________________________

Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Reply With Quote
  #5  
Old 10-14-2009, 06:24 PM
traq's Avatar
traq traq is offline
Senior Coders
 
Join Date: Apr 2008
Location: So.Cal
Posts: 464
Thanks: 22
Thanked 45 Times in 45 Posts
Default

Very true.

Of course, the best way to protect your files is to not post them online in the first place, but I've stopped offering that as a solution because people usually accuse me of being a smartass.
__________________
i design your custom anything
$question = (2B) || (!2B);

Last edited by traq; 10-15-2009 at 05:59 AM. Reason: added a " , "
Reply With Quote
  #6  
Old 10-15-2009, 02:51 AM
jscheuer1's Avatar
jscheuer1 jscheuer1 is offline
No Kidding?
 
Join Date: Mar 2005
Location: SE PA USA
Posts: 19,005
Thanks: 19
Thanked 1,135 Times in 1,121 Posts
Blog Entries: 3
Default

Quote:
Originally Posted by traq View Post
Very true.

Of course the best way to protect your files is to not post them online in the first place, but I've stopped offering that as a solution because people usually accuse me of being a smartass.
With good reason, that completely defeats the purpose of sharing or promoting your content. Some of my suggestions go nowhere near that, those that do still allow for partial sharing and total promotion. In these matters it can very often be important to see these distinctions.
__________________
WWWWWWWWWWWW
- John
________________________

Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Reply With Quote
  #7  
Old 10-15-2009, 02:59 AM
traq's Avatar
traq traq is offline
Senior Coders
 
Join Date: Apr 2008
Location: So.Cal
Posts: 464
Thanks: 22
Thanked 45 Times in 45 Posts
Default

of course, I completely agree. (About your suggestions being valid, not about my being a smarta$$). Since you can't protect the content you serve, the best course of action is often to serve alternate content (that you don't mind losing control of).

I certainly didn't mean to belittle your suggestions; I hope it didn't come off that way.
__________________
i design your custom anything
$question = (2B) || (!2B);
Reply With Quote
  #8  
Old 10-15-2009, 03:07 AM
jscheuer1's Avatar
jscheuer1 jscheuer1 is offline
No Kidding?
 
Join Date: Mar 2005
Location: SE PA USA
Posts: 19,005
Thanks: 19
Thanked 1,135 Times in 1,121 Posts
Blog Entries: 3
Default

Quote:
Originally Posted by traq View Post
I certainly didn't mean to belittle your suggestions; I hope it didn't come off that way.
Not at all. I just wanted to emphasize the difference between my suggestions and the idea of not going public at all, because there is a major difference, and others (if not you, I wasn't sure - now I am - definitely not you) might otherwise get confused.
__________________
WWWWWWWWWWWW
- John
________________________

Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:31 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.