Forum Moderators: phranque
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http(s)?://(www\.)?mysite.com [NC]
RewriteRule \.(jpg¦jpeg¦png¦gif¦swf)$ - [NC,F,L]
Using [a hotlink testing tool] I can still see the swf file. I've tried hard but I can't seem to prevent the darn swf files from being hotlinked. Any ideas? Is there something special about swf files that makes this not work?
[edited by: jdMorgan at 3:45 am (utc) on Feb. 9, 2006]
[edit reason] No URLs please. See TOS. [/edit]
Changing from the implied [AND] to [OR] would change the logic to say, "Block if ( (the referrer is NOT blank) OR (the referrer is NOT the home site) )", a logical combination which would always evaluate to TRUE, and thus always block access.
Jim