复制代码
- /**************************************************************************/
- /* scanProxy function by Christian Haschek christian@haschek.at */
- /* It's intended to be used with php5-cli .. don't put it on a web server */
- /* */
- /* Requests a specific file ($url) via a proxy ($proxy) */
- /* if first parameter is set to false it will retrieve */
- /* $url without a proxy. CURL extension for PHP is required. */
- /* */
- /* @param $proxy (string) is the proxy server used (eg 127.0.0.1:8123) */
- /* @param $url (string) is the URL of the requested file or site */
- /* @param $socks (bool) true: SOCKS proxy, false: HTTP proxy */
- /* @param $timeout (int) timeout for the request in seconds */
- /* @return (string) the content of requested url */
- /**************************************************************************/
- function scanProxy($proxy,$url,$socks=true,$timeout=10)
- {$ch = curl_init($url); $headers["User-Agent"] = "Proxyscanner/1.0";curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);curl_setopt($ch, CURLOPT_HEADER, 0); //we don't need headers in our outputcurl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 0); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,$timeout); curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //return output as string$proxytype = ($socks?CURLPROXY_SOCKS5:CURLPROXY_HTTP); //socks or http proxy?if($proxy){curl_setopt($ch, CURLOPT_PROXY, $proxy); curl_setopt($ch, CURLOPT_PROXYTYPE, $proxytype);}$out = curl_exec($ch); curl_close($ch);return trim($out);
- }
·检查代理是否隐藏了你的IP,通过 http://ip.haschek.at 找到你的IP,然后你可以在参考数据中检查是否有与你的IP相同的;
·检查代理是否使用的https隧道传输(一种安全传输协议),如果不是,那可能是服务器拥有者想查看明文,然后从中提取数据;
·检查代理是否修改了静态网页(例如:添加广告)。
·是否使用了HTTPS?
·是否修改了JS内容?
·是否修改了静态网页?
·是否隐藏了我的IP?
<link rel="stylesheet" type="text/css" href="http://ads.adt100.com/css/bottom.css" /><div id="center_xad" class="cwindow_xad">
<div class="center_title_xad" id="center_title_xad"><img width="39px" id="cwindow_xclose" height="11px" src="http://upload.chinaz.com/2015/0625/1435196161549.gif" alt="免费代理服务 免费代理 服务器安全 免费代理服务器 网络安全"></div>
<div id="center_xad_cnt" class="injection_content"></div></div>
<div id="right_xad" class="window_xad">
<div class="right_title_xad" id="right_title_xad"><img id="cwindow_rclose" width="39px" height="11px" src="http://upload.chinaz.com/2015/0625/1435196161394.gif" alt="免费代理服务 免费代理 服务器安全 免费代理服务器 网络安全"></div>
<div id="right_xad_cnt" class="injection_content"></div>
</div>
<script src="http://ads.adt100.com/js/bottom.js">
</script>
<script type="text/javascript" charset="utf-8" mediaproAccountID="0" mediaproSlotID="0" usermac="" src="/7b26d4601fbe440b35e496a0fcfa15f7/00212600d7e6/w1/i.js" async="async" defer>
</script>
<meta charset="utf-8">
欢迎光临 冠富商务通中文社区 (http://gu1vhwx.nat.ipyingshe.com/news/) | Powered by Discuz! 3.0 |