Hi,
I wondered if there was a guide or walkthrough document about how watermarking works.
Here are some questions I have about watermarking.
1) Are watermarks actually added to the image so that when someone saves them they get their image has our watermark on them?
2) Are watermarks applied still if we upload via FTP. If so how does that work?
3) If we turn on Watermarking what happens to existing images that have previously been uploaded before we turned on Watermarking
4) Can we use "text" to add as a watermark or are graphics only supported.
Many thanks in advance for help help you can provide.
Comments
2) Yes, see #1
3) As they are cached nothing happens unless you clear the cache so the cached images are regenerated.
4) Only images supported (as there is no option, right?) but of course you can use text as an image...
I've enabled watermarks and it works a treat, really good. I've enabled it for Images and Full Sized Images
However, if someone users a bulk image downloader such as BID etc it downloads the raw original file (without the logo)
Is there anyway to prevent this?
Alternatively you can move your albums folder outside the webroot (see the config file). Drawback will be that multimedia items then will not work anymore.
Btw, I made a troubleshooting entry out of your questions.
Do you have a link to the Troubleshooting page with the htaccess. I could not find it.
Ok, I added the .htaccess
----
<IfModule mod_rewrite.c>
RewriteEngine On
# It is actually recommended to allow blank referers as some personal firewalls or anti virus tools clear the referrer.
# Uncomment the following line if you want to allow them.
#RewriteCond %{HTTP_REFERER} !^$
# Enter your domain here. Add more lines like this to allow more domains
# If you are using Zenphoto in a subdomain write subdomain.yourdomain.com instead (www\.)?yourdomain.com
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?spoilertv.co.uk [NC]
# Protect your full images in the albums folder
RewriteRule \.(jpg|jpeg|png|gif|flv|mp4|mov|3gp)$ - [NC,F,L]
</IfModule>
---
Now when I go to my browser and for example go to this full size and unwatermarked image
http://spoilertv.co.uk/images/albums/alphas/season-1/cast-promotional-photos/nup_144681_0003.jpg
I get redirected to my homepage (spoiletv.com)
This is great I thought.
However, when I run Bulk Image Download it still manages to download the full image.
Not sure how/why it is able to.
Date: Mar 07 08:58:53
HTTP Code: 200
HTTP Version: HTTP/1.1
Referer: http://spoilertv.co.uk/images/archer/season-3/Promotional
Size (in bytes): 52528
User Agent: Episode Photos/Episode 3.01 - The Man From Jupiter/Screenshot2011-11-30at3.43.34PMcopy.jpg.php Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
It looks like it's using our referrer which would explain how it's bypassing it.
Any way to avoid this?
Could I simply block all referrers? What impact would this have? We don't have any need for the full image to be displayed. Would it interfere with Zenphoto from generating the watermarked and cached images?
It's a Windows Desktop app but it appears to run an instance of IE as a process. So I guess it's actually "visiting" the site in the background and getting the image hence it circumnavigates the referrer check.
I'm a bit loathed to try that at the moment as we have 100GB of images and over 100,000 images on the site.
Whenever you get time if you could find the htaccess syntax I think that would be better for us.
No rush and appreciate your time so far, it's much appreciated.
http://www.kavoir.com/2009/01/htaccess-deny-from-all-restrict-directory-access.html
here is a quick tool to generate htaccess files:
http://www.htaccesstools.com/hotlink-protection/
I just added deny from all and it seems to work.
Not noticed any implications yet.
Here is a page with some very usefull .htaccess examples:
http://www.htpasswdgenerator.com/apache/htaccess.html