Skip to main content
Anonymous
Asked a question 10 months ago

Is it possible to disable / restrict members from copying answers in the community? For example disabling the copy or ctrl C keyboard shortcut etc.?

Where am I?

In Tribe you can ask and answer questions and share your experience with others!

Technically, any content that is visible to a person can be copied and there is no way to absolutely prevent it. However, it is possible to make it harder.

In the Admin Panel > Theme > Advanced Settings, add the following code to "Code added to the end of <body> tag":

<script>
document.body.oncopy = function(e) {
e.preventDefault();
return false;
}
document.body.oncut = function(e) {
e.preventDefault();
return false;
}
</script>

This will prevent user from copying content in most browsers.

Additionally, you can disable text selection by adding following code under "Additional CSS":

body {
   user-select: none; /* supported by Chrome and Opera */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
}

We do not recommend implementing any of the above solutions since it impacts user's experience.