Undraggable Image

  • 7 July 2021
  • 1 reply
  • 1 view

Hi, my landing page currently has an image that can be clicked and dragged around, and for copyright reasons I would like to fix this. I’ve searched for it and still do not understand how to get the code working. I would be so grateful if someone could help me!


1 reply

Badge +2

Hey, i don’t know if this is still relevant for you, but you can use an easy workaround.
If i understand correctly, you want to prevent your page visitors to left click + drag the image (which would make a drag and drop download possible) and also prevent right click → "save image as ".
You can achieve this by covering the image with a box and then setting the opacity of the box to zero and get rid of the border. This way the image is still visible, but “behind” the invisible box so it can’t be clicked. This should prevent most users from downloading the image.

Reply