+ 2

Disabled copy and right click

How can I disable coping on my blog so users can't copy my content

8th Apr 2022, 10:05 AM
Isuho Friday
4 Antworten
+ 7
* { user-select: none; }
8th Apr 2022, 10:15 AM
Calviղ
Calviղ - avatar
+ 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
8th Apr 2022, 10:18 AM
Lisa
Lisa - avatar
+ 3
You can disable right click using "contextmenu"
8th Apr 2022, 10:39 AM
A͢J
A͢J - avatar
+ 2
window.oncontextmenu = (e) => { e.preventDefault(); } https://code.sololearn.com/WOFJT5W5ZU1I/?ref=app
11th Apr 2022, 4:34 AM
Calviղ
Calviղ - avatar