NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page content protection - disable clipboard

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-02-2005, 11:24 AM THREAD STARTER               #1 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: Florida
Posts: 233
TeviH is an unknown quantity at this point
 



content protection - disable clipboard


Amazon.com has a nifty little javascript that disables clipboard data, effectively preventing screen captures, as well. (Check out the code to any page showing "inside the book.")

The problem is it only works on IE, and it only prevents screen captures if that window is the top/active window.

Does anyone know a better code to implement that would work on all browsers, maybe using php or something?

Can .htaccess block all access to any filetypes being accessed from any outside (or no) server? (forcing people to use your page to see files - which won't allow them to copy to clipboard). Is there any sort of DRM for images?

Is there anyone who has developed a Perfect content protection system? I know some artists who want to put their work on the web but are afraid of theft. (they don't want to use watermarks)
__________________
www.headlinercreative.com
TeviH is offline  
Old 08-02-2005, 11:32 AM   #2 (permalink)
NamePros Regular
 
monaco's Avatar
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 689
monaco will become famous soon enough
 



The fact of the matter is, once the data leaves your server, you have no control over it. If you want real DRM, you need to write some kind of clientside app with DRM functions and protect the network path with encryption.
__________________
My Website | My Blog
monaco is offline  
Old 08-02-2005, 11:54 AM   #3 (permalink)
NamePros Regular
Join Date: Feb 2005
Posts: 343
dabb is on a distinguished road
 



Originally Posted by TeviH
Amazon.com has a nifty little javascript that disables clipboard data, effectively preventing screen captures, as well. (Check out the code to any page showing "inside the book.")
If you want a screen capture, just use any screen capture program to capture the image in your browser window. If you want to see the source, just surf thru a local proxy program (such as HTTPTracer, etc) and capture the page source before it gets to your browser.
dabb is offline  
Old 08-02-2005, 12:20 PM THREAD STARTER               #4 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: Florida
Posts: 233
TeviH is an unknown quantity at this point
 



Yea, I know, I guess nothing's perfect... There's got to be a way, though...
__________________
www.headlinercreative.com
TeviH is offline  
Old 08-02-2005, 01:08 PM   #5 (permalink)
NamePros Regular
 
monaco's Avatar
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 689
monaco will become famous soon enough
 



Here's a thought...try a little obfuscation:

It's a known fact that native speakers of Latin-text based languages (english and similar alphabets, not cyrillic and kana-based or ideographics) don't parse entire words when reading. That known, you can obfuscate your text by rearranging all but the first and the last characters of any word, and it will somehow be legible.

This will be a pain in the ass to someone tryin to copy it, but will not impede their ability to read it for the most part. Just a thought
__________________
My Website | My Blog
monaco is offline  
Old 08-02-2005, 06:48 PM THREAD STARTER               #6 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: Florida
Posts: 233
TeviH is an unknown quantity at this point
 



lol!! That's a funny idea...However, what I want to figure out is how to protect images.
__________________
www.headlinercreative.com
TeviH is offline  
Old 08-02-2005, 08:50 PM   #7 (permalink)
NamePros Regular
 
monaco's Avatar
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 689
monaco will become famous soon enough
 



I understand you don't want watermarks, by which I assume you mean visible ones that mar the image. I don't have much info on it, but you can digitally watermark images such that the watermark only shows up with proper software, and there is no way to detect or remove the watermark.

What this would give you is proof that your image was stolen if used elsewhere, whcih you could use in legal recourse to order the thief to cease using your images.
__________________
My Website | My Blog
monaco is offline  
Old 08-03-2005, 06:30 AM THREAD STARTER               #8 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: Florida
Posts: 233
TeviH is an unknown quantity at this point
 



Yea. I guess I'll just have to use lo-rez. Easy enough to prove an image is yours by just showing an original, hi quality file. I can chop it up and put the image in a table to make it more difficult to copy. I can offer closeup shots of certain areas to show detail.

Oh well. I was hoping for a technological solution to simply prevent people from being able to copy the file.
????: NamePros.com http://www.namepros.com/programming/112002-content-protection-disable-clipboard.html

I've come across some programs like this: HTML Protector

Does anyone know if/how this works? Is this really something simple that they are trying to repackage for a quick $30?
__________________
www.headlinercreative.com
TeviH is offline  
Old 08-03-2005, 11:35 AM   #9 (permalink)
NamePros Regular
 
monaco's Avatar
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 689
monaco will become famous soon enough
 



Programs like that don't work. At all. They just make it hard to cut and paste html code by making it hard to read. Really lame concept.
__________________
My Website | My Blog
monaco is offline  
Old 08-03-2005, 11:54 AM   #10 (permalink)
NamePros Regular
Join Date: Feb 2005
Posts: 343
dabb is on a distinguished road
 



Originally Posted by TeviH
I can chop it up and put the image in a table to make it more difficult to copy.
Again, all you have to do is take a screen capture of the browser window. The chop up in a table only protects you from dummies.
dabb is offline  
Old 08-03-2005, 11:59 AM   #11 (permalink)
NamePros Regular
 
monaco's Avatar
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 689
monaco will become famous soon enough
 



He said "make it more difficult" not "make it impossible"...

Anyway, this will prevent image harvesters from getting the pic too. No matter what you do, you will still have someone smart enought to get past it. And if your site is popular enough, so will be the knowlege of how to beat your copy protection...look what happened with WGA and WPA and the like with windows...and they have ENTIRE TEAMS of people working on that.
__________________
My Website | My Blog
monaco is offline  
Old 08-03-2005, 06:44 PM THREAD STARTER               #12 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: Florida
Posts: 233
TeviH is an unknown quantity at this point
 



Originally Posted by monaco
Programs like that don't work. At all. They just make it hard to cut and paste html code by making it hard to read. Really lame concept.
Thanks for the info! Had a hunch it was worthless when I found out it was just js...
????: NamePros.com http://www.namepros.com/showthread.php?t=112002

Breaking it all down, the key issues are:

1. the path of the file

2. disallowing all access to the file from code outside your own

3. preventing clipboard (screen cap)

I'm a terrible coder, so I'll just ask if anyone knows if this stuff is possible:

1. can php be written to create some bizarre method of calling the file, so that the path can't be figured out? Like having a confusing folder hierarchy? Or the files be in some secure database?

2. can .htaccess prevent all access to specific file types if they are not called from a specific code?

3. can a "no clipboard data" script be written that is compatible with all browsers, not just IE? (Does it have to be javascript? Can it be php?)
__________________
www.headlinercreative.com
TeviH is offline  
Old 08-03-2005, 07:12 PM   #13 (permalink)
NamePros Regular
 
monaco's Avatar
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 689
monaco will become famous soon enough
 



Originally Posted by TeviH
Thanks for the info! Had a hunch it was worthless when I found out it was just js...

Breaking it all down, the key issues are:

1. the path of the file

2. disallowing all access to the file from code outside your own

3. preventing clipboard (screen cap)

I'm a terrible coder, so I'll just ask if anyone knows if this stuff is possible:

1. can php be written to create some bizarre method of calling the file, so that the path can't be figured out? Like having a confusing folder hierarchy? Or the files be in some secure database?

2. can .htaccess prevent all access to specific file types if they are not called from a specific code?

3. can a "no clipboard data" script be written that is compatible with all browsers, not just IE? (Does it have to be javascript? Can it be php?)
There is no way to completely disable clipboard data. This would piss people off anyway; don't try to control people's computers.
????: NamePros.com http://www.namepros.com/showthread.php?t=112002

I dont think .htaccess files can help you. If you're worried about hotlinking (accessing your image from a site not your own) ask your host about hotlink protection.

You can always use PHP to generate a temporary file and path and give that to the page, so in an hour it no longer exists at that location.
__________________
My Website | My Blog
monaco is offline  
Old 08-04-2005, 01:19 AM   #14 (permalink)
Account Closed
 
Refrozen's Avatar
Join Date: Jun 2005
Posts: 745
Refrozen will become famous soon enoughRefrozen will become famous soon enough
 



Internet Explorer allowing clipboard disablement must be a bug... no way that is planned functionality.
Refrozen is offline  
Old 08-04-2005, 10:08 PM THREAD STARTER               #15 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: Florida
Posts: 233
TeviH is an unknown quantity at this point
 



Here's the whole "protection" code (ironically, I copied it) from Amazon:

Code:
 
<!--
var copyright="Please respect the copyright of this material.";

function noRightClick(e) {
  if (document.layers || document.getElementById && !document.all) {
    if (e.which == 2 || e.which == 3) {
      document.captureEvents(Event.MOUSEDOWN);
//      alert(copyright);
      return false;
    }
  } else if (document.all && !document.getElementById) {
    if (event.button == 2) {
//      alert(copyright);
      return false;
    }
  }
}

function noContextMenu(e) {
  return false;
}

function noClip(e) {
  if(document.all) {
    window.clipboardData.setData("Text", "");
  } 
  return true;
}


document.onblur = noClip;
document.onmousedown = noRightClick;
document.oncontextmenu = noContextMenu;

// -->
__________________
www.headlinercreative.com
TeviH is offline  
Old 08-05-2005, 02:34 AM   #16 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
1. you cannot stop people stealing your images, text or other random stuff. if its on there computer they can get it

2. javascript is no good and limits users. what about text based users? or people that have js disabled?

3. dont even think about flash. it can be decrypted and can still be stolen.

the only way to keep your content safe is upload it to a webserver and shut the server down.
adam_uk is offline  
Old 08-05-2005, 03:22 PM THREAD STARTER               #17 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: Florida
Posts: 233
TeviH is an unknown quantity at this point
 



Originally Posted by adam_uk
the only way to keep your content safe is upload it to a webserver and shut the server down.
uhhh....
????: NamePros.com http://www.namepros.com/showthread.php?t=112002

lol

oh well. I guess it can't be done/no one knows.
__________________
www.headlinercreative.com
TeviH is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Legal Protection for your Website or Hosting Business? We Can Help. zerdomains For Sale / Advertising Board 0 07-24-2005 07:32 PM
Good Article: An SEO Checklist Ferman Search Engines 2 05-28-2005 11:51 AM
Clipboard Buddy dgridley Free Resources 2 05-03-2005 09:07 PM
Start Making Money With Your Own Content Rich Website trishan Content For Sale 13 04-05-2005 11:29 PM
Chapter 18 Other Content WebForging Webmaster Tutorials 3 03-20-2005 04:15 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 07:18 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger