Disable right-click downloading of images on my blog?
Is there a way to disable right-click downloading of images on my page? I would like to make image piracy just a tiny bit harder
There's a useful thread on StackOverflow about disabling right-click. You can apply the first method to your template on Blot if you:
- First fork an editable copy of your template if you haven't already
- Open up the template editor and navigate to your template's script.js file under the source code tab
- Paste the following onto a new line at the bottom:
document.addEventListener('contextmenu', e => e.preventDefault());
But like the people of StackOverflow: I'd advise you not to do this. I hope that helps – please let me know if you have any questions about this or anything else
Answered 2 years ago · Edit answer