Hi there,
If you're using ASP, you can use the HTTP_Referer, like this:
Dim previousSite
previousSite = Request.ServerVariables("HTTP_REFERER")
(Note the spelling mistake in referer)
Be aware that the referrer is not very reliable. Many Internet Security / Privacy systems block the referrer, so it looks like people typed in your address directly, while it's quite possible they came from your friend's site.
If you can control the link on the other sites, you can pass a unique identifier, e.g.:
<a href="http://www.YourSite.com/Index.asp?FROM=Friend1">
other sites can then use Friend2, Friend3 and so on.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|