Tuesday, 30 April 2013

How to Disable - Right click on Blogger?

Posted by Arun Kumar Choppara On 10:43 | No comments
Most of the websites disable Right click on their websites in order to prevent content theft.
The same can also be implemented on blogger to avoid copying the content from the blog.

Let us see the process to disable Right click on blogger.

Before - Right click is disabled.

We need to add a small code to the blog template to disable the right click as explained in the process below.

1. Go to: Dashboard -> Template -> Edit HTML

2. Search for the below code

<html expr => in case of old templates


<html b => in case of new templates

3. Now go to end of the tag <html expr (or <html b) and add the below code as mentioned below.

oncontextmenu='return false' ondragstart='return false' onselectstart='return false'

4. Save the Template and view blog to see the changes.

Now the right click should not work on blogger.

If you like the post, take a couple of minutes to comment and share.
Your comments are most valuable and would help me come up with better posts.


Post a Comment