Archive for September, 2008

Get a Visitors’ IP Address - Accurately!

One of the sites that I’m working on at the moment requires some IP-specific functionality, but in testing I realised that the standard $_SERVER['REMOTE_ADDR'] wasn’t being as accurate as I wanted.  Then I realised that this variable doesn’t take into consideration visitors accessing via a proxy server or any random proxy/caching stuff put in place by their ISP.

So, I put together this simple little function that returns the actual IP of any visitor… Read the rest of this entry »

Andrew Gatenby Web Developer, Designer & Geek