Friday, December 9, 2011

Right click Protection

Sometimes we need to insert the script right click protection so that no other people to easily copy and paste the contents of our blog on their blog. Although just right click protection, it is enough to reduce the piracy of the content of our blog.

The trick is as follows:

1. Login Blogger.com
2. Copy the script below

<script>
var message="ATTENTION: Content protected! DO NOT COPY. Thank you.";
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>

3. Open Design - Add a Gadget - HTML / JavaScript - Paste Scripts - Click Save



4. Try right click on the blog page.


Replace the blue text at will.
Thank you for visiting this blog.
May be useful.

Try right-click in the box below.

1 comment: