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\.)? [NC]
RewriteCond .(jpg|jpeg|png|gif)$ [NC]
RewriteRule \(.*)${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,

Re: ModRewrite with simpleviewer

Same here with Tiltviewer, the .htaccess script I made to prevent hotlinking:

RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_REFERER} !^http://(www\.)?*$ [NC]
RewriteRule .*\.(jpe?g)$ /some_picture.jpe [NC,L]

blocks requests from Flash viewer :-( Still finding the solution to write the RewriteCond to detect a request is from viewer so I can exclude it from rewriting.

Re: ModRewrite with simpleviewer

I'm not too familiar URL rewriting, but I do know that hotlink protection will break Flash image galleries. AFAIK this is a limitation of the Flash Player.

Felix Turner
SimpleViewer Support Team.