Technical Support Forums

Technical Support Forums » Web Album Generator

Disabling RIght CLick (9 posts)


About this Topic

Tags

  1. fifo945
    Member
    Posted 4 years ago

    How do I disable RIght CLick on the Web Generated Album?

  2. steve owen
    Moderator
    Posted 4 years ago

    Disabling right click does next to no good. People who want to steal your photos, do not even do it that way. The best thing to do is use a watermark, or save them at a really low resolution to discourage theft.

    There is really no easy to do a disable right click, in the photo albums.

  3. Anonymous

    Posted 1 year ago

    Actually - while you can't stop a determined thief - you can add the following to the html code for each page
    <body oncontextmenu="return false;">
    This prevents any menu from opening up when a right click is performed.
    I just wish I could add that to the source code generator......

  4. Mark
    Administrator
    Posted 1 year ago

    Interrupting the context menu with Javascript is ineffective at deterring image theives and interrupts legitimate navigational usage, so I'm afraid it will not become a feature of Web Album Generator.

    That said, I do plan to include some optional measures to deter copyright infringement in upcoming versions. Stay tuned.

  5. Anonymous

    Posted 1 year ago

    Ok Mark - I'm happy to drop some cash in the kitty for you, as the program is one I love and use on a regular basis.
    While you don't wish to add the script to disable the context menu to the program (and I appreciate your concerns) - would it be possible to PAY you to add it to a copy and send me that copy????
    I can go and modify the html files that are generated, but, that is a pain in the nether regions, and time consuming.

  6. Mark
    Administrator
    Posted 1 year ago

    Hi Anonymous,

    Unfortunately I am not accepting contracts for custom versions of software at this time. However, more flexible output options are planned for the next release. If you'd like to be notified of new versions via email, please feel free to sign up for the Web Album Generator Announcement List.

  7. Anonymous

    Posted 1 year ago

    HA HA HA

    This is a good post. Flashed me right back to 1993. Disable Rt click? Why? Cntrl+prntscreen. If the user wants and image. Or just fish it out of the browser cache. Or 1000 other ways.

    But I guess there are still people the can not bypass oncontextmenu="return false;"

    But then you have
    dragstart and selectstart

    oncontextmenu="selectstart false;"
    oncontextmenu="dragstart false;"

    selvol

  8. IanBell
    Member
    Posted 1 year ago

    Hi there,

    Sorry to bring this thread again, but I want to protect the images in my various sites, with the "No Right Click" script. I know you don't recommend it, but I see it as deterring the "honest" or "genuine" viewers.

    As the sites are genealogical, I can't see "every Tom, Dick, & Harry" being interested in the images. The sites are security protected, so only genuine family members can gain access. The message any way says to contact by email for copies, so that at least eases my mind.

    The script is as follows:

    var message="I'm terribly sorry, but you can NOT right click here.\n\nIf you require a copy, please contact me by email.\nThank you.\n\nCopyright EyeBee Enterprise 2000 - 2010"; // Your no right click message here
    var closeWin="0"; // Do you want to close window after message (1 for yes 0 for no)
    
    // JavaScript by Dave Lauderdale
    // Published at: http://www.digi-dl.com
    
    function IE(e)
    {
         if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
         {
              alert(message); if(closeWin=="1") self.close();
              return false;
         }
    }
    function NS(e)
    {
         if (document.layers || (document.getElementById && !document.all))
         {
              if (e.which==2 || e.which==3)
              {
                   alert(message); if(closeWin=="1") self.close();
                   return false;
              }
         }
    }
    document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");

    It is saved as noclick.js

    How can I include it in the generated pages in one go without having to put it in each page. I tried another generater software - (NOWHERE as good as WAG) which inserts it in the generate process as follows:

    <script type="text/javascript" src="scripts/noclick1.js"></script> I know this is calling it from a scripts folder.

    What can I do?

    I will probably "get shot down" for asking this, but I am fairly determined to use it.

    Thanks in advance for any help.

    IanBell

  9. Mark
    Administrator
    Posted 1 year ago

    Hey Ian,

    I'm afraid you'll have to insert your script onto each page. You can do that in the photo captions, if you have HTML turned on in the advanced preferences. If you'd prefer to put the script elsewhere, a bulk search-and-replace tool can certainly help, too.


Reply

(required)