Prevent copying of text on the site, and instead show other text

Asked

Viewed 44 times

0

Oops, I’m creating a website, and I want to stop anyone from copying any word out of it. Alias I want to allow the selection and copy, but along with the copied text, when the person paste, I came another preset text defined by me with a link.

Ex.: "This copy is improper, see the original in: www.original.com."

I don’t have any code yet, so if you can help me I’d appreciate it.

  • try to treat the event "oncopy" but this will never prevent the user from viewing the source code and copying

  • Anyone with a little bit of knowledge can get around that.

  • They marked it as a duplicate of a question which is the opposite po. Uncheck it there!

  • How so the opposite @Leandrade? The answer on the link shows how to copy anything to the Clipboard, that’s not what the question needs in the background?

  • @bfavaretto In my view no. One wants to copy to clipboard and this wants to prevent the copy and perform another action in place.

  • "Alias I want to allow the selection and copy, but along with the copied text, when the person paste, I came another preset text defined by me with a link." @Leandrade

  • It’s that in the title he wants to stop, in the body of the question he wants to leave. Ta good tbm go, the guy who asked the question tbm does not come to edit the question and explain what he really does. You can mark even man :) @bfavaretto

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.