RE: [PHP] logging ip address when submitting a form
| From: | daniel | Date: | Thu, 27 Mar 2003 23:06:23 +0000 |
| Subject: | RE: [PHP] logging ip address when submitting a form | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-141330@lists.php.net to get a copy of this message | ||
this is a major problem , $_SERVER['HTTP_X_FORWARDED_FOR'] should get the ip
being the isp proxy , but some proxies including the stupid windoze one we
have at work will hide the ips behind it, so its rendered useless
>===== Original Message From Justin French <justin@indent.com.au> =====
>$_SERVER['REMOTE_ADDR'] will contain the remote user's IP address IF it is
>set by the user agent (browser).
>
>It's also worth noting that this IP address could be faked, could be rotated
>by their ISP on a request-by-request basis (eg all AOL users), could be that
>of their firewall or network gateway, etc etc.
>
>It's fine to log it, but don't rely on it for future visits, or anything
>like that :)
>
>
>Justin
>
>
>on 28/03/03 5:04 AM, Joakim Larsson (joakimpl@kth.se) wrote:
>
>> Hello,
>>
>> Is there a command in php that would logg the ip address of the user
viewing
>> the php file.
>> I need someway of finding out who posted the form.
>>
>> thanx
>>
>>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php