[英]Identify website from which user was redirected to current site
How can I know the web-site from which the user was directed to my web-site? 我如何知道将用户定向到我的网站的网站?
For example, when user on site1.com clicks a button/ anchor tag and is redirected to mysite.com, I should be able to infer the web-site (or IP address and the port) from which the request was obtained. 例如,当site1.com上的用户单击按钮/锚标记并重定向到mysite.com时,我应该能够推断出从中获取请求的网站(或IP地址和端口)。
Thanks for your help. 谢谢你的帮助。
By using UrlReferrer property of Request. 通过使用Request的UrlReferrer属性。
Request.UrlReferrer
Include this namespace first: 首先包含此名称空间:
System.Web
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.