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

Alexander Lazic al-mongrelusers at none.at
Sat Aug 5 06:08:36 EDT 2006


On Sam 05.08.2006 02:50, Carl Lerche wrote:
>Ok, basically I coded a ruby on rails CMS to manage a bunch of media
>files. I am finding that a lot of people are "hot linking" to these
>media files and would like to prevent this to save bandwidth. Usually
>in the past, it hasn't been a problem, I would add something like the
>following to my .htaccess file
>RewriteEngine on
>RewriteCond %{HTTP_REFERER} !^$
>RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com.*$ [NC]
>RewriteRule .(gif|jpg)$ - [F]
>However, with my httpd config containing the following lines now:
>ProxyPass / balancer://mycluster/
>ProxyPassReverse / balancer://mycluster/
>ProxyBlock images media
>Options Indexes FollowSymLinks
>The hotlink protection doesn't really work anymore. Does anybody know
>how I could implement this?

Where in your config are the Proxy*-Directives, in a
Location/Director-Tag or in Global?

I think this is a question for the httpd-users list, imho.



More information about the Mongrel-users mailing list