Sunday, June 4

Disable Copy Paste in Blogger

Disable Copy Paste in Blogger

Every blogger hates when his original written contents are used for making similar posts by other bloggers. Copying contents is nothing more then just a right click. So, this post will cover how to disable copy paste in blogger by disabling the right click.


These scripts will disable right click in your blog whenever a visitor will try to copy something from your blog he will find disabled right click. However , there is another plenty of ways by a visitors can copy your contents. So, these codes doesn't guaranty full content theft protection.

Table Of Contents


Why disable right click?


If you are trying to copy contents or some text you will obviously have to right click for copying. So disabling right click will be equal to disabling copy paste.

Does these codes guarantee you full content protection?


No , there are another plenty of ways to copy contents , like Ctrl + C and Ctrl + V.

How to disable copy paste in blogger?


Step1: Go to Blogger > Layout > Add a Gadget to sidebar.

Step2: Select HTML/JavaScript Gadget and copy below codes in content box.

<script language=javascript>
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>

Step3: Leave title empty and save changes.