henry989 — 2013-02-15T17:34:02-05:00 — #1
Hello folks, I am new to this forum and in my first thread here I am asking for information on an important issue that I have been researching. My research brings me to this forum because I found a thread here with some discussion of the problem of how to technically prevent someone from right clicking to "stop them from copying and pasting text." More specifically I am trying to solve the following problem: Suppose one wants to post copyright material on the web so that people can see or read it on a web page, but NOT copy or print it because you want them to buy it, for example, as in an e-book; How can one technically prevent people from copying or printing this copyright material that they view or read on a web page? I think I have seen this on Google Books and other web sites that allow you to browse substantial portions of entire books but do not technically permit the function of copying or printing what you see on the web page. How is this done? Thanks, for any help.
dklynn — 2013-02-15T20:05:59-05:00 — #2
You didn't close this thread because of the duplication?
You simply can't enforce non-copying if you display it on your website. If nothing else, a print screen can capture the display which can be run past an OCR engine, etc. If you want to encode your information, you can password protect a page/directory or provide a one-time session to access the protected data. Please note that even encrypted PDF files can now be pretty easily hacked with apps that aren't very expensive at all.
sahostking — 2013-02-19T09:36:05-05:00 — #3
AS stated by dkylnn it is quite easy now adays
I would follow these steps.
Password protect a directory
Use .htaccess file to allow access to the directory via certain IPs only.
Ensure PDFs are only downloadable via logins
Definitely use sessions on your site
gildawson — 2013-02-21T19:13:03-05:00 — #4
A possible example site that may have sufficient copy-blocking is snopes.com. You cannot simply select the text of a snopes report by dragging. You can, of course, get at the underlying html -- and thus the text itself -- by a number of methods. As there are both "Print this" and "Email this" buttons on the page, however, the casual visitor thwarted in a simple copy operation will likely take one of these routes to obtain a copy, thereby providing the snopes folks some information on the way.
So, how do they do this?
var omitformtags=["input", "textarea", "select"]
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
dklynn — 2013-02-21T21:43:56-05:00 — #5
... and you can easily get around any of these guards (including invisible <DIV> over the image/text)) by simply taking a Print Screen capture and dealing with the image/text in a photo editing program (especially easy with OCR for the text).
Even PDF security can now be broken by inexpensive programs which can hack the Acrobat's security.
The bottom line is in my original response: If you make it available, you can't protect it.