[Wolves] PHP behind Smoothwall

Jon Farmer jon at viperdude.org
Thu Jun 17 14:59:16 BST 2004


On Thu, June 17, 2004 2:49 pm, Jon Farmer said:

> $REMOTE_ADDR part of the $_SERVER global array and will always return the
> IP the the webserver ie APACHE is bound to


Doh brain had a go slow.. $REMOTE_ADDR is the client address and if its
being NAT'd or throught proxy etc it will not return the true client
address. If you wanted the IP of the server you would need to call a
system command for that like ipconfig.

-- 
Jon Farmer
Telford, Shropshire, UK
http://www.viperdude.org




More information about the Wolves mailing list