Page 1 of 1
IP/Domain Logging
Posted: Mon Aug 22, 2005 10:47 am
by RedHatCore
Sorry if It's a rather "newbie" question, but I need to know how to get a user's domain address--- I already know how to get the IP. I'm making a simple IP logger and want there domain address as well. Thank you.
Posted: Mon Aug 22, 2005 11:21 am
by nickman013
what do you mean by domain address?
Posted: Mon Aug 22, 2005 11:24 am
by John Cartwright
I don't know how the domain is found out, but he is refering to his ISP's domain.
Posted: Mon Aug 22, 2005 11:28 am
by RedHatCore
$IP = $_SERVER['REMOTE_ADDR']; puts the person's IP in $IP
I want to put there domain in $DOMAIN
For example...
my IP is 71.1.227.110, but my domain is something like... 345-45-4-45.sprint.internet.something.net you know?
In MS windows when you type in tracert -Some IP- it will output this 'domain' address... I want to be able to log that 'domain' address of my users that go to my web site.
Posted: Mon Aug 22, 2005 11:28 am
by nickman013
oh..
i dont know how to find people's isp domain, sorry..
Posted: Mon Aug 22, 2005 11:34 am
by nielsene
Posted: Mon Aug 22, 2005 12:11 pm
by RedHatCore
thank you!