Right Click Disable Script for Blog | how to disable right click on blog

May 02, 2021
For those of you who have a web, of course, will feel annoyed if indeed our content is nosy, aka someone copy and paste mercilessly or you can say crazy copy. All the posts that we have made tired of thinking for days in the trip, just copy and paste. So from that, one way to prevent this is to apply an anti-right-click script on our blog, or you can say disable right click. besides being able to protect content, it can also protect your template from clone attacks. To add an anti-right-click script or disable right-click, please apply the script below before or above the code
<script type='text/javascript'>
// Right Click
function clickIE(){if(document.all){(message);return!1}} function clickNS(e){if(document.layers||(document.getElementById&&!document.all)){if(e.which==2||e.which==3){(message);return!1}}} if(document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE} document.oncontextmenu=new Function("return false")
//]]></script>
Now that's how to add a disable right click script on your site, hopefully it will be useful for you.

Post a Comment