Page 1 of 1

Want to Protect Product Images, Prevent Ability to Download

Posted: Wed Feb 02, 2011 6:39 am
by Brook
I have OpenCart 1.4.9.3 installed.

I want to protect my product images that are on my store website. I would like to prevent people from being able to right click any product image on my website and click save as and be able to save images from my website. Does anyone have any ideas on how to prevent people from stealing my images? Any ideas? Is there any code that I can add?

Thank you for your help.
Brook

Re: Want to Protect Product Images, Prevent Ability to Downl

Posted: Wed Feb 02, 2011 7:04 am
by philbydevil
There must be some generic, non-OpenCart related codes out there because I have seen this on many websites before (so maybe try Google instead of the forum search). They are pretty easy to get around most of the time though, but it will probably stop the "general public" from being able to right click anywhere on your site.

Re: Want to Protect Product Images, Prevent Ability to Downl

Posted: Wed Feb 02, 2011 7:19 am
by Chones
There's some javascript you can add that disables right-click, but it doesn't work in all browsers very well. Plus people can just hit the Print screen button and paste into Photoshop.

I would just accept it as a fact of life and not worry too much about it. Put your energy into creating a great shop instead.

Re: Want to Protect Product Images, Prevent Ability to Downl

Posted: Wed Feb 02, 2011 2:44 pm
by i2Paq
Don't forget that your browser will store the image locally in its temp-dir.

Yesterday I found out that someone linked images from my site on his + he stole complete self-written content as well.
I phoned him up and asked him to remove the images (they even showed my domain-name!) and asked him to be creative himself and write hos own content; he refused.

I then just renamed my images and replaced the onces he used on his site with hard porn image, after 2hrs the images AND the content where changed ;D

Re: Want to Protect Product Images, Prevent Ability to Downl

Posted: Wed Feb 02, 2011 3:36 pm
by philbydevil
i2Paq wrote:I then just renamed my images and replaced the onces he used on his site with hard porn image, after 2hrs the images AND the content where changed ;D
:laugh: That's a great idea!

Re: Want to Protect Product Images, Prevent Ability to Downl

Posted: Wed Feb 02, 2011 5:50 pm
by jcgadgets
i2Paq wrote:Don't forget that your browser will store the image locally in its temp-dir.

Yesterday I found out that someone linked images from my site on his + he stole complete self-written content as well.
I phoned him up and asked him to remove the images (they even showed my domain-name!) and asked him to be creative himself and write hos own content; he refused.

I then just renamed my images and replaced the onces he used on his site with hard porn image, after 2hrs the images AND the content where changed ;D
As I was reading I was hoping that you would do something like that. Wow, that is FANTASTIC :D nice!


Jared

Re: Want to Protect Product Images, Prevent Ability to Downl

Posted: Wed Feb 02, 2011 9:52 pm
by Brook
Just found this... We all know that there is no bullet proof way to protect your images, and that not all browsers will handle this code change, but I was happy with this solution for now. Simple enough, quick and easy. Basically disables the right-click (context menu) functionality from both the right-click of the mouse and disables the same functionality from the keyboard.

In catalog\view\theme\default\template\common\header.tpl
change line

Code: Select all

<body>
to

Code: Select all

<body oncontextmenu="return false;">
Not saying that this is the best solution, just a solution none the less.

Thanks,
Brook

Re: Want to Protect Product Images, Prevent Ability to Downl

Posted: Wed Feb 02, 2011 11:42 pm
by peteVA
What should be considered is a method to do what a number of carts are now doing - throwing up a watermark over the images so anyone copying them will also copy the watermark.

This is not pre-watermarking each individual image, it seems to be just an overlay when expanding the view that throws the watermark across the image.

I have no idea what the process is, simply know that I see it on a number oi Chinese sites.

Re: Want to Protect Product Images, Prevent Ability to Downl

Posted: Thu Feb 03, 2011 12:36 am
by Xsecrets
you can do that on opencart. search the forums for watermarking.

Re: Want to Protect Product Images, Prevent Ability to Downl

Posted: Thu Feb 03, 2011 5:01 am
by peteVA
Interesting. Looks like an OSC mod, with half a dozen contributors. :)

Have to give it a go, should do the trick.

Thanks!

Re: Want to Protect Product Images, Prevent Ability to Downl

Posted: Wed Jun 24, 2015 7:27 pm
by rtrtrt
Thanks Brooke, I like your way too. ;)