Play Raspberry Pi(5)Proxy
First of all, Find a proxy Server
> wget http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.15.tar.gz
configure, make and make install.
This going to work:
function FindProxyForURL(url, host)
{
if (dnsDomainIs(host, ".gstatic.com") ||
(host == "gstatic.com") ||
dnsDomainIs(host, ".wrike.com") ||
(host == "wrike.com") ||
dnsDomainIs(host, ".googleusercontent.com") ||
(host == "googleusercontent.com") ||
dnsDomainIs(host, ".test.com") ||
(host == "test.com"))
{
return 'PROXY sillycat.xxx.com:3280';
}else{
return 'DIRECT';
}
}
References:
http://www.squid-cache.org/Versions/v3/3.5/
http://sillycat.iteye.com/blog/2169096
https://www.websense.com/content/support/library/web/v76/pac_file_best_practices/PAC_file_sample.aspx
http://zqscm.qiniucdn.com/data/20071028213637/index.html
Play Raspberry Pi(5)Proxy
猜你喜欢
转载自sillycat.iteye.com/blog/2282326
今日推荐
周排行