Graeme-
if I interpret the requirement correctly you need some manner of rewriting the 
URL?
 
with Tomcat you can use URLRewrite available from tuckey
http://tuckey.org/urlrewrite/

anyone?
Martin 
______________________________________________ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de 
déni et de confidentialité 
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.






> From: coolki...@hotmail.com
> To: users@tomcat.apache.org
> Subject: Prevent Hot Linking
> Date: Sun, 19 Apr 2009 04:15:15 +0100
> 
> 
> Hi,
>  
> Is there a way to configure tomcat to prevent some one from downloading a 
> file I host when they are not within my domain?
>  
> For example I have a file hosted here:
> www.mydomain.com/mypage/file.xml
>  
> That is listed on a page here:
> www.mydomain.com/mypage/mypage.html
>  
> They will have no problem downloading it, but if the link to the file.xml was 
> listed elsewhere e.g.
> www.notmydomain.com/notmypage/notmypage.html
> They would be denied access. 
>  
> I know I can do this using .htaccess on Apache but I don't know if this is 
> possible using WEB-INF/web.xml
> 
> Any ideas on how this can be achieved will be greatly appreciated.
>  
> Thanks
> _________________________________________________________________
> View your Twitter and Flickr updates from one place – Learn more!
> http://clk.atdmt.com/UKM/go/137984870/direct/01/
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

_________________________________________________________________
Rediscover Hotmail®: Get e-mail storage that grows with you. 
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage2_042009

Reply via email to