0

Possible Duplicate:
Detecting whether a user is behind a proxy

Is there a way to know if a user is behind a proxy ?

Community
  • 1
  • 1
xRobot
  • 25,579
  • 69
  • 184
  • 304
  • Possibly duplicate of http://stackoverflow.com/questions/1000924/detecting-whether-a-user-is-behind-a-proxy – Lekensteyn Nov 11 '10 at 20:06

2 Answers2

2

No, but if it is for caching purposes you can control the caching of proxies pretty efficiently using the http protocol headers.

Piotr
  • 4,813
  • 7
  • 35
  • 46
0

Generally, Piotr Blasiak is right, because we're talking about a Layer 7 protocol, namely HTTP, in which case the proxy acts as a client against the (web-) server. Afaik, the HTTP requests originating from a proxy cannot be distinguisht from those coming from an "actual" client. However, you're able to determine the user's IP address. In most cases this is a useless information. If, however, this IP address belongs to a well known proxy (e.g. one of the tor network), then you're almost sure. So, the only approach is based on probabilistic guesses and lookup-tables.

Maybe this helps.

Kind regards, mefiX

mefiX
  • 1,702
  • 3
  • 24
  • 39