Unable to protect your website text.
These measurements are completely artificial, they’re just an ugly trick with Javascript. Anyone with Javascript disabled can do whatever they want. There are many other ways to get the text even if it was possible to block the Ctrl
, for example: download page via curl
, view page source code, use browser Web Inspector.
By the way, prohibiting users from copying texts would be inelegant and goes against the open and democratic principle of the web. On the Internet, information should circulate freely.
Imagine a user wants to save a snippet for you, or simply search the definition of a word in an online dictionary. If you block the copy, it only harms this user, the layman, who does not plan malice. The experienced user, who wants steal the text of your site, would use the techniques I commented.
This kind of thing is not effective and only serves to disrupt the lives of its users.
– hugomg
I always laughed at sites that blocked the mouse click when I used Opera, it was just a matter of choosing an option not to allow the site to intercept the mouse click ready, was it working there, miss the dead Opera since now it is a copy of Chrome. But as for what you want to do, I would say don’t waste too much time on it, if you want to just do what’s simplest, because it will only stop users who have no idea what they’re doing, anyone with basic knowledge of how it works the browsers will be able to circumvent it.
– Leandro Godoy Rosa
What I want to do is to prevent conflicts. But I feel sorry for copying a copyright content. Copyright would "shred" you alive. I just don’t want any trouble, but whoever goes through those protections is intentionally, and will be deserving of a good punishment.
– Hugo Marcelo