208

Customer: ... and can you also disable right-click to prevent our website's content from being copied?

Me:

Comments
  • 9
    I got the same request earlier this year... just preventDefault() in the copy event was enough for them. Of course you could still inspect the html code and copy...

    Maybe i should have put some weird empty HTML snippets randomly into the plain text, so that it looks like exported from Word 2003 =D
  • 41
    I am in the middle of an argument with the people who wrote the requirements for our public website about something similar. It is a security requirement that a user shall not be able to copy the email address field and paste it into the confirm email address field (the requirement actually reads that the field should only accept typed text). They can't explain to me how it is an actual security problem, and I've bet them they can't stop me from doing it across all browsers.

    They've got some JS running on the page that stops right click copy/paste, and that prevents ctrl+c/ctrl+v. Blew their mind when I typed the email into the email field then highlighted it and drag/dropped it into the confirm email field.

    Next week I am going to show them browser auto-complete and password managers that can fill forms. They might have an anyeurism.
  • 9
    I hate it when sites with images do this.

    I mean I get the point, but if that site is centered around images that can be shared and then just offers some stupid ass link that doesn't even link directly to the image you wanted to share, then it's just bullshit. *Opens Dev tools and searches network resources for picture*
  • 0
    actually, that's rather impressive. congratulations
  • 5
    @feature what if you tell them that JavaScript can be disabled?
  • 8
    "We need copy protection, so we write the content in word, take a screenshot and host the image"

    Show off wget, convert and tesseract...

    "Are we legally allowed to chop off the fingers of users? We need to protect our data!"

    "Have you tried not having a website? That would help."
  • 2
    @bittersweet ! Thank you never heard of tesseract before this is going to help me on a side project I gave up on :D
  • 3
    @CogInTheWheel @bittersweet
    Tesseract is one Hell of a good Band. If you're into math Metal.
  • 0
    I've seen sites where I could not even select the text with left click. How is it done?
  • 0
    F12, Ctrl+Shift+I, Ctrl+Shift+J, Addon to set custom hotkeys for DevTools
  • 0
    @feature you could turn all the email addresses into images.
  • 2
    @shaji oh, I have... They just get really angry and tell me that "It works!"

    The people who write the requirements are not developers. I had to show them on a video conference that in Firefox, if I drag/drop text it is like a copy paste, and their shitty JS is powerless to stop it. Their reaction was more or less to jam their fingers in their ears and yell LA LA LA LA LA LA I CAN'T HEAR YOU!
  • 2
    @feature + some people are just plain stupid. What I do is just drag the text I'm after in to field where I can't copy and paste.

    It's like d**kheads who change the default port to a service thinking they are being clever...

    I wish they would spend that time they wasted making me a cuppa or something useful. Then again the cuppa would likely be wank or worse Typhoo.

    😝😝
Add Comment