简体   繁体   English

检查从我的应用程序中的ASP.Net页从何处打开?

[英]Check from where an ASP.Net page in my application was opened?

Searched everywhere but couldn't find anything. 到处搜索,但找不到任何东西。

My question is: is it possible to programmatically determine the address of the site from where a page in my ASP.Net application was opened (either from client code or server code)? 我的问题是:是否可以以编程方式确定从ASP.Net应用程序中的页面打开位置(从客户端代码或服务器代码)的网站地址?

Suppose i have a big job board application, some of the jobs are listed in Google. 假设我有一个很大的求职委员会应用程序,其中一些工作在Google中列出。 How can one tell if the page was opened directly from the application, or from an external source like search engines/ etc (ie did someone click a link in Google and got here?). 如何判断页面是直接从应用程序打开,还是从外部源(例如搜索引擎等)打开(即有人单击了Google中的链接并到达此处?)。

Thanks! 谢谢!

您正在寻找

Request.ServerVariables["HTTP_REFERER"]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM