Re: Client's IP address retrival



varungupta (developer.varun@xxxxxxxxx) decided we needed to hear...
> 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.

You can't do it with PHP. You could use Javascript and pass it as a
form variable.

Depends why you want to do this, since its easy to get around it -
JS could be turned off, or the form var could be overidden.
If say you wanted to ban users from a particular IP then I wouldn't
trust this method, but if you just want the IP for cosmetic reasons
then I'm sure you can live with the pitfalls.
--
Dave <dave@xxxxxxxxxxxxxxxxx>
(Remove REMOVE for email address)
.



Relevant Pages

  • Re: Clients IP address retrival
    ... > Hi Group members! ... > I want to know about a method for detecting client's IP which is running ... > address of proxy server not of the client's machinel. ... Hardware, n.: The parts of a computer system that can be kicked ...
    (comp.lang.php)
  • Clients IP address retrival
    ... I want to know about a method for detecting client's IP which is ... I have tried functions available with PHP core but they are returning ... the address of proxy server not of the client's machinel. ... Prev by Date: ...
    (comp.lang.php)
  • Re: Clients IP address retrival
    ... > Hi Group members! ... > I want to know about a method for detecting client's IP which is ... The purpose of a proxy server is to isolate the IP's of the private ... Prev by Date: ...
    (comp.lang.javascript)
  • Re: Clients IP address retrival
    ... > I want to know about a method for detecting client's IP which is ... > I have tried functions available with PHP core but they are returning ... > the address of proxy server not of the client's machinel. ...
    (comp.lang.php)
  • Re: Clients IP address retrival
    ... Dave wrote: ... I want to know about a method for detecting client's IP which is ... the address of proxy server not of the client's machinel. ... You can't do it with PHP. ...
    (comp.lang.php)