This is an ASP question, not ASP.Net.
Assume there are two sites:
www.domain-1.com has a redirect
referer = Request.ServerVariables ("HTTP_REFERER")