Users IP addresses?

Hi All,

I am trying to track IP addresses of users for a clients website! I know php has some built in functions to get the IP from the server, but am concern how trustworthy the results will be!

How much can you rely on these built in functions and which are the most reliable? Also how easy is it for a user to spoof their IP address and are there any methods to stop this?

Any help would be much appreciated!

mb_designs

Pretty much anything which is served by HTTP headers can be spoofed.

$_SERVER[“REMOTE_ADDR”] gets you the IP address.