---
title: "How to restrict the readers from copying the content"
slug: "how-to-restrict-the-readers-from-copying-the-content"
description: "In general, you can copy the contents of the Knowledge base site easily with the mouse selection and Ctrl+C (or) alternative copy action. In confidential documentation, you would want to restrict the readers from copying the content. You can implement the below solution to restrict readers from copying the content."
tags: ["Customization"]
updated: 2026-03-10T04:32:19Z
published: 2026-03-10T04:32:19Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.document360.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to restrict the readers from copying the content

In general, you can copy the contents of the Knowledge base site easily with the mouse selection and Ctrl+C (or) alternative copy action. In confidential documentation, you would want to restrict the readers from copying the content. You can implement the below solution to restrict readers from copying the content.

By implementing the below solution, the readers can still select the content and perform a copy action (i.e., they can perform mouse selection and press Ctrl+C or perform any copy action). However, the **content will not be copied**.

### Solution

1. Navigate to **Settings** (<nor class="fa-solid fa-gear" data-tomark-pass=""></nor>) > **Knowledge base site** > **Site customization** > **Custom CSS & JavaScript** in the Knowledge base portal.

![Site customization options including CSS, JavaScript, and theme settings for a knowledge base.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Custom%20css%20&amp;%20js.png)
2. Paste the below snippet in the JavaScript panel.

Knowledge base Site 1.0Knowledge base Site 2.0

```javascript
$(document).ready(function(){
$('.content_block').bind("cut copy paste",function(e) {
e.preventDefault();
});
});
```

```javascript
$(document).ready(function(){
$('d360-article-content').bind("cut copy paste",function(e) {
e.preventDefault();
});
});
```

1. Click **Save**.

![JavaScript code snippet preventing cut, copy, and paste actions in a web application.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Restrict%20copying%20content%20on%20site.png)
