问题
This is an ASP question, not ASP.Net.
Assume there are two sites:
- www.domain-1.com
- 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?
回答1:
referer = Request.ServerVariables ("HTTP_REFERER")
来源:https://stackoverflow.com/questions/2286327/asp-how-to-get-url-of-referring-site