Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    May 2012
    Location
    Oklahoma
    Posts
    8
    Plugin Contributions
    0

    help question Suggestions for right click protect and ctrl c ????

    Would like suggestions on what and how to implement a right click protect and ctrl c for images and content on Zen Cart please. The suggestions that Google brings up makes me cross-eyed and dizzy LOL!
    I figured the Zen Gurus here would have a solution for our dilemma.

    Thanks in advance for your help!

    Frank Jones
    911 Outfitters LLC
    www.911outfittersllc.com

  2. #2
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default Re: Suggestions for right click protect and ctrl c

    the best thing to do is to watermark your images. Right click prevention is frustrating to those who normally use right click for navigation purposes. Anyone determined to harvest images or content will easily find a way around right click prevention.

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,262
    Plugin Contributions
    3

    Default Re: Suggestions for right click protect and ctrl c

    Right-Click protection is pointless on EVERY site that tries to use it. When my 10-year-old daughter wants to copy an image, she knows that all she has to do is press FN+PRT SC - or use the "grab" function. She has also learned to go into the page source and look for the <img src> tag and render the image outside of its called page.

    Don't waste your time trying to invoke systems that just do not work. Rather watermark images.
    19 years a Zencart User

  4. #4
    Join Date
    May 2012
    Location
    Oklahoma
    Posts
    8
    Plugin Contributions
    0

    Default Re: Suggestions for right click protect and ctrl c

    Thanks for the feedback. I understand it's easy for a determined person.
    Boss want's it.
    Any suggestions?
    Thanks!

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,262
    Plugin Contributions
    3

    Default Re: Suggestions for right click protect and ctrl c

    My suggestion is to tell the boss that it's pointless. The ONLY WAY you can protect images is to watermark them. Image Handler has a mechanism to watermark MEDIUM and LARGE images automatically.

    Other image tools (some commercial) have this capability too.

    There is no point putting in a feature that essentially has no functional value or purpose.
    19 years a Zencart User

  6. #6
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default Re: Suggestions for right click protect and ctrl c

    do a google search for JavaScript no right click and a number of scripts will come up.

  7. #7
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Suggestions for right click protect and ctrl c

    Put this script right after the <head> tag in your includes/templates/YOUR_TEMPLATE/common/html_header.php file

    <script language=JavaScript> 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>

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Suggestions for right click protect and ctrl c

    And of course, this "protection" will only work if a user has javascript enabled, so turning js off in the browser defeats the protection.

  9. #9
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Suggestions for right click protect and ctrl c

    Yes a persistant hacker can get to the source of any image, but this is mainly to stop people harvesting lots of images and product descriptions to fill up their own online stores. Ive had it in the past where Ive had to list say 200 new branded products, and its easy to find a competitors site and rip off their images and text. If I come across a site like that where I couldnt simply right click copy paste, id move on.

    So yes this does help.

  10. #10
    Join Date
    May 2012
    Location
    Oklahoma
    Posts
    8
    Plugin Contributions
    0

    Default Re: Suggestions for right click protect and ctrl c

    Quote Originally Posted by dgent View Post
    Put this script right after the <head> tag in your includes/templates/YOUR_TEMPLATE/common/html_header.php file

    <script language=JavaScript> 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>
    Works like a charm, thank you so much!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Need to right-click protect images
    By beyre in forum General Questions
    Replies: 5
    Last Post: 4 Aug 2009, 03:14 AM
  2. Make .mp3 songs downloadable at left click like .zip not right click and SAVE LINK AS
    By yarilo111 in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 29 May 2009, 10:45 PM
  3. Suggestions for textbooks/online courses for html and php coding?
    By lankeeyankee in forum General Questions
    Replies: 4
    Last Post: 12 Mar 2007, 07:02 PM
  4. no-right-click protect images?
    By mtndan in forum General Questions
    Replies: 3
    Last Post: 9 Oct 2006, 10:17 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR