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.
J.D
April 29, 2021, 5:59pm
5
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.
iyerr
October 31, 2022, 3:33pm
6
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