tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graeme Kidd <coolki...@hotmail.com>
Subject Prevent Hot Linking
Date Sun, 19 Apr 2009 03:15:15 GMT

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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message