Mantis - Resin
Viewing Issue Advanced Details
1541 minor always 01-05-07 08:55 02-12-07 10:37
ferg  
sam  
normal  
closed  
fixed  
none    
none 3.1.1  
0001541: rewrite-dispatch and headers
(rep by Rick Mann)

We're trying to replace using Apache in some cases with Resin. One of the things we need to do is prevent access to certain resources if the referring URL is not from the same domain. In Apache we do this with:

<Location />
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?keepmedia.com/.*$ [^] [NC]
    RewriteRule \.(gif|jpg|png)$ - [F]
</Location>


Is it possible to do this (without writing a servlet or filter) in resin.conf?

Notes
(0001759)
ferg   
02-12-07 10:37   
This capability is being added to 3.1.1.