Forum Moderators: open

Message Too Old, No Replies

Variable

Is there a referer variable

         

steelegbr

7:18 pm on Mar 7, 2004 (gmt 0)

10+ Year Member



I have written a simple log system for my website using ASP and I am wandering if there is any way using ASP of finding out where your visitor's came from?

Thanks in advance

macrost

7:35 pm on Mar 7, 2004 (gmt 0)

10+ Year Member



There sure is:

Response.Write(Request.ServerVariables("HTTP_REFERER"))

Mac

steelegbr

7:36 pm on Mar 7, 2004 (gmt 0)

10+ Year Member



Thankyou!

Fjack

2:51 am on Mar 12, 2004 (gmt 0)

10+ Year Member



If you are using ASP, then check for both referrers!

There are two types depending on your visitor. This is a little trick many are not aware of.

<%
Dim CameFrom

CameFrom = Request.ServerVariables("HTTP_REFERRER") & Request.ServerVariables("HTTP_REFERER")

Response.write CameFrom
%>

This will catch both. There will almost never be two referrer types at the same time unless they are writing their own headers :)