Disabling Right-Click on Specific Pages

I currently have ‘Right Click Protect’ enabled on my website, but it prevents users from right clicking anything.

Is there a way to disable right-clicking (to prevent saving and copying) on specific pages rather than the entire website?

Thank you in advance!

Hi,
There’s no Wixcode API to control right click.
Therefore, I suggest you contact Wix Support , as they can help you best.
Cheers,
Roi.

Thank you, Roi! Wix Support let me know that the app doesn’t have that ability yet, so I’ll need to submit a feature request if there isn’t one already.

There is now an official feature request for this which can be voted for at https://support.wix.com/en/article/request-controlling-which-site-pages-are-protected-with-the-right-click-protect-app

If you have a premium account you can do it as follows:
Go the the site dashboard > Settings > Custom Code > Add Custom code

Put the following snippet to the head:

<script>
document.addEventListener('contextmenu', event => event.preventDefault());
</script>

Set the pages you want to apply it to.

Hi,
I tried this and it works on the browser but unfortunately does not when viewing the site through mobile devices - iPad especially

Please advise