|
> Hold on, you are syaing it could be a whole
list of IPs in this variable?
yes,
if an intial proxy server is configured to also refer requests to another proxy
"further away" from the client, and the second proxy server is also
non-transparent the second proxy server will add the first proxy server's IP to
that of the client in http_x_forwarded_for. so you would
have:
remote_addr ==> [2nd proxy's IP]
http_x_forwarded_for ==>
[original client IP], [1st proxy's IP]
>I believe "iif(NOT len(cgi.http_x_forwarded_for),
DE(cgi.remote_addr), DE(cgi.http_x_forwarded_for))" will take of the fact that
>even if a proxy is used and it does not show me the ip it forwarded it
for.
From my understanding, if requests pass through a
transparent proxy http_x_forwarded_for is never
populated, so you cannot assume, just because http_x_forwarded_for is a zero length string that the client's request
hasn't been proxied.
In addition, if a client's
request is behind a firewall or router using Network Address Translation, the IP
address CF sees will not be that of the client.
I
guess the short answer is, it depends what you want to use the IP
for.
:)
s --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ |
- [cfaussie] RE: cgi. variable for proxy?? Simon Handfield
- [cfaussie] RE: cgi. variable for proxy?? Taco Fleur
- [cfaussie] RE: cgi. variable for proxy?? Simon Handfield
- [cfaussie] RE: cgi. variable for proxy?? Taco Fleur
- [cfaussie] RE: cgi. variable for proxy?? Simon Handfield
