> The problem was that the check thought the header was always present,
> except for the first time. The new and improved 0.12.1 release fixes this
Ok. You wrote that if the X-Forwarded is already set, it won't be changed.
But in this case, I have another problem:
In my PHP-Script, I'm checking if HTTP_X_FORWARDED_FOR or HTTP_VIA is set -
if this is true, the user comes from a proxy server. We are not paying our
users if a client uses a proxy because of security reasons. So the best
thing would be if pen uses a new variable (not X-Forwarded for).
I looked at pen.c and found the function "rewrite_request" where pen is
parsing the header lines - I think this is the right place to write a new
variable to the header. Unfortunatly I haven't enough knowledge about
environment variables to change that myself - it would be very nice if
someone could send me a patched file and an example how this new variable
can be read out in PHP.
This archive was generated by hypermail 2.1.2 : Sun Feb 01 2004 - 01:16:09 CET