Disable Right Click

We have often encountered a website or blog that disable right-click on the blog page. Means that the blog was very carefully in order to maintain the privacy of the source page can not be viewed by others. You can also create a blog to disable right click.

 

A website or blog that contains a certain content of privacy, such as an image that is presumably at risk for the copy by other people and for that you can be very harmful. The need for the technique to disable right-click on the blog, the very privacy of image will not be able to copy on other people.

## Here are the steps:

  1. Sign in to Blogger with your ID

  2. Click Layout

  3. Click Page Elements

  4. Choose HTML / Javascript

  5. Enter the code below in the box provided

    <script>
    var message="Sorry, Right-Click is Not Allowed !";
    ///////////////////////////////////
    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>
Then Save. See and feel the difference on your blog, before and after the disable right click.




Related Posts

1 comment

June 6, 2012 at 3:07 AM

You can still use ctrl+c right?

Post a Comment

 

Recent Comments

Reader Community

Recent Posts