I created the HTML in the way shown in the image, but it doesn’t work well. If you have a good method, I would appreciate your advice.
Try this code -
<style>
body {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
}
</style>
Thanks! Does this work?? I don’t
This works.
did you tried it ? any issue ?
It’s not possible to completely prevent people from copying or accessing text on a website. There are tools like code inspectors and browser plugins that allow users to view and copy the underlying code of a webpage. Even on mobile, users can take screenshots and use screen readers or other apps to extract text from images.
If you truly need the text to be non-copyable, the most reliable option is to make it handwritten, take a photo of it, and then use the image on your webpage. While this won’t stop someone determined from recreating or deciphering the content, it makes it significantly harder to directly copy the text in a convenient way.
Thanks!!! Looks like I pasted it in the wrong place!! Thanks!!
This topic was automatically closed after 70 days. New replies are no longer allowed.