除了前面所介紹的FoxyProxy 之外, Firefox 用戶也不妨考慮"
SwitchProxy Tool :: Firefox Add-ons"
IE 設定: 控制台 -> 網際網路選項 -> 連線 -> 設定值 -> 使用自動組態指令碼
Firefox 工具 -> 選項 -> 進階 -> 網路 -> 設定 -> Proxy 自動設定網址
網址輸入
file://c:\proxy.pac 或
file:///c:/proxy.pac (請自行將 "c:" 改成檔案正確存放位置)
然後建立一個純文字檔 "
proxy.pac", 以下範例適用於Hinet 用戶:
語法:
function FindProxyForURL(url,host)
{
// Process specific rules first. Shouldn't take much time.
if ( dnsDomainIs(host, ".cn")
|| dnsDomainIs(host, ".jp")
) return "PROXY proxy.hinet.net:80; DIRECT";
// Process speedy or private connections. Do not conflic with other rules.
if ( dnsDomainIs(host, ".tw")
|| dnsDomainIs(host, ".google.com")
|| dnsDomainIs(host, ".gmail.com")
|| dnsDomainIs(host, ".live.com")
|| dnsDomainIs(host, ".hotmail.com")
|| dnsDomainIs(host, ".yahoo.com")
|| dnsDomainIs(host, ".ebay.com")
|| dnsDomainIs(host, ".taobao.com")
|| dnsDomainIs(host, ".yimg.com")
|| dnsDomainIs(host, ".microsoft.com")
|| dnsDomainIs(host, ".hinet.net")
|| dnsDomainIs(host, ".cc")
) return "DIRECT";
// Run UltraSurf first.
if ( dnsDomainIs(host, "www.pandora.com")
|| dnsDomainIs(host, "video.cgi.cbs.com")
|| dnsDomainIs(host, ".grandcentral.com")
) return "PROXY 127.0.0.1:9666; DIRECT";
// Put these last.
if ( isInNet(host, "127.0.0.0", "255.0.0.0")
|| isInNet(host, "192.168.0.0", "255.255.0.0")
|| isInNet(host, "172.16.0.0", "255.240.0.0")
|| isInNet(host, "10.0.0.0", "255.0.0.0")
|| isInNet(host, "169.254.0.0", "255.255.0.0")
|| dnsDomainIs(host, "localhost")
) return "DIRECT";
else
return "PROXY proxy.hinet.net:80; DIRECT";
// Set "proxy.hinet.net:80" for Hinet users
// Set "proxy.seed.net.tw:8080" for Seednet users
// Copyleft: www.pczone.com.tw
// http://www.pczone.com.tw/vbb3/thread/6/20756/2/#post1002231
// file:///c:/proxy.pac
} 以上原則是FIFO, 先吻合先執行, 請參考 "
Mozilla Taiwan 討論區: 尋找某網站對應某代理伺服器 (Proxy) 的功能"
修改過proxy.pac 之後, 必須重新啟動瀏覽器或重新載入proxy.pac, 變更才會生效, 以SwitchProxy 切換等同重新載入
以上範例中, 如果沒有先執行UltraSurf, 就造訪Pandora 的話, 函式FindProxyForURL 會先檢查return "PROXY 127.0.0.1:9666" 是否有效, 若無效則忽略該條例, 避免造成無法連結, 此時請先以SwitchProxy 切換為None, 接著執行UltraSurf, 再切換回原來的Proxy 設定, 就可以不用重新啟動Firefox
在SwitchProxy 之中, 小弟將以上使用自動組態指令碼命名為Default, 除此之外, 小弟還建立了Hinet,
Proxomitron/
Proximodo 和
UltraSurf (無界), 如果您需要絕對隱密, 那麼您可以考慮安裝
Vidalia Bundles (包含Tor + Privoxy), 另外, 建議將區網IP 排除在外, 預設No Proxy for 的內容只有 "localhost, 127.0.0.1", 請加上 "
, 192.168.0.0/16, 172.16.0.0/20, 10.0.0.0/24"
Switch Proxy Options 只保留 "Show Context Menu" 打勾, 其餘取消, 變換Proxy 範本不重新載入目前頁面
另類代理 - 內容分發網路 Content Distribution Network (CDN)
FF2 + SwitchProxy Tool 1.4.1, 請自行修改擴充套件 (以7-Zip 展開):
install.rdf 語法:
<em:maxVersion>2.1</em:maxVersion>