Page 1 of 1

Get Visitor IP and save to txt file

Posted: Tue Jan 05, 2010 2:41 pm
by Basic
Hi.

My friend just got his steam+email and all <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> hacked. How, we don't know.
We need his IP, so I need someone to help me get his IP.

I need a script that gets the visitor IP (His) and saves it to a .txt file?
Can anyone help me with that?
More information gathering would be nice thanks.

Please help if you can! :(

Re: Get Visitor IP and save to txt file

Posted: Tue Jan 05, 2010 2:49 pm
by eFishy
If you just want your mates IP go to a website like ipchicken.com
If you want to get the IP of a visitor, this should do the trick

Code: Select all

 
$VisitorIP = $_SERVER['REMOTE_ADDR'];   
 
Then just save $VisitorIP to a text file or database.