1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

no right click script

Discussion in 'JavaScript' started by lilquit, Mar 23, 2005.

  1. #1
    Would it be hard to add a no right click script for images into my site
    www.662mob.com

    Thank you
     
    lilquit, Mar 23, 2005 IP
  2. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #2
    I use this and love it



    It seems to work only on IE.
     
    fryman, Mar 23, 2005 IP
  3. Smyrl

    Smyrl Tomato Republic Staff

    Messages:
    13,740
    Likes Received:
    1,702
    Best Answers:
    78
    Trophy Points:
    510
    #3
    I have been told that only makes people more determined to get. I saw a javascript version. The work around being disable javascript. It seems where there is a will, there is a way. I might considering branding so if stolen it would be obvious.

    Shannon
     
    Smyrl, Mar 23, 2005 IP
  4. getsum80

    getsum80 Peon

    Messages:
    342
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    a very nice good code
     
    getsum80, Mar 23, 2005 IP
  5. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #5
    FF will popup a dialog and then will still show the menu in FF.

    Besides, it won't prevent people from downloading your images, if this is what you are trying to prevent, that is. In FF, you just go to Page Info and you will see all images on the page and will be able to save them.

    J.D.
     
    J.D., Mar 23, 2005 IP
  6. lilquit

    lilquit Peon

    Messages:
    452
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'm not tech enought to put it on . I will have to find someone that is but thanks for the code.
    I want it because people are posting my images on other sites using my bandwith
     
    lilquit, Mar 23, 2005 IP
  7. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #7
    That is not a right click problem, it is called hotlinking. Much more complicated, you should get in touch with someone that can play around with your .htaccess file.
     
    fryman, Mar 23, 2005 IP
  8. lilquit

    lilquit Peon

    Messages:
    452
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    well its mostly kids doing it so i think they just right click properties to get the image address
     
    lilquit, Mar 23, 2005 IP
  9. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #9
    As fryman said, it's not the kind of problem you can resolve with client-side scripting. Find out which sites are hotlinking to your images and block offending IP's.

    J.D.
     
    J.D., Mar 23, 2005 IP
  10. lilquit

    lilquit Peon

    Messages:
    452
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #10
    well if they cant right click they have to view source to get the code yes??? That is enough for me.. if they go through the trouble of viewing source code i dont mind
     
    lilquit, Mar 23, 2005 IP
  11. NewComputer

    NewComputer Well-Known Member

    Messages:
    2,021
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    188
    #11
    Do you have Cpanel? You can use what is called a hotlinking block...
     
    NewComputer, Mar 23, 2005 IP
  12. lilquit

    lilquit Peon

    Messages:
    452
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #12
    No cpanel on this hostng service
    Im trying to get my web guy to change this site to my other host which has a cp but he is lagging OC (out of control)
     
    lilquit, Mar 23, 2005 IP
  13. ResaleBroker

    ResaleBroker Active Member

    Messages:
    1,665
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    90
    #13
    You can prevent hotlinking with .htaccess if you're on an Apache Server with Mod-rewrite. If you need a tutorial I posted some links in my blog [seobulletin].
     
    ResaleBroker, Mar 23, 2005 IP
  14. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #14
    You are missing the point here (sorry). If you consider clicking Tools > Page Info as going through the trouble, then sure, stick this or similar code to each and every of your pages. What we are trying to say here is that this will be more trouble for *you* to maintain the script than it will ever be for *them*.

    J.D.
     
    J.D., Mar 23, 2005 IP
  15. getsum80

    getsum80 Peon

    Messages:
    342
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #15
    aahhh ok i get it
     
    getsum80, Mar 23, 2005 IP
  16. NewComputer

    NewComputer Well-Known Member

    Messages:
    2,021
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    188
    #16
    I never really understood the whole javascript thing anyways. Invisibly water mark it (there are tutorials) and then keep an eye on your logs. When you visit their site and drag your mouse over the image you know is yours it will show your watermark. An ISP email later and the image is gone.

    Otherwise, you are fighting a losing battle...
     
    NewComputer, Mar 23, 2005 IP
  17. getsum80

    getsum80 Peon

    Messages:
    342
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #17
    whats an isp email?
    i email their isp?
    how do i know whose hosting them

    this is the site where people post my photos the most
    www.805bbr.com/forum
     
    getsum80, Mar 23, 2005 IP
  18. redking

    redking Member

    Messages:
    93
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #18
    Damn you're dumb. This is not the industry for you. :p
     
    redking, Mar 24, 2005 IP
    fryman likes this.
  19. getsum80

    getsum80 Peon

    Messages:
    342
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #19
    F U red king I'm a kid and i am trying to learn
     
    getsum80, Mar 24, 2005 IP
    T0PS3O likes this.
  20. clasione

    clasione Notable Member

    Messages:
    2,362
    Likes Received:
    158
    Best Answers:
    0
    Trophy Points:
    228
    #20
    This is the one I use:
    <script type="text/JavaScript">
    <!--

    //Disable

    var message="";
    ///////////////////////////////////
    function clickIE() {if (document.all) {(message);return false;}}
    function clickNS(e) {if
    (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {(message);return false;}}}
    if (document.layers)
    {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

    document.oncontextmenu=new Function("return false")
    // --> </script>
     
    clasione, Mar 24, 2005 IP