授权检测器的 IP
在个人中心添加服务器地址。多台服务器可以共用一个套餐,每多一个 IP 加价 10%。
检测器用两个数字衡量代理池:能开多少线程,一小时能消耗多少地址。
数千个并发连接
500 到 5,000 线程:6 号套餐提供上限
地址数量多于待检测条目
6 号 50,000 个 IP,5 号 40,000 个,每天更换三分之一
响应快,没有失效地址
列表每 10 分钟刷新;下面的测速脚本在运行前剔除慢地址
投诉不会中断运行
滥用投诉按常规流程处理,套餐继续可用
把检测器的线程设为套餐上限;超出部分会被代理池拒绝连接。
在个人中心添加服务器地址。多台服务器可以共用一个套餐,每多一个 IP 加价 10%。
运行下面的脚本或 SLP:保留在你设定时限内响应的地址,并写入文件。
6 号套餐 5,000,3 号套餐 2,000。线程超过上限换来的是被拒绝的连接,而不是更快的速度。
脚本为每个代理访问两个回显服务,判断这个地址是完全隐藏你、表明自己是代理,还是泄露你的真实 IP,并把结论写入 CSV。地址多达数万时,请使用 Socks List Processor。
#!/usr/bin/env python3
"""Proxy anonymity checker for Advanced.name proxies.
For every proxy it opens two small endpoints that echo the request, then decides
whether the proxy is elite (hides you completely), anonymous (announces a proxy
but not your IP) or transparent (leaks your real IP). Standard library only.
Run: python3 anon.py
"""
# ================================ CONFIG ====================================
PROXY_LIST = "proxies.txt" # one ip:port per line, or a CSV export (';' separated)
MY_IP = "" # your real IP; leave empty to detect it once directly
JUDGE_IP = "https://api.ipify.org" # returns the exit IP as plain text
JUDGE_HDR = "https://httpbin.org/get" # echoes the headers the site received
THREADS = 100
TIMEOUT = 12
OUT_FILE = "anon.csv" # proxy;status;anonymity;exit_ip is written here
# HTTP and SOCKS answer on the same Advanced.name port, so the http scheme works for both.
# ============================================================================
import csv
import sys
import threading
import urllib.request
from concurrent.futures import ThreadPoolExecutor, as_completed
LEAK_HEADERS = ("X-Forwarded-For", "Via", "X-Real-Ip", "Forwarded", "X-Proxy-Id")
def load_list(path):
out = []
with open(path, encoding="utf-8", errors="replace") as fh:
for line in fh:
line = line.strip()
if not line or line.startswith("#"):
continue
if ";" in line: # a CSV row: ip;port;...
parts = line.split(";")
if len(parts) >= 2 and parts[1].isdigit():
out.append(parts[0] + ":" + parts[1])
elif ":" in line:
out.append(line)
return out
def opener(proxy):
handler = urllib.request.ProxyHandler({"http": "http://" + proxy, "https": "http://" + proxy})
return urllib.request.build_opener(handler)
def through(proxy, url):
return opener(proxy).open(url, timeout=TIMEOUT).read().decode("utf-8", "replace")
def my_ip():
if MY_IP:
return MY_IP.strip()
return urllib.request.urlopen(JUDGE_IP, timeout=TIMEOUT).read().decode().strip()
def classify(proxy, real_ip):
try:
exit_ip = through(proxy, JUDGE_IP).strip()
except Exception:
return "dead", "", ""
try:
echoed = through(proxy, JUDGE_HDR).lower()
except Exception:
echoed = ""
if real_ip and real_ip in echoed:
anon = "transparent"
elif any(h.lower() in echoed for h in LEAK_HEADERS):
anon = "anonymous"
else:
anon = "elite"
return "live", anon, exit_ip
def main():
proxies = load_list(PROXY_LIST)
if not proxies:
sys.exit("List is empty.")
real_ip = my_ip()
print("real IP: %s, proxies: %d, threads: %d" % (real_ip, len(proxies), THREADS))
counts = {"elite": 0, "anonymous": 0, "transparent": 0, "dead": 0}
lock = threading.Lock()
rows = []
def work(proxy):
status, anon, exit_ip = classify(proxy, real_ip)
key = anon if status == "live" else "dead"
with lock:
counts[key] += 1
return proxy, status, anon, exit_ip
with ThreadPoolExecutor(max_workers=THREADS) as pool:
for fut in as_completed([pool.submit(work, p) for p in proxies]):
rows.append(fut.result())
with open(OUT_FILE, "w", encoding="utf-8", newline="") as out:
writer = csv.writer(out, delimiter=";")
writer.writerow(["proxy", "status", "anonymity", "exit_ip"])
writer.writerows(rows)
print("elite %d anonymous %d transparent %d dead %d -> %s"
% (counts["elite"], counts["anonymous"], counts["transparent"], counts["dead"], OUT_FILE))
if __name__ == "__main__":
main()
任何批量检测器都接受代理文件或 URL:粘贴 ip:port 列表,选择 SOCKS5 或 HTTP(两者同一端口),整个运行过程保持同一类型。线程设为套餐上限,最大套餐是 5,000,超出的连接会被直接拒绝,不会排队。
超时 10 秒、换地址重试一次,线程浪费最少;超时太长会卡在失效目标上。
运行前用上面的匿名度脚本或 Socks List Processor 剔除慢地址和泄露 IP 的地址。长时间运行时每 10 分钟重读列表,让新地址补进来。
想快速验证一下,免费代理列表能让你看到检测器期望的格式。
检查器受限于线程数和地址数量,这正是不限流量套餐的强项。对封锁列表地址的目标,再加上Resi Core。
线程最多最佳选择
最大的套餐:即使数据库有几十万行,一个IP也很少重复访问同一目标。流量不计量。
$1390 每月或每小时$5.80
最多2500线程的检查器
足够支撑最多2500个连接的检查器,价格比#6套餐便宜近30%。
$990 每月或每小时$4.20
严格的目标
每次检查都换一个新的家庭IP。目标的响应只有几KB,所以1GB能完成上千次检查。
低至 $0.49 每GB1GB仅需$0.85