note 44337 added to function.getenv

From: Date: Wed, 21 Jul 2004 12:38:40 +0000
Subject: note 44337 added to function.getenv
Groups: php.notes 
Request: Send a blank email to php-notes+get-73803@lists.php.net to get a copy of this message
The previous code isn't bullet proof at all, if I know there are some private parts, what forbids me to add a X_FORWARDED_FOR with a local address even though I'm not on the LAN, or even worse, the field could be present for anyone using a proxy and using a LAN even if it's not the trusted one, for exemple if the user at the other end is behind a NATed router. Be very cautious because is way too easy to be fooled with such a method ---- Manual Page -- http://www.php.net/manual/en/function.getenv.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44337 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44337&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44337&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73803) next »