Disable Right Click on Images:
By disabling right-click on images, you can protect your images from being copied by others. This is a great way to prevent image theft on your blog. When right-click is disabled, users will not be able to save your images by right-clicking on them. You can also disable left-click on images if you want to prevent users from opening the image in a new tab or window.
How to Disable Right Click on Images in Blogger :
You can disable right-click on images in your Blogger blog without adding any JavaScript. You can use the oncontextmenu attribute to disable right-click on Blogger images. Simply open a blog post containing an image and set the oncontextmenu attribute as shown below.
Follow below steps to disable right click on images in your Blogger blog.
Step 1 : Go to Blogger Dashboard
Step 2 : Click on Posts
Step 3 : Open the post that contains the image on which you want to disable right-click and switch to HTML mode.
Step 4 : Please find the image tag and add the following code to the image tag:
oncontextmenu="return false;"
Ex: add oncontextmenu="return false;" to the image tag, like below
<image oncontextmenu="return false;" ............../>
Step 5 : Click on Update
Using this method you can disable right click on a single image on your Blogger blog. We can also disable right click on all images on your Blogger blog, I will tell this method later.
Nice article , check my blog too for tutorials
ReplyDeletehttp://chriscs7.blogspot.com/
Nice and well explained article...!
ReplyDeleteIt works perfectly but when you left-click on the image, it opens in a lightbox or in a new tab. There, you can still right-click and copy or save the image.
Therefore, it is necessary to disable also left-click on the image.