Reputation: 113
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
Reputation: 36
By using UrlReferrer property of Request.
Request.UrlReferrer
Include this namespace first:
System.Web
Upvotes: 1