Site protection May 26, 2013 / Updated: Dec 25, 2014
Image hotlinking protection
Although Zenphoto has an option for image protection it does
only protect from getting the (full) image link from your gallery
site itself but not prevent real hotlinking from outside. Everyone
who knows how Zenphoto stores images can find out the direct link
You can change the location for your albums by modifying the zp-config.php file. There is commentary in the file that will guide you in making such a change. Please carefully note the comments, specially for "external" album folders. Also note that server filesystem permissions settings may prevent you from making these changes.
So, to really protect your images from hotlinking you need to use .htaccess (if you server supports this). Here is a little generator tool for this: http://www.htaccesstools.com/hotlink-protection/. We additionally have prepared a template htaccess file you could adjust.
- Are watermarks actually added to the image so that when
someone saves them they get the image with our watermark on
Yes. Watermarks are added to the image itself by the image processor when discovered and resized by Zenphoto and cached. That is for all images except the full images you upload. Those only on request by setting the options.
- Are watermarks also applied if we upload via
FTP? If so how does that
Yes, see #1”¨
- If we turn on watermarking, what happens to existing
images that have previously been uploaded before we turned on
As they are cached nothing happens unless you clear the cache so the cached images are regenerated.
- Can we use "text" to add as a watermark or are graphics
Only images supported but of course you can create an image with text yourself.
Disabling the right click button
First you really need to know that by viewing images (or most other content) on the web the visitor's browser has already made a copy on the visitor's computer. It is stored in the browser's cache. Otherwise the browser would not be able to display it at all. That is how the net works. Therefore the only secure way to protect your images on the net is not to put them there in the first place.
The first part of this question is easily answered. There are many java scripts available to disable this action. Unfortunately, the second part of the question is not addressed by the first. The right click/save target as context menu is only one of a myriad of ways that someone can capture web content.
There is a very good discussion of this on about.com. But, just in case this link goes away without us noticing, I will summarize what it tells you.
- Disabling the context menu (what right click takes you to) is very annoying to people used to using the context menu for web browsing. Disabling it may turn people away from your site in disgust.
- Disabling the context menu does not prevent capture of web content, it only prevents one small method of doing so.
- Watermark your image. Zenphoto provides a means to do this.
- Upload only small, WEB quality images. These images may be captured, but will be useful only for WEB pages.
- Embed copyright information in the image — both in the metadata and with steganalysis.
Protecting and hiding of Zenphoto items like albums
Please see the Zenphoto user rights tutorial about this.
This text by www.zenphoto.org is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Code examples are released under the GPL v2 or later license