determine if user is using proxy

前端 未结 1 1264
执笔经年
执笔经年 2020-12-05 07:41

Hi I\'m creating a game and I would like to be able to tell if a user is using a proxy. If they are than it basically puts a flag on their account. I can make it do the fl

相关标签:
1条回答
  • 2020-12-05 08:17

    After searching Google for php detect http proxies I came up with the following:

    http://forums.digitalpoint.com/showthread.php?t=58964

    http://forums.digitalpoint.com/showthread.php?t=365467

    http://www.roscripts.com/PHP_Proxy_Detector-75.html

    ...and quite a number of other interesting hits.

    EDIT:

    AFAIK there is no way to detect HTTP proxies either with absolute certainty, or safely:

    • Anonymizer services do not add the proper headers to their requests - as a matter of fact they remove some of them. You need to keep a list of the most popular anonymizer services and their IP address blocks and detect them that way. There are some lists on-line that you might be able to use, but they are far from complete - especially if you consider that most large institutions (ISPs, companies, universities etc) provide a proxy server for their users. Some even require their users to use them.

    • Many HTTP proxies are configured so that they simply forward requests without altering the headers.

    • VPN installations have the same effect as an HTTP proxy - namely allowing HTTP requests to originate from a different IP than that of the computer where the web broswer is - without being one.

    • Any SSH server can be used as a SOCKS proxy by its users, which is not really detectable since it is not really an HTTP proxy.

    • There are many legitimate HTTP proxies that are not publically accessible. For example there are HTTP proxy products that are installed in a home network and provide parental control and questionable content (pornography, phishing sites etc) filtering for the whole network.

    What kind of abuse are you seeing, where detecting HTTP proxies could be useful?

    0 讨论(0)
提交回复
热议问题