Disable selection/Copy text

Hello,

How can I disable selection and copying of a text?
I’m using something similar to a button and I want it not to be selected or copied. it’s possible?

Tks

you can look into this.

Keep in mind that anything displayed in the browser is available to the user. Even if you disable selection the data can be copied by simply opening the developers tools of the browser or analysing the network traffic.

1 Like

You could render text on a canvas server side and serve it back to the front end as an image.

Not convenient by any means but even then, an ocr scanner could get your text.

1 Like

I will check. I actually want to prevent the mobile experience from dragging my finger over and opening those google search windows. Very boring experience. I’m testing here and every little bit they appear. Thank you for your help

1 Like

If its only for user experience, the user-select css property is what you need, as dorilama linked :slight_smile:

1 Like

I managed just by typing in the Custom CSS:

user-select: none;

It worked out! Thanks a lot for the help

image

1 Like