简体   繁体   中英

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)?

Suppose i have a big job board application, some of the jobs are listed in 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?).

Thanks!

您正在寻找

Request.ServerVariables["HTTP_REFERER"]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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