
Disabling Copy Option from Web Page
It’s frustrating
when people copy your blog post or image and pass it off as their own. No thank
you, no credit, no linkback. Worse still when the stolen content ranks higher
than yours (the original) in search results. All the hard work, down the drain. This post will
show you how deter bad people from stealing your blog content. There are many
ways but i have experienced two.
1-JavaScript to Disable Right Click
Just Simply Copy
the Code below and add an HTML widget in your blog and Paste the Code there.
<script
language=javascript>
<!--
//Disable right mouse click Script
var message="We are Sorry You Cant do That.
:/";
///////////////////////////////////
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")
// -->
</script>
1-Disable Text Selection
This one is i
think more better than the Previous one because sometimes JavaScript in some
Browsers didnt work. By this Method you can simply Disable the Text selection. This can be implemented using only CSS, by
applying the following CSS definitions to the element that you want text
selection disabled:
Copy the Code
Below and Just put in the Template Dsigner->Advanced->CSS Code
.post {-webkit-user-select: none; -khtml-user-select: none; -moz-user-select: -moz-none; -ms-user-select: none; user-select: none;}
This code will Disable the text selection from your Post . :) .
I Hope that this Post help you. would you mind taking a moment to rate it in Below
Comments? Your Comment will be appreciation for Meee....
Post a Comment Blogger Facebook