Good morning,
Is it possible to disable the right mouse button on Sp pages?
I use a module that does this, but I inserted videos on the page, using the video add-on (SP page builder), but even so, IN videos ONLY, the save as option is enabled, so the user saves the page and can see the content, even being disconnected.
disable the right mouse button
5 replies
Complementing the above.
Even with restricted access to the page, if the user saves the page on the PC, the page opens with texts and videos open normally, even videos being in restricted mode as well.
Hi. I would recommend you just delete this module and do not think about turning off the right click. Since it is meaningless and it can be easily bypass using browser dev tools.
Experienced webmasters do not use such things. Beginners only. Therefore, you can hardly find the answer.
Hello Geraldir
Please use this JavaScript code to Template Options -> Custom Code -> Custom JavaScript and it will disable the mouse right click from your site.
document.addEventListener('contextmenu', event => event.preventDefault());
Best regards
Thanks for listening!
I applied the code and it works on the page, but still for videos the option to save as is enabled. With this, the entire page is saved and the content, including text that is restricted, is available to those who download.
If you have another code send me and I'll try again.
Sorry, I am out of idea :(