Disable Right Click on Images in Blogger

Disable Right Click on Images:
By disabling right click on images you can protect your own images with out copying from others. After disabling right click , mouse right click will not work on Blogger images. It is one of the best way to protect images on your blog. We can also disable left click on images on your Blogger blog.

How to Disable Right Click on Images in Blogger :

You can disable right click on images in Blogger blog without adding any java script. With oncontextmenu attribute you can disable right click on Blogger images. Just open a blog post having image and  set oncontextmenu menu 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 post and switch to HTML mode

step 4 : Find image tag and add below code to image tag

oncontextmenu="return false;"

add oncontextmenu="return false;" to 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.

2 comments:

  1. Nice article , check my blog too for tutorials
    http://chriscs7.blogspot.com/

    ReplyDelete
  2. Nice and well explained article...!

    It 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.

    ReplyDelete