How to Disable Right Click using JavaScript blogger Pictured Steps



How to Disable Right Click using JavaScript Pictured Steps:

Normally, most blogs keep the right click option enabled to let their users navigate, copy, print, save and reload their web pages. But sometimes the dirty-minded users just visit your blog for just copy pasting your content. So to stop them copy pasting and to protect your blog, you have to disable the option of right click.

READ  Cheapest .com Domain Registration in Godaddy Rs 69
FelixMittermeier / Pixabay

Once right click has been disabled the option of copying from right click is banned. But You all know the shortcut key ctrl+c to copy the text. so the content is still not secure.

READ  How to Improve blogger Page Rank without SEO

So, the next step is that if you disable text selection in your blogs then ctrl+c also won’t work.

Also see: How to enable blocked right click to copy the content in a website

READ  How to change theme of your blog in blogger

The Steps to disable right click in blogger is shown below.

Step 1: Go to Layout Tab on the left side of the blogger menu.

html script to disable right click

Step 2: Click on ‘Add a Gadget’ at anywhere (You can choose sidebar left or right or anywhere where you can add HTML script as this won’t appear)

remove copy paste option on blogger

Step 3: Now choose the widget ‘HTML/ Javascript’.

steps to remove copy paste option

The blank space to enter the blogger’s HTML script would appear. Paste the following code from the link and click ‘save’.

READ  How to Hack BlogSpot website Within 60 sec

Disable Right Click using JavaScript code:

<script language=javascript>

//Edit by

READ  How to Create pages in Blogger with 7 steps

var message=” Sorry Right Click Has Been Disabled”;

function clickIE4(){
if (event.button==2){
return false;

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;

if (document.layers){
else if (document.all&&!document.getElementById){

READ  How to Change Author photo in blogger for premium template

document.oncontextmenu=new Function(“alert(message);return false”)

// –>

NOTE: This script will disable right click only. It does not remove text selection. So users can copy from your blog by pressing ctrl+c. To remove text selection from your blog click the link mentioned below.

Click here


Please enter your comment!
Please enter your name here