Re: Client's IP address retrival



"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/


.



Relevant Pages

  • Re: Workaround for error code 80072EFD download critical updates failed
    ... Explorer on clients that have proxy servers, and must be set directly at the ... Open a single Internet Explorer browser and check proxy settings. ... Remember the name and port of this proxy server. ... Enter "Windows Update" in the Name field, ...
    (microsoft.public.windowsupdate)
  • Re: Trend Micro and Proxy Server
    ... Les Connor [SBS Community Member - SBS MVP] ... from "use a proxy server" in IE. ... remove the tick from "use a proxy server" in IE - if that ... than to just turn off the proxy in the server's IE settings. ...
    (microsoft.public.windows.server.sbs)
  • Re: Trend Micro and Proxy Server
    ... Les Connor [SBS Community Member - SBS MVP] ... from "use a proxy server" in IE. ... remove the tick from "use a proxy server" in IE - if that ... IE's use proxy settings. ...
    (microsoft.public.windows.server.sbs)
  • Re: Trend Micro and Proxy Server
    ... remove the tick from "use a proxy server" in IE - if that works ... Les Connor [SBS Community Member - SBS MVP] ... just turn off the proxy in the server's IE settings. ...
    (microsoft.public.windows.server.sbs)
  • Re: Trend Micro and Proxy Server
    ... remove the tick from "use a proxy server" in IE - if that works ... Les Connor [SBS Community Member - SBS MVP] ... just turn off the proxy in the server's IE settings. ...
    (microsoft.public.windows.server.sbs)