Ravi Gupta
Ravi Gupta

Reputation: 6480

Ways to find out source of a HTTP request?

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

Answers (3)

Narender
Narender

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

Ravi Gupta
Ravi Gupta

Reputation: 6480

Correct answer is "Nope​​​​​​​​​​​​. – SLaks♦ Oct 31 at 17:34"

Upvotes: 3

powtac
powtac

Reputation: 41080

You coud do a geo lookup of the remote ip...

Upvotes: 0

Related Questions