|
Posted by J.O. Aho on 01/18/07 16:39
Jonathan N. Little wrote:
> sachinmehta@gmail.com wrote:
>> hello all,
>>
>> from my blogspot, i have given out links for people to view some other
>> websites.
>> i would like to know if there is an executable or any bit of code which
>> i can use to know the IP addresses of the people who have clicked on
>> those links?
>
> With PHP:
>
> $_SERVER['REMOTE_ADDR']
That won't give the address of the person who clicked a link, just one who
visited the page, better to use a redirect script which checks the remote
address before redirecting them to the url
example of the html-tag to use:
<a href="redirect.php?url=www.example.net">www.example.net</a>
The redirect.php script can be made more advanced and register how many has
selected each link, time, what ever.
--
//Aho
Navigation:
[Reply to this message]
|