13

This is an ASP question, not ASP.Net.

Assume there are two sites:

  1. www.domain-1.com
  2. www.domain-2.com

www.domain-1.com has a redirection URL in IIS that points to www.domain-2.com. In www.domain-2.com, I need to know the URL of the referring site (e.g. in this case, it would be www.domain-1.com). How is this done?

casperOne
  • 73,706
  • 19
  • 184
  • 253
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441

1 Answers1

25

referer = Request.ServerVariables ("HTTP_REFERER")

Alex
  • 2,350
  • 2
  • 20
  • 17