Saturday, March 23, 2013

How to disable user to copy content and right click on blogger and website


Content is the important part of the website to online promotion point of view or website visibility point of view. Search engine is not prefer the duplicate content of any of the website or blog. How to disable to copy content of blog or website to help in online promotion system.  Right click is the mean part of the copy content. I things block the right clink on your blog and website to minimize the copy content. It is also block the selection action on your blog.  How to disable to not permit to select your web content from another webmaster. Process is below

In CSS copy this code and under the body tag past to block the selection system on your website
body {user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-o-user-select: none;}
Disable to right click on your blog
Step 1 : Go to Dashboard > Layout > Add Gadget > HTML / JavaScript
Step 2 : Copy this code and past
Step 5 : Save the html/javascript and view you blog.
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")







 

No comments:

Post a Comment