Announcement

Collapse
No announcement yet.

How to Disable right click in application sc8 ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Disable right click in application sc8 ?

    Hello everyone, I would like to disable the right mouse button in my application SC8, to avoid to make me copy the photos of my site..

    I tried to put this code in onApplicationInit but generates an error, the code I used is as follows:

    echo "
    <script>
    <!--
    var message="Right Mouse disabled !!";
    function clickIE4(){
    if (event.button==2){
    alert(message);
    return false;
    }
    }
    function clickNS4(e){
    if (document.layers||document.getElementById&&!docume nt.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>
    ";

    Thank you very much for yours answers !!

  • #2
    First of all, you cant really block it. There are scripts for deblocking your blocking script for example in firefox.
    Next to that anyone with F12 in their browser can still copy your photos.

    http://stackoverflow.com/questions/3...-on-a-web-page
    http://stackoverflow.com/questions/7...on-my-web-page

    Anyway it can be circumvented with ease...
    You should put a watermark on your fotos AND add origins on your photo's also in the jpg tags (better known as EXIF).
    https://beckustech.wordpress.com/201...g-image-files/

    Grabbing fotos is so easy that you can basically forgot any protection.
    You should also put the proper copyright statements on your website, this is seriously needed if you ever want to make a case in a court of law.

    http://www.naturefocused.com/article...rotection.html

    Comment


    • #3
      GRazie many rr, for your answers !!
      Now I try ....
      Domenico

      Comment

      Working...
      X