HomeBlogger Tricks

How to Prevent People from Copying Your Content

Like Tweet Pin it Share Share Email

Finally One more Trick s Ready for you, Today here you will Learn How to prevent bad people from stealing your blog content.

disable right click on blogger


Actually now a day lot of person are taking interest to create a blog and run fast . but according to me and as I saw mostly newbie always do focus on Increase No. of Posts in blog , No matter these are unique or Self writer , etc. so in this fast race they are copying or Stealing Content from other blogs .
By the Way you cannot Stop anyone from copying your content but you can do something by which you can make hard for them to copying Articles.

In this Post I am going to tell about Disable Right Click in 2 cases .
1-    When someone try to copy your article then that time Right click will not work.
2-    When someone try to drag and drop for your Images of article then it will also not work.
Hope you have seen some websites where you can’t us right click of mouse anywhere . they are using same trick on blog/website . Now you can also add “Disable right Click on Blogger” this is very simple trick but unique most of person don’t know about it so, by using it you can do enjoy with your friends. Never forgot your blog is great, and content of your blog is most important so use below steps to secure your content/article.

Disable Right on your whole Blog

1. First of all go to your Blogger dashboard —à Layout–àAdd a Gadget
2. Now here select “HTML/JAVASCRIPT” and paste the below code in <Body> box.

<script language=”JavaScript”>

<!–

//Disable right click script by http://www.onlyloudest.com/

var message=””;

///////////////////////////////////

function clickIE() {if (document.all) {(message);return false;}}

function clickNS(e) {if

(document.layers||(document.getElementById&&!document.all)) {

if (e.which==2||e.which==3) {(message);return false;}}}

if (document.layers)

{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}

else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

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

// –>

</script>

Disable Right click on all Images

1. Go to your Blogger Dashboard —à Template –à Edit
Here you will see a long html scripts of your template. So use “Find” by ‘CTRL+F’
2. Find </head> tag
Now following codes paste below </head> tag in your template and Save it .

<script type=”text/javascript”>

//<![CDATA[

    function nocontext(e) {

        var clickedTag = (e==null) ? event.srcElement.tagName : e.target.tagName;

        if (clickedTag == “IMG”) {

            alert(alertMsg);

            return false;

        }

    }

    var alertMsg = “Image context menu is disabled”;

    document.oncontextmenu = nocontext;

//]]>

</script>

So, This was my little Trick to Disable Right click in Blogger . hope this will work for you , please don’t forgot to give your Feedback in Comment J

Comments (1)

  • Hi Sanu,

    This is fine for some Bloggers, they can edit their html files. But for other user like WordPress. This trick will not work. Although I am also using one my blog on Blogger. I will give this try on it.

    Thank for sharing

Comments are closed.