tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Khoo <alexander_k...@yahoo.com>
Subject Re: Client Real Source IP!
Date Fri, 22 Sep 2006 05:58:51 GMT
Thanks for the information,Anyone can provide more detail on how this can be done? how the
code is done perhaps?


----- Original Message ----
From: Li <ampyx.li@gmail.com>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Friday, September 22, 2006 1:42:14 PM
Subject: Re: Client Real Source IP!


Sorry Alexander,

Yeah, as Peter said, you can use getHeader(s) from Servlet API. Only if your
request header is customized one (like those for telecom), you should read
it by yourself.



On 9/22/06, Peter Rossbach <pr@objektpark.de> wrote:
>
> You can access the header with ServletRequest.getHeader, getHeaders,
> getHeadersNames.
>
> Read Servlet Spec 2.4 or 2.5 Headers 4.3
>
>
> Wrote your own Valve or ServletFilter ....
>
> Regards
> Peter
>
>
> Am 22.09.2006 um 06:44 schrieb Alexander Khoo:
>
> > Dear All,
> >
> > We currently have Tomcat Version5 install behind Pound reverse
> > proxy! Our code cant identify the real source client IP instead the
> > reverse proxy IP everytime, We understand Pound adds the X-
> > Forwarded-for header with the original client address to every
> > request....but how we can identify it?
> >
> >
> > Please Help!
> > Alexander Khoo
>
>
>


-- 
When we invent time, we invent death.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message