[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-dev
Subject:    Blocking hotlinking and using Proxy Pass & mod_rewrite
From:       "Jake" <jake () zopezone ! com>
Date:       2004-05-24 17:05:56
Message-ID: 33709.199.67.140.77.1085418356.squirrel () webmail ! mahnke ! net
[Download RAW message or body]

I have been trying to figure out how to block hotlinking of images from my
sites while also using proxy pass.

I have tried tweaking it a few different ways, but this configuration just
will not work.

<VirtualHost 11.1.1.1.1:80>
ServerName www.domain.com
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.domain.com/.*$ [NC]
RewriteRule ./*\.(gif¦GIF¦jpg¦JPG)$ - [F]
ProxyPass / http://11.11.11.11:8080/ etc....
</VirtualHost>

Is there something with ProxyPass that will not work in front of mod_rewrite?

Jake
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic