Protect Blog posts from Copying Others – Blogger Trick

Stop copying blog content with css

Copying blog posts or articles from sites/blogs on the internet is a usual thing.Here I am going to share you how to protect your blogger posts/articles from getting Stolen.This is a trick to lock your text and the visitors of your blog can’t select the text only they can read the text. If they cracked that method and select the text there is another trick to disable right click menu, so they can’t copy text. Enjoy…

To view Demo click the link below:- Open this link and try to select text..Or do a right click.

What’s the secret behind?

It is simple, We use 2 methods combined.

  1. Using a little bit of CSS code to protect user from selecting the text. When user try to select, browser blocks selection.
  2. Add a small piece of javascript code to disable right click of mouse.

Copy the Following CSS codes to your Blog

  •  Go to Blogger Dashboard
  • Select Template->Edit HTML click Proceed    [or Use Alternate Way to copy CSS code]
  • Find ]]></b:skin>
  • Copy the following code  and save
-moz-user-select:none;
-webkit-user-select:none;
-khtml-user-select:none;
-ms-user-select:none;
user-select:none;

Disable Right Click

  • Copy the following code inside <head>
<!–

//Disable right mouse click Script

var message=”Function Disabled!”;
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

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

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

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

// –>

  • When the user tries to right click it pops up a message. If you want to mask that pop up, remove the red highlighted text.

I think this article will surely help you…if you liked this please share…

38 Responses to “Protect Blog posts from Copying Others – Blogger Trick

Leave a Reply

Your email address will not be published. Required fields are marked *