You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jake <ja...@zopezone.com> on 2004/05/24 19:05:56 UTC

Blocking hotlinking and using Proxy Pass & mod_rewrite

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