I use this code to prevent the visitors of my website to copy-paste its content.
<script>document.addEventListener('contextmenu', event => event.preventDefault());</script>
<script>element.on(?:copy|cut|paste)</script>
I was wondering if it were possible to exclude one URL from this script? It would help since it's for the tracking and customers would use copy-paste
Let me know, thanks you in advance :)
window.location.CTRL+C. However, you may call this functionality from a function in which a check fordocument.locationoccurred before listen to the event.