設定指南
每一行都包含閘道、連接埠、使用者名稱和密碼。你選擇的選項(國家、會話)寫在使用者名稱中。
代理行格式
host:port:user:pass 是匯入清單的工具最常用的格式。user:pass@host:port 可在大多數函式庫中作為代理位址使用。
國家
像清單產生器那樣,把國家代碼加入使用者名稱。不加時可使用任意國家。
輪換
不設會話時,每個新連線都可能獲得新 IP。設定會話 ID 和時長後,在 IP 保持線上期間,相同會話 ID 的連線會在該時長內保持同一 IP。換一個新的會話 ID 即可獲得新 IP。
免密碼登入
在「設定 > 白名單 IP 位址」中新增你伺服器的公用 IPv4 位址。來自該位址的連線只需使用者名稱選項即可使用閘道。
流量
流量是指透過代理傳輸的資料,以代理網路統計為準。你可以在「用量」中查看每日使用情況。
範例
範例值。登入後,這裡會顯示你自己的使用者名稱、密碼和閘道。
curl
curl -x http: //wgp- yourname- country- de- session- k3m9p2qa- time- 10: yourpassword@gate.wingproxy.example: 8000 https: //api.ipify.org
Python (requests)
import requests proxy = "http://wgp- yourname- country- de- session- k3m9p2qa- time- 10: yourpassword@gate.wingproxy.example: 8000" r = requests.get("https: //api.ipify.org", proxies={"http": proxy, "https": proxy}, timeout=30) print(r.text)
Node.js (undici)
import { ProxyAgent, fetch } from "undici"; const agent = new ProxyAgent("http://wgp- yourname- country- de- session- k3m9p2qa- time- 10: yourpassword@gate.wingproxy.example: 8000"); const r = await fetch("https: //api.ipify.org", { dispatcher: agent }); console.log(await r.text());
SOCKS5
curl -x socks5h: //wgp- yourname- country- de- session- k3m9p2qa- time- 10: yourpassword@gate.wingproxy.example: 9000 https: //api.ipify.org
瀏覽器
在瀏覽器或代理擴充功能中,把 HTTP 代理設為閘道和 HTTP 連接埠,在提示時輸入使用者名稱和密碼。
