Re: Client's IP address retrival
- From: Philip Ronan <invalid@xxxxxxxxxxxxxxx>
- Date: Wed, 27 Jul 2005 23:09:29 +0100
"varungupta" wrote:
> Hi Group members !
>
> I want to know about a method for detecting client's IP which is
> running behind a proxy server.
> I have tried functions available with PHP core but they are returning
> the address of proxy server not of the client's machinel.
> Is there any way to get the desired results.
>
Some proxies add an "X-Forwarded-For" header to forwarded requests. If
you're running PHP as an Apache module, then it should be possible to
retrieve this with the apache_request_headers function.
If the proxy doesn't bother providing this information, then there isn't
much you can do.
--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
.
- References:
- Client's IP address retrival
- From: varungupta
- Client's IP address retrival
- Prev by Date: Re: Show countdown from 10 to 0 seconds
- Next by Date: Re: Client's IP address retrival
- Previous by thread: Client's IP address retrival
- Next by thread: Re: Client's IP address retrival
- Index(es):
Relevant Pages
|