ANTI COPY POSTS on BLOGSPOT - Part 2

1 : Log in Blogger => Template => Edit HTML => CTRL + F  => <body> => Enter

Replace with the following code:


<!-- Start the copy prevention, pate -->
<body oncopy="return false" onpaste="return false" oncut="return false"> 
<!-- Finish against copy, pate --> 

 Save Template

a. Anti right click over the image: 


Edit HTML => CTRL + F  => </head> => Enter

Copy and paste the code below into the front


<!-- Start right click onto the image -->
<script>
$(function() {
$('img').bind("contextmenu", function(event_click) {
event_click.preventDefault();
});
});
</script>
<!-- End the fight right click onto the image --> 

Save Template

B - Anti right click to blog:
Effects: operation will disable right click to copy text, ...

Edit HTML => CTRL + F  => </head> => Enter

Copy and paste the code below into the front

<script language='JavaScript'>
var msg="SORRY! THIS OPERATION HAS BEEN DISABLED ...";
function disableIE() {if (document.all) {alert(msg);return false;}
}
function disableNS(e) {
if (document.layers||(document.getElementById&amp;&amp;!document.all)) {
if (e.which==2||e.which==3) {alert(msg);return false;}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=disableNS;
} else {
document.onmouseup=disableNS;document.oncontextmenu=disableIE;
}
document.oncontextmenu=new Function("alert(msg);return false")
</script>

SHARE THIS
Previous Post
Next Post