Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: REMOTE_ADDR




On 29 Jan 2007, at 10:48am, Stephan Bergmann wrote:

When I ask for the environment variable REMOTE_ADDR (e.g. by SSI or CGI -> $ENV{REMOTE_ADDR}),
what I receive is the IP address of the server, the site is running on, but NOT the IP address of the remote
user connected to the server.

You're not asking for the right thing. The purpose of 'REMOTE_ADDR' is to let the server know which computer it should be talking to. What you want is called HTTP_X_FORWARDED_FOR in PHP, though it may have other names in other languages.


Simon
--
Simon Slavin                               Fylde Building Room C11
Computing Development Officer              01524 65201 x 93569
Psychology Department
University of Lancaster


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macos-x-server mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >REMOTE_ADDR (From: Stephan Bergmann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.