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! :D
Frank Jones
911 Outfitters LLC
www.911outfittersllc.com
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.
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.
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!
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.
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.
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>
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.
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.
Re: Suggestions for right click protect and ctrl c
Quote:
Originally Posted by
dgent
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!