Results 1 to 5 of 5

Thread: the best right mouse blocker

  1. #1
    Join Date
    Aug 2005
    Posts
    7

    Default the best right mouse blocker

    this script will block the right click in your site
    its the best...

    if u set it in your site and its not working yet, you have to reset your browser.

    Code:
    <script language="JavaScript1.2" type="text/javascript">
    if (window.Event) document.captureEvents(Event.MOUSEUP);
    function nocontextmenu(){
    event.cancelBubble = true;
    event.returnValue = false;
    return false;
    }
    function norightclick(e){
    if (window.Event){
     if (e.which == 2 || e.which == 3);
     return false;
    }
    else if (event.button == 2 || event.button == 3){
     event.cancelBubble = true;
     event.returnValue = false;
     return false;
    }
    }
    document.oncontextmenu = nocontextmenu;
    document.onmousedown = norightclick;
    </script>

  2. #2
    Join Date
    May 2005
    Posts
    211

    Default

    By preventing right click the users cannot download the pics.. is that the purpose??. If so its just a waste of good effort. You can check in your cache and get those nice pics ;)

  3. #3
    Join Date
    Mar 2005
    Posts
    408

    Default

    yes, I agree with that and visitors can also view the source by using browsers..so what's different any way

  4. #4
    Join Date
    Aug 2004
    Location
    USA
    Posts
    996

    Default

    Seen about 15 of these, I also use some of these sometimes*

    If there is something I want protected, I can get rid of right click, but also when you use frontpage, frontpage can automaticly download the files etc shown on a website.

    So its pretty much useless on keeping people from copying.

  5. #5
    Join Date
    Oct 2004
    Posts
    282

    Default

    it is a really smart of going about stop other people from learning tricks from ur website. for the source code part, one time i was confused when i pressed Ctrl-U on my firefox. All i was seeing is blank lines, so i went WTF??? minutes later, i discovered the tricky admin added a bunch of spaces at the beginner of the html just to trick u. so there is definitely another weak trick, but it might just work!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •