How can I get a website visitors IP address?
on: 05/08/09
The IP address is only one of the things you can collect from your website visitors.
In the case of obtaining an IP the simplest is using php. If you are not familiar with php you will need to learn more about how to use php but once you know a bit its really simple. In most cases you can just use. $_SERVER['REMOTE_ADDR']; and point it to a variable $var =
Then you can store the information, print to the screen, (as you see in many sites) or submit it along with a form. A good reason for tracking IP's is checking forms for repeat (submissions), if your traffic is all coming from one area, or tracking down abusive users.
Good luck.