Reputation: 6480
What are the various ways through which I can find out the source from which a HTTP request is generated? I know only one, i.e. HTTP referrer field. Is there any other way also?
EDIT: Here I am only interested in knowing that whether the request is generated from a machine directly or from some other website. And in case of some other website, then which one? I am not interested in IP level details.
Upvotes: 4
Views: 8132
Reputation: 1
The simplest method to get the source from where the request has been made is parsing of request headers. Below is the example on how to retrieve the requested client details.
var agent = Request.Headers.UserAgent;
Upvotes: 0