开发者

How to know if a user is using a proxy? [duplicate]

This question already has answers here: Closed 12 years ago. 开发者_开发知识库

Possible Duplicate:

Detecting whether a user is behind a proxy

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


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜