stopshop Posted August 26, 2008 Share Posted August 26, 2008 Many websites have implemented this type of protection to make it more difficult for visitors to simply copy your website images. Some images may even be your very own or even be protected by copyright.Most visitors don't care about this and simply hit the right click and copy your images for their own use.Even worse, sometimes by simply capturing the location of your images and adding this into their script, they now save web space and bandwidth on their hosting account.So I did a bit of homework and came across a solution that solves this problem.Before anything else, please remember that if someone really wants your images, they will get it.This just makes it a little harder and for most users, almost impossible for them to succeed.Edit the following files:themes/yourtheme/index.tplthemes/yourtheme/product.tplAdd the following code to both files (I included it right in the beginning on line 1):Check code in attached imageSave both files, refresh your browser and test.PS: I am no pro at this, just a novice. Hope that my small contribution comes in handy.Cheers 1 Link to comment Share on other sites More sharing options...
jhnstcks Posted August 26, 2008 Share Posted August 26, 2008 You can stop hotlinking of your images with your htaccess file, not sure of the exact code for this, but you do need to be careful, as some sites need to link to your images (googlebase). It is even possible to define an image to show if someone tries to hotlink. 1 Link to comment Share on other sites More sharing options...
stopshop Posted August 26, 2008 Author Share Posted August 26, 2008 Can you explain how this would effect images being linked from other sites/googlebase?From what I have been able to test, links to my images is still functional. Link to comment Share on other sites More sharing options...
jhnstcks Posted August 26, 2008 Share Posted August 26, 2008 when someone tries to hotlink your image they will get a red cross, or the replacement image you defined. I have found that googlebase just images just dont work if have hotlink protection on. Although it is possible to define certain webadresses that are allowed to hotlink.http://altlab.com/hotlinking.html look through this site for more information on hotlink protection. Link to comment Share on other sites More sharing options...
stopshop Posted August 26, 2008 Author Share Posted August 26, 2008 Thanks for the input.My main concern was hiding the copy option by right clicking on the image as well as hiding image properties.ASAIK, hotlinking to my images is still possible, the code works well in ie and firefox (opera ignores this). Link to comment Share on other sites More sharing options...
pcbob Posted August 26, 2008 Share Posted August 26, 2008 Unfortunately this can be overcome by disabling javascript in the browser,so can have little effect.One other possible solution would be to "watermark" your images, then if they are hotlinked, at least you will get free advertising Bob Link to comment Share on other sites More sharing options...
Dark-Graphics Posted June 14, 2011 Share Posted June 14, 2011 Hello,This code did not work in the slightest Link to comment Share on other sites More sharing options...
sarojrana01 Posted June 15, 2011 Share Posted June 15, 2011 thanks for the information, i would really like to try it out... Link to comment Share on other sites More sharing options...
xbfish Posted June 15, 2011 Share Posted June 15, 2011 Just watermark your product images like what pcbob had said. Whatever javascript implementation to prevent people from right-clicking and saving images won't work. These can be easily disabled. Hotlinking images also does not prevent people from saving the images into their local disk. If you watermark your images on the center, they will find it hard to remove. Link to comment Share on other sites More sharing options...
fuskoz Posted March 25, 2013 Share Posted March 25, 2013 Thank you for your coments but....what about the text guys? I'm doing lots of translating for my products and i really want to deactivate the right click. Any ideas? Link to comment Share on other sites More sharing options...
Paulito Posted March 25, 2013 Share Posted March 25, 2013 Good morning, Have a look at this free module it might be what your looking for Paul Link to comment Share on other sites More sharing options...
cocothecat Posted March 25, 2013 Share Posted March 25, 2013 Unless you are using your own product photos, worrying about people right clicking and copying images isn't something I think you need to stress over considering they tend to come from the manufacutre with a open media licence for print and product promotion. If it's your own product with your own image then id put a watermark if you was worried that much however in a world where social sharing is something to thrive on with more and more people using pinterest disabling image share is a thing that should stay in the 1990s. Link to comment Share on other sites More sharing options...
vekia Posted March 26, 2013 Share Posted March 26, 2013 blocking the right button really will not do anything, if someone want to get picture - they can do it without any problems, even if right click doesnt work Link to comment Share on other sites More sharing options...
Recommended Posts