IP/Domain Logging
Moderator: General Moderators
-
RedHatCore
- Forum Newbie
- Posts: 3
- Joined: Mon Aug 22, 2005 10:43 am
- Contact:
IP/Domain Logging
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.
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
RedHatCore
- Forum Newbie
- Posts: 3
- Joined: Mon Aug 22, 2005 10:43 am
- Contact:
$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.
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.
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
-
RedHatCore
- Forum Newbie
- Posts: 3
- Joined: Mon Aug 22, 2005 10:43 am
- Contact: