What are some common methods used to protect images from being saved on a website?

One common method to protect images from being saved on a website is by disabling right-click functionality. This prevents users from easily accessing the context menu and saving the image. Another method is to overlay a transparent image on top of the original image, making it difficult for users to save the image directly. Additionally, using watermarks or low-resolution images can deter users from saving and using the images without permission.

<script>
document.addEventListener('contextmenu', event => event.preventDefault());
</script>