logging referring ip address
Moderator: General Moderators
- kendall
- Forum Regular
- Posts: 852
- Joined: Tue Jul 30, 2002 10:21 am
- Location: Trinidad, West Indies
- Contact:
logging referring ip address
Hello,
i am current developing an ad system that logs the ip address of the web page that shows the banner. i was using the $_SERVER['HTTP_REFERER'] but read that this is an unsure thing. Is there anything else that could give me a more accurate info. im using php 4.2
kendall
i am current developing an ad system that logs the ip address of the web page that shows the banner. i was using the $_SERVER['HTTP_REFERER'] but read that this is an unsure thing. Is there anything else that could give me a more accurate info. im using php 4.2
kendall
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
$_SERVER wrote:'REMOTE_HOST'
The Host name from which the user is viewing the current page. The reverse dns lookup is based off the REMOTE_ADDR of the user.
Note: Your web server must be configured to create this variable. For example in Apache you'll need HostnameLookups On inside httpd.conf for it to exist. See also gethostbyaddr().
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
- kendall
- Forum Regular
- Posts: 852
- Joined: Tue Jul 30, 2002 10:21 am
- Location: Trinidad, West Indies
- Contact:
feyd,
sorry for my ignorance. i was wondering "whose" remote address was it the user or the web page. im using a method that allows the banner script to be accessed via a while i am implimenting the suggestion i want a more simple method. Isnt there a more dynamic way of getting the page that a banner shows up on?
Kendall
sorry for my ignorance. i was wondering "whose" remote address was it the user or the web page. im using a method that allows the banner script to be accessed via a
Code: Select all
<script src="url to script"></script>Kendall