Directory
Albums
Diary
Posts
Projects
Skills
Timeline
Categories
Tags
Table of Contents
Table of Contents
111 words
1 minute
Copy Protection Example
Post with Copy Protection Enabled
This post has all four copyProtection sub-options enabled in its frontmatter:
1copyProtection:2 blockSelection: true3 blockClipboard: true4 blockContextMenu: true5 blockDevTools: trueThe following protections are active on this page:
- Block Selection — Text selection is disabled via
user-select: none. - Block Clipboard —
copy,cut, andpasteevents are intercepted and prevented. - Block Context Menu — Right-clicking is disabled.
- Block DevTools —
F12,Ctrl+U(view source), andCtrl+S(save page) are blocked.
Options
| Option | Description |
|---|---|
blockSelection | Disable text selection |
blockClipboard | Block copy/cut/paste events |
blockContextMenu | Block right-click menu |
blockDevTools | Block F12 / Ctrl+U / Ctrl+S |
All sub-options default to false — enable only the protections you need.
Try It
Try selecting text, right-clicking, pressing Ctrl+C, or hitting F12 on this page — you’ll find all of these actions are blocked.
Copy Protection Example
/posts/copy-protection/ Some information may be outdated
Directory
Albums
Diary
Posts
Projects
Skills
Timeline
Categories
Tags
Table of Contents