+ 2
Disabled copy and right click
How can I disable coping on my blog so users can't copy my content
4 Answers
+ 7
* {
user-select: none;
}
+ 6
You can't prevent people from copying your contents. This is the Internet.
If you want to disable certain shortcuts or click events:
https://stackoverflow.com/questions/21743267/html-page-disable-copy-paste#21743328
+ 3
You can disable right click using "contextmenu"
+ 2
window.oncontextmenu = (e) => {
e.preventDefault();
}
https://code.sololearn.com/WOFJT5W5ZU1I/?ref=app