Re: Filter by HTTP_REFERER

2011-10-31 Thread Ricardo Bayley
You are right. What I intend to do is prevent hot linking. My webapp, is working as a REST webservice. So I would like to have tomcat reply only when requests come from specific sites. thanks 2011/10/31 André Warnier > Ricardo Bayley wrote: > >> Hi folks, >> >> I am tr

Filter by HTTP_REFERER

2011-10-31 Thread Ricardo Bayley
Hi folks, I am trying to filter access to my webapp by the HTTP_REFERER I thought this could be achieved with the Valve Componenent using the Remote Host Filter such as I am not have in success. Can this be achieved or should I use Apache httpd to proxy requests? Best regards Ricardo

Valves

2011-09-13 Thread Ricardo Bayley
Hi folks, I am new to tomcat. I use a webapp which runs in tomcat. I would like tomcat to filter requests according to remote host / address. I understand I need to set "Remote Address Filter" and the "Remote Host Filter" in the Valve component. I read this articles but I don't understand where o