开发者

checking proxy type in .net

开发者 https://www.devze.com 2023-02-28 22:08 出处:网络
can anyone help me with code that check a proxy type in .net? so it i put a proxy information in a textbox, it will return the proxy type

can anyone help me with code that check a proxy type in .net? so it i put a proxy information in a textbox, it will return the proxy type

there are about 4-5 types

Transparent, Anonymous, Elite, Anonymouse + Elite

it has something to do with the headers returned, here are some headers

HTTP_X_FORWARDED_FOR
HTTP_VIA

EDIT

there are about 5 categories of proxies

UNKNOWN_PROXY
DEAD_PROXY
HTTP_PROXY
SOCKS4_PROXY
SOCKS5_PROXY

The one am intere开发者_运维问答sted in is HTTP_PROXY. when you make a request via a proxy to google or any site, the headers returned somehow as i have heard also returns the type of proxy that is being used


i think you must setup a webserver (accessible by the proxy server)
your winform application send a http request to an web application deployed on that webserver via the proxy
the true request to your webserver will be send by the proxy server, you can check the header and see the IP you found is of your client or the proxy server and send back the type of the proxy.

0

精彩评论

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