Modi
Modi

Reputation: 113

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.

Thanks for your help.

Upvotes: 0

Views: 59

Answers (1)

Zeeshan Asghar
Zeeshan Asghar

Reputation: 36

By using UrlReferrer property of Request.

Request.UrlReferrer 

Include this namespace first:

System.Web

Upvotes: 1

Related Questions