Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想找出人们在访问我的网站时来自哪些网站。因此,假设某人来自 google.com 或 yahoo.com,或者某人来自电子邮件或其他地方。我怎样才能做到这一点?
我假设您使用的是 ASP.NET:
Dim myReferrer As String = Request.UrlReferrer.ToString()
myReferrer 现在包含引荐页面的 URL。
HttpContext.Current.Request.UrlReferrer应该做的伎俩
HttpContext.Current.Request.UrlReferrer