Log in Sign up

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


2 years ago, 1 replies   developers   Edit question

There's a useful thread on StackOverflow about disabling right-click. You can apply the first method to your template on Blot if you:

  1. First fork an editable copy of your template if you haven't already
  2. Open up the template editor and navigate to your template's script.js file under the source code tab
  3. 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