Thank you all guys.I've known this issue and know how to handle it.
Thanks again.
--jen
On Aug 3, 2007, at 7:03 AM, Torsten Foertsch wrote:
This idea won't work in general. First, not all proxies set an X-
Forwarded-For
header. Second, many proxies sit in front of private networks
10.0.0.0/8 or
172.16.0.0/16 or 192.168.0.0/16 or 127.0.0.0/8. If they set the
header you
get diff
No.Here both PHP and CGI scripts can get the X_FORWARDED_FOR ip,but
modperl can't.Is the %ENV hash not useful under modperl?
mod_perl is not CGI.
With mod_perl your perl interpreter is part of the apache process itself. So
making apache set up the environment is a waste of time, you can just a
On Friday 03 August 2007 14:02, Jen mlists wrote:
> No.
To which part of my answer to your question relates that "No"?
> Here both PHP and CGI scripts can get the X_FORWARDED_FOR ip,but
> modperl can't.Is the %ENV hash not useful under modperl?
Apache maintains an internal representation of the
On Fri, 2007-08-03 at 20:02 +0800, Jen mlists wrote:
> No.Here both PHP and CGI scripts can get the X_FORWARDED_FOR ip,but
> modperl can't.Is the %ENV hash not useful under modperl?
No it's not - mod_perl has access to all of that (plus a whole lot more)
via other means, so apache doesn't need to
No.Here both PHP and CGI scripts can get the X_FORWARDED_FOR ip,but
modperl can't.Is the %ENV hash not useful under modperl?
2007/8/3, Torsten Foertsch <[EMAIL PROTECTED]>:
> On Friday 03 August 2007 12:29, Jen mlists wrote:
>
> > I meet a problem about getting client's original IP.
> > Some clien
On Friday 03 August 2007 12:29, Jen mlists wrote:
> I meet a problem about getting client's original IP.
> Some clients use proxy servers to access our sites,and I need to get
> their original IPs instead of proxy servers' IPs.
>
> In CGI I can write it like:
>
> my $ip = $ENV{'HTTP_X_FORWARDED_FO
Hello members,
I meet a problem about getting client's original IP.
Some clients use proxy servers to access our sites,and I need to get
their original IPs instead of proxy servers' IPs.
In CGI I can write it like:
my $ip = $ENV{'HTTP_X_FORWARDED_FOR'} ? $ENV{'HTTP_X_FORWARDED_FOR'} :
$c->remote