Topic: ModRewrite with simpleviewer
I've been trying to work on watermarking photos that are hotlinked, or view directly with ModRewrite. This works on all other pages, however it does not work with simpleviewer. My mod_rewrite rule is:
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?deadlypenguin.com [NC]
RewriteCond .(jpg|jpeg|png|gif)$ [NC]
RewriteRule \(.*)$ http://www.deadlypenguin.com/watermark.php?src=%{REQUEST_URI} [NC,R,L]
What happens is that simpleviewer's HTTP_REFERER is not set, so apache thinks it is "viewing" the image directly, instead of being served out on a page. Is this just a limitation of the simpleviewer / flash, or is there something I can set in my mod_rewrite / watermark.php page so that it knows that simpleviewer is loading the image, and not a webbrower.
Thanks in advance,
Patrick