23 users online (0 members and 23 guests)  


  Results 1 to 9 of 9

Related

  1. Replies: 1
  2. Changing a picture by clicking it    Forum: Website Scripts Forum
    Replies: 9
  3. Replies: 4
  1. #1
    frankarrow's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2002
    Posts
    5

    Question Disable right clicking & image download.

    I was wondering is there anyone that knows of a way to prevent someone from right clicking on your web page or having the ability to download images from your website. I think I have seen this done before (possibly with javascript). I did a search but could not find anything. Sorry if this has been asked before.

    Thanks

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    This has been asked before

    But don't worry, its not a problem.

    This thread has a few examples -

    http://www.ahfb2000.com/webmaster_he...ighlight=click

    have fun.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    maybe we should write some script that whenever someone posts a question with the words "right click" in them it automatically forwards to that thread

  4. #4
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    How about:

    Sorry, we don't provide code to people who don't want to share their code with others.

  5. #5
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156

    Lightbulb no right click and image downloading?

    try these three links:

    http://www.dynamicdrive.com/dynamicindex9/noright3.htm

    http://www.dynamicdrive.com/dynamicindex9/imagebar.htm

    http://www.dynamicdrive.com/dynamicindex9/noselect.htm


    I DO NOT recomend them as i agree totally with enzden

  6. #6
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hmm.

    I have been thinking about what Benzden said, and it makes an awful lot of sense.

    Why should I spend all my time writing/finding code for people who just want to hide the code they write (and by the sound of it, copy off others?) ?

    'No-right-clicks' are annoying, selfish and, to anyone with any sense, pointless.

    But. Thinking more about it I also thought about why I visit these forums all the time.

    its because I love helping people

    If someone wants to know how to do something,. I am going to help them find out. I will warn them why its a bad idea, but from that code they may grow and become a very good coder.

    no-right-click doesn't hurt anybody, and helping people is what I do.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  7. #7
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    No right clickers are only hurting themselves - so it doesn't make much difference what they do -- anyone who knows what they are doing can always figure out what's happening on the web. Over the long run, everything will work out to the advantage of the majority of the internet users - whomsoever they may be.

    And, by implication, that means that those who help them aren't doing any harm either - everyone is free to do as they please and the "moment" motivates them -- those who feel differently should have their own counter measures --- I have mine and am pretty satisfied that I can cope with whatever is encountered on the internet.

    Make yourself happy, first - those who count will also become happier as a result.

  8. #8
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    Through experience most of the regulars know that the "no right click" is a bad idea and does absolutely nothing in the way of providing security against code or image theft. Most of the folks requesting help are total newbies that are just not aware of this, and are just wanting to make thier tripod site "cool".

    Having looked at frankarrows profile and visiting his site, I think his case is different. He may have a good reason to wish for a no right click. Maybe he has recently taken on the responsibility of his companies site and is "learning on the job".

    Regardless, it is folks like frankarrow that this site was devoloped for. I use his products almost on a daily basis in my contracting business and have been extremely happy with the quality and performance. I hope that all of you folks will continue to give the great advice that you always have in order to see that he becomes a regular user of our "product" as well.

    Dave

  9. #9
    endless43098's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2009
    Posts
    1

    Re: Disable right clicking & image download.

    It's pretty simple. Add this HTML to your website:
    <script language=JavaScript>
    <!--

    //Disable right mouse click Script

    var message="Function Disabled!";

    ///////////////////////////////////
    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>

    You can replace: Function Disabled!
    With other words that you would like to show as an alert message when someone tries to right-click on your website. Home this information helped!