[Mongrel] Apache 2.2 + Mod Proxy Balancer + Mongrel - Hot Linking Protection?

Zed Shaw zedshaw at zedshaw.com
Sat Aug 5 12:41:10 EDT 2006


On Sat, 2006-08-05 at 02:50 -0700, Carl Lerche wrote:
> Hey guys,
> 
<snip>
> RewriteEngine on 
> RewriteCond %{HTTP_REFERER} !^$ 
> RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com.*$ [NC] 
> RewriteRule .(gif|jpg)$ - [F]
> 
<snip>
> The hotlink protection doesn't really work anymore. Does anybody know
> how I could implement this?

I'm pretty sure that'll still work, but you'll want to turn on the mod_rewrite debugging to see what happens.



-- 
Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/
http://www.railsmachine.com/ -- Need Mongrel support?



More information about the Mongrel-users mailing list