Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  • Thread Tools
  • Rate This Thread
  1. #1
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    southwestern USA
    Posts
    1,636
    Thanks
    314
    Thanked 34 Times in 33 Posts

    disabling copy paste and right click pro's and con's

    Was considering looking into this ability more since one of my clients asked me about it. They are intent on doing what they can to help protect their story content on their site.

    In the hopes of protecting text on a webpage, I know there is no full proof way but is it worth it to do something to stop some of them along the way.

    We can disable copy and paste options via javascript and many of them will just pull up the source page and grab your text from there.

    We can disable right click via javascript which will prevent them from clicking on source option, but yet still if they want it there are ways around that.

    We can use watermarks which is fine if they printscreen the page, but if they copy and paste then the watermarks are not included in that capture.

    I just wanted to touch on this subject and get some general feedback from some of you...

    Thanks..

  2. #2
    New to the CF scene
    Join Date
    Jul 2012
    Location
    USA
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've always wonder about this. Another way to bypass this is by disabling javascript. As you said there is no full proof way to stop plagiarism but the ways you mentioned will at least prevent some of it. Those who do go out of their way to copy content from this site is most likely not the brightest person in the world.

  3. #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    8,131
    Thanks
    3
    Thanked 814 Times in 803 Posts
    There is only one thing that you can disable with JavaScript thay your visitors cannot override - that is JavaScript itself.

    Your visitors have access to disable anything else that your JavaScript does.

    Most browsers disable the ability of JavaScript to disable right click by default - you have to physically update the browser settings in order to permit JavaScript to disable that operating system functionality.

    Most browsers don't have access to block the operating system copy function and so that can't be disabled from JavaScript in those browsers at all.


    Watermarks work because they are embedded in the image itself and so even if someone copies the actual image file they then still have to edit the image itself to try to remove the watermark. Where the resolution of the image is set toward the low end of what displays properly on the web the act of editing to try to remove the watermark will lower the resolution of the image to the point where it is unusable.


    Attempting to block normal browser functioning tends to annoy some people to the point where they will steal the content just to demonstrate to themselves that your attempt to block them is useless. Any attempts to block normal functioning of the browser will only affect legitimate visitors who use those functions for legitimate purposes. You should expect an increase in theft and a decrease in legitimate visitors as a result.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  4. Users who have thanked felgall for this post:

    durangod (10-17-2013)

  5. #4
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    southwestern USA
    Posts
    1,636
    Thanks
    314
    Thanked 34 Times in 33 Posts
    Agreed, images are must easier to protect. I have actually taken one of my own images that i watermarked and tried to remove the watermark through PS and was not able to do so and be able to keep the image looking crisp, so watermarking images is beneficial.

    My client writes very long stories more than 50,000 characters and they would like to be able to protect that work. I even suggested making those pdf as a start, but that is still not secure against many practices.

    Many times disabling js is not an option and i agree that the more you use hacks and tricks to turn off features you only end up upsetting the people that would not steal the text anyway and so it has a huge negative affect in many ways.

    There is the old saying "If you don't want people to take your stuff, don't put it on the web" and i suppose this truely goes for text on a page as there is really not much we can do about that, but there should be.

  6. #5
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,451
    Thanks
    17
    Thanked 275 Times in 275 Posts
    Here's a way of 'sort of encrypting' text that will prevent casual plagiarism. First convert the text into ascii or utf-8 so that it is not readable as text in the source code. Then cover the div that has the rendered text with another div of higher z-index so that it will not be selectable for copy and paste.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.

  7. Users who have thanked DrDOS for this post:

    durangod (10-18-2013)

  8. #6
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    southwestern USA
    Posts
    1,636
    Thanks
    314
    Thanked 34 Times in 33 Posts
    so using this converter http://www.unit-conversion.info/texttools/ascii/#data

    hello how are you = 104 101 108 108 111 032 104 111 119 032 097 114 101 032 121 111 117

    so that would take care of the source page issue, but your saying have the normal unconverted version in a higher z index div to cover the on page version?


    Could they just take whats on the source page and use a converter to get the text?

  9. #7
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,451
    Thanks
    17
    Thanked 275 Times in 275 Posts
    Quote Originally Posted by durangod View Post
    Could they just take whats on the source page and use a converter to get the text?
    Absolutely, but that takes more effort and more skill than the average web user has. I did say casual.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.

  10. #8
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,646
    Thanks
    11
    Thanked 626 Times in 605 Posts
    if someone has their heart set on ripping you off, you can't stop them. i've seen people using phones to take snapshots of laptop screens. if the user is a babysitter who wants you show her other children the material, a no-right-click will probably stop her from making a perfect copy, dead in her tracks.

    most answerers on here are experts who would have no trouble at all copying whatever they want, so take their opinions with a grain of salt. Think more of someone like my mom who can barely use the page they way it was delivered, much less modify or otherwise appropriate the material. an over-sized clear textarea on everything but the nav will likely frustrate 95% of theft attempts.

    security is a numbers game, always has been, and always will be. that's why some call it an illusion. if you ask a locksmith forum "is my kwikset lock safe?", they will laugh at you and your cheap crappy lock, but that's not to say it's not worth locking your door with it when you go on vacation. why? because most crooks aren't locksmiths, just like most users are not coders.


    i don't mind people using technology to try to secure their content. to me, content is the lifeblood of the web, and if some procedure (effective or not) makes someone more comfortable having their work online, then it's only a good thing. i haven't seen much of anything to stop ME and MY desires yet, so i don't mind (heh). you can try to talk providers into not annoying their "customers", but that's hard to do. just go with the least intrusive measures for users that will still relax the content provider.
    Last edited by rnd me; 10-17-2013 at 04:53 PM.
    Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com

  11. Users who have thanked rnd me for this post:

    durangod (10-18-2013)

  12. #9
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    9,864
    Thanks
    6
    Thanked 1,164 Times in 1,135 Posts
    Quote Originally Posted by durangod View Post
    My client writes very long stories more than 50,000 characters and they would like to be able to protect that work.
    Here is the point: The internet as intended by Tim Berners-Lee was never designed to protect content, it was designed to provide content. You have to make that clear to your client; if you want to protect your content then don’t publish it (on the internet) in the first place.

    Some people seem to have either forgotten or never understood the very nature of the internet. They just take things for granted and then complain if they don’t work according to their conceptions.

  13. Users who have thanked VIPStephan for this post:

    durangod (10-18-2013)

  14. #10
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    southwestern USA
    Posts
    1,636
    Thanks
    314
    Thanked 34 Times in 33 Posts
    Thanks VIP and everyone for your reply's so far, this is great info.

    I had a thought on this as i was not thinking about it lol... What about rather than try to hide stuff, secure stuff, turn off stuff. What about just a simple trapping of right click on page that brings up a javascript alert that simple says something like

    Hi, i worked hard on this content, if your going to copy and paste it please show me as the author.

    Or

    Hi, i worked hard on this content, please ask before you take my hard work for yourself.


    In other words why not just try to appeal to their logic or give them a bit of guilt by reminding them in a nice way they are pretty much stealing.

    Its not intrusive, does not turn off features, and may just make them go someplace else.

    Question is im not sure how to trap right click...

    What do you all think of this idea?


    UPDATE i was able to at least appease my client somewhat with this idea. We just wrapped the text itself in a div

    Code:
    <div oncontextmenu="javascript:alert('We worked hard on this text - please do not copy it - that is so wrong!');return false;">TEXT STUFF</div>
    it is the lessor of most of the evils we spoke of, it only effects the text not the page so less chance to upset a good user. I know they can simply look at source but my client knows that. We will just hope that they assume the whole page is affected by this and move on down the road..

    Thanks all..
    Last edited by durangod; 10-18-2013 at 09:12 PM.

  15. #11
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    8,131
    Thanks
    3
    Thanked 814 Times in 803 Posts
    You can't trap a right click - most browsers have that disabled by default and require the browser owner to turn on the ability of JavaScript to intercept the right click rather than it being passed directly to the context menu processing.

    What you are actually looking for to cover this situation is called a copyright notice. While all pages are automatically covered by copyright even if they don't display a notice there are many people who apparently don't know this and so by displaying such a notice you ensure that they know that it applies to your content even where they incorrectly assume that content not so marked is not covered.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  16. #12
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,646
    Thanks
    11
    Thanked 626 Times in 605 Posts
    Quote Originally Posted by felgall View Post
    You can't trap a right click - most browsers have that disabled by default and require the browser owner to turn on the ability of JavaScript to intercept the right click rather than it being passed directly to the context menu processing.
    hmmm, i don't think so. i tested the page https://maps.google.com/ on Firefox, chrome, IE, and opera (12.14), and they all show a custom right-click menu on my windows7 workstation...
    Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com

  17. #13
    New to the CF scene
    Join Date
    May 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't think disabling right click to prevent theft of images is a good idea. As a user I found it annoying. What if I just want to right click and open the picture in a new tab so I can zoom in and see it better? For protecting your photos, I use a watermarking program like SquiggleMark. It lets me batch watermark hundreds of pictures at once. With a semi-transparent watermark showing a link to my website, it acts as free self promotion tool as well. You can't stop Internet piracy, but you can use it for your advantage to promote your work.
    Last edited by VIPStephan; 05-16-2016 at 10:11 PM. Reason: removed link


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •