Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# served byte for byte and checked against SRI hashes: never convert line endings
proxyscraper/site/vendor/** -text
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/remove_address.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 🚫 Remove my IP address
description: Your address or network is on the list and you don't want it there
labels: [removal]
body:
- type: markdown
attributes:
value: |
The address goes into `removed.txt` and is left out of every list, the website and the free-proxy-list mirror from the next hourly run on. Older versions stay in the Git history and in copies others made.
Rather not post it publicly? Use the email address in the [Impressum](https://proxy-scraper.de/legal.html#impressum).
If you didn't set up a proxy on that address, the device is probably misconfigured or compromised: other lists will keep publishing it until the port is closed.
- type: input
id: address
attributes:
label: IP address or network
placeholder: 203.0.113.7 or 203.0.113.0/24
validations:
required: true
2 changes: 1 addition & 1 deletion .github/workflows/proxy-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
done
if python -m proxyscraper.publish "results/$(cat results/latest.txt)" public --min 20 \
--history history.json --streaks streaks.json --seen seen.json --feed report/feed.xml \
--sources data/source_stats.json; then
--sources data/source_stats.json --removed removed.txt; then
echo "publish=true" >> "$GITHUB_OUTPUT"
else
rc=$?
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project are listed here. The format follows [Keep a

## [Unreleased]

### Added
- **Remove an address from the lists.** An IP address or network in `removed.txt` is left out of every published list, the website (including the page of a proxy that is no longer listed) and the free-proxy-list mirror from the next hourly run on; the proxy's own address and its exit IP both count. A malformed line stops the publish step instead of publishing the address. Requests come in by email or through a new issue form (`Remove my IP address`)
- proxy-scraper.de has an Impressum and a privacy policy (`legal.html`), linked from the footer of every page

### Changed
- **The website loads its fonts and scripts from itself.** Geist and Geist Mono came from Google Fonts, the map scripts (d3-array, d3-geo, topojson-client, the world outlines) and Lenis from jsDelivr, so every visit sent the visitor's IP address to Google and jsDelivr. The same files, unchanged from their npm packages and with the same SRI hashes, are now served from `vendor/` (licenses in `vendor/LICENSES.txt`)
- The README's disclaimer is a short "Legal and acceptable use" section

## [1.34.0] – 2026-11-12

### Changed
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,13 @@ proxy-scraper stands on the work of the people who publish free proxy lists. Tha
- [IP Geolocation by DB-IP](https://db-ip.com) – the free country database (CC BY 4.0) used for offline country lookups
- [httpbin](https://httpbin.org), [checkip.amazonaws.com](https://checkip.amazonaws.com), [ifconfig.me](https://ifconfig.me), [ipinfo.io](https://ipinfo.io), [wtfismyip.com](https://wtfismyip.com), [ident.me](https://ident.me) and [ip-api.com](https://ip-api.com), used as check targets and for country lookups, and [speed.cloudflare.com](https://speed.cloudflare.com) for the download speed

## Disclaimer
## Legal and acceptable use

This tool only collects publicly listed proxies and checks whether they work. You are responsible for how you use them – respect the terms of the sites you visit and the laws where you live.
proxy-scraper collects proxies that are already listed publicly and checks whether they work. It doesn't scan for open proxies or get into anything: every address comes from one of the [public sources](proxyscraper/sources.json).

- The proxies are run by third parties, often without the owner knowing. Use them only for legal purposes, and never for logins, payments or personal data. You are responsible for how you use them: respect the terms of the sites you visit and the laws where you live.
- **Your address on the list?** Open a [removal request](https://github.com/maximilianfeix/proxy-scraper/issues/new?template=remove_address.yml) or email the address in the [Impressum](https://proxy-scraper.de/legal.html#impressum). It goes into [`removed.txt`](removed.txt) and is gone from every list, the website and the mirror with the next hourly run.
- Impressum and privacy policy: [proxy-scraper.de/legal.html](https://proxy-scraper.de/legal.html). The website sets no cookies, has no tracking and loads its fonts and scripts from itself.

<div align="center">

Expand Down
7 changes: 3 additions & 4 deletions proxyscraper/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,7 @@ def page(lists: List[dict], updated: datetime) -> str:
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="{root}logo.png">
<link rel="apple-touch-icon" href="{root}apple-touch-icon.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Geist:wght@400..700&family=Geist+Mono:wght@400;500&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="{root}vendor/fonts.css">
<style>{CSS}{PAGE_CSS}{BENCH_CSS}</style>
<script type="application/ld+json">{dataset}</script>
</head>
Expand Down Expand Up @@ -265,6 +262,8 @@ def page(lists: List[dict], updated: datetime) -> str:
<footer>
<span>Free proxies are run by strangers. Never send passwords or personal data through them.</span>
<span>Collected and checked by <a href="{REPO_URL}">proxy-scraper</a>, open source, MIT licensed.</span>
<span><a href="{root}legal.html">Impressum</a> · <a href="{root}legal.html#datenschutz">Datenschutz</a> ·
<a href="{root}legal.html#entfernen">Remove an address</a></span>
</footer>
</div>
</body>
Expand Down
7 changes: 3 additions & 4 deletions proxyscraper/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,7 @@ def cells(r: dict) -> str:
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="{root}logo.png">
<link rel="apple-touch-icon" href="{root}apple-touch-icon.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Geist:wght@400..700&family=Geist+Mono:wght@400;500&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="{root}vendor/fonts.css">
<style>{CSS}{PAGE_CSS}</style>
<script type="application/ld+json">{faq_ld}</script>
</head>
Expand All @@ -290,6 +287,8 @@ def cells(r: dict) -> str:
<footer>
<span>Free proxies are run by strangers. Never send passwords or personal data through them.</span>
<span>Collected and checked by <a href="{REPO_URL}">proxy-scraper</a>, open source, MIT licensed.</span>
<span><a href="{root}legal.html">Impressum</a> · <a href="{root}legal.html#datenschutz">Datenschutz</a> ·
<a href="{root}legal.html#entfernen">Remove an address</a></span>
</footer>
</div>
</body>
Expand Down
9 changes: 4 additions & 5 deletions proxyscraper/proxypages.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,7 @@ def _render(proxy: str, entries: List[dict], updated: datetime, bits: Optional[i
<meta name="description" content="{escape(description)}">
{robots}<link rel="canonical" href="{SITE_URL}{page_path(proxy)}">
<link rel="icon" href="{root}logo.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Geist:wght@400..700&family=Geist+Mono:wght@400;500&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="{root}vendor/fonts.css">
<link rel="stylesheet" href="../style.css">
</head>
<body>
Expand All @@ -199,7 +196,9 @@ def _render(proxy: str, entries: List[dict], updated: datetime, bits: Optional[i
that isn't encrypted.</p>
</section>
<footer><span>Checked every hour by <a href="https://github.com/maximilianfeix/proxy-scraper">proxy-scraper</a>,
open source.</span></footer>
open source.</span>
<span><a href="{root}legal.html">Impressum</a> · <a href="{root}legal.html#datenschutz">Datenschutz</a> ·
<a href="{root}legal.html#entfernen">Remove an address</a></span></footer>
</div>
{COPY_JS}
</body>
Expand Down
56 changes: 52 additions & 4 deletions proxyscraper/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import argparse
import csv
import ipaddress
import json
import os
import statistics
Expand All @@ -20,7 +21,7 @@
from datetime import datetime, timedelta, timezone
from pathlib import Path
from types import SimpleNamespace
from typing import Dict, List, Optional
from typing import Dict, List, Optional, Union

from .charts import THEMES, countries_svg, trend_svg
from .checkstate import BASIC, CONFIRM, CONTENT, HTTPS, PASSED
Expand Down Expand Up @@ -53,6 +54,43 @@ def load_rows(run_dir: Path) -> List[dict]:
return best_first(r for r in rows if is_public(r))


# Addresses whose owner asked to be left out (removed.txt in the repository, legal.html#entfernen): one IP or
# network per line, "#" starts a comment. A proxy is left out when its own address or its exit IP is in there.
Networks = Union[ipaddress.IPv4Network, ipaddress.IPv6Network]


def load_removed(path: Optional[Path]) -> List[Networks]:
if path is None or not path.exists():
return []
networks = []
for number, line in enumerate(path.read_text(encoding="utf-8").splitlines(), 1):
entry = line.split("#", 1)[0].strip()
if not entry:
continue
try:
networks.append(ipaddress.ip_network(entry, strict=False))
except ValueError: # one typo must not publish an address someone asked to remove: stop instead
raise SystemExit(f"{path}:{number}: not an IP address or network: {entry!r}") from None
return networks


def _host(proxy: str) -> str:
"""1.2.3.4 from 'socks5://1.2.3.4:1080', '1.2.3.4:1080' or '[2001:db8::1]:8080'."""
host = proxy.split("://", 1)[-1].rsplit("@", 1)[-1].rsplit(":", 1)[0]
return host.strip("[]")


def is_removed(proxy: str, exit_ip: str, networks: List[Networks]) -> bool:
for value in (_host(proxy), exit_ip):
try:
ip = ipaddress.ip_address(value)
except ValueError:
continue
if any(ip in net for net in networks if net.version == ip.version):
return True
return False


# What a proxy must have passed – measured, not assumed – to be on a published list (docs/check-states.md).
# "unavailable" is not enough: a run whose confirmation target was down publishes nothing new, the old list stays.
LISTED = (BASIC, CONFIRM, CONTENT)
Expand Down Expand Up @@ -296,8 +334,9 @@ def load_streaks(path: Optional[Path]) -> Dict[str, int]:

def publish(run_dir: Path, out: Path, minimum: int = 20, now: Optional[datetime] = None,
history: Optional[Path] = None, streaks: Optional[Path] = None, seen: Optional[Path] = None,
feed: Optional[Path] = None, sources: Optional[Path] = None) -> int:
rows = load_rows(run_dir)
feed: Optional[Path] = None, sources: Optional[Path] = None, removed: Optional[Path] = None) -> int:
networks = load_removed(removed)
rows = [r for r in load_rows(run_dir) if not is_removed(r.get("proxy", ""), r.get("exit_ip") or "", networks)]
held_back = sum(1 for r in rows if not meets_requirements(r))
rows = [r for r in rows if meets_requirements(r)]
if held_back:
Expand All @@ -316,6 +355,8 @@ def publish(run_dir: Path, out: Path, minimum: int = 20, now: Optional[datetime]
rows = best_first(rows) # again, now that the streaks say who is likely to last
runs = [*past_runs, history_entry(stats_for(rows, now), summary)][-HISTORY_LIMIT:]
listed = update_seen(rows, load_seen(seen, past_runs[-1].get("updated") if past_runs else None), now)
# a removed address also leaves the record of earlier runs, so it gets no "no longer listed" page either
listed = {url: e for url, e in listed.items() if not is_removed(url, "", networks)}
for row in rows:
entry = listed[row["url"]]
row["first_seen"] = entry["first_seen"]
Expand Down Expand Up @@ -364,6 +405,11 @@ def publish(run_dir: Path, out: Path, minimum: int = 20, now: Optional[datetime]
for asset in SITE.iterdir():
if asset.suffix in (".html", ".png"):
(out / asset.name).write_bytes(asset.read_bytes())
# fonts and scripts come from the site itself, so a visit sends no visitor's IP to a CDN (site/vendor/)
(out / "vendor").mkdir(exist_ok=True)
for asset in (SITE / "vendor").iterdir():
if asset.is_file():
(out / "vendor" / asset.name).write_bytes(asset.read_bytes())
(out / ".nojekyll").write_text("", encoding="utf-8") # GitHub Pages (the branch) should serve the files unchanged
# a page per proxy (with its week as a timeline), then the pages per protocol and country plus sitemap.xml
try:
Expand Down Expand Up @@ -409,9 +455,11 @@ def main(argv: Optional[List[str]] = None) -> int:
p.add_argument("--feed", type=Path, help="report/feed.xml from last time (the weekly entries it keeps)")
p.add_argument("--sources", type=Path,
help="data/source_stats.json of this run (for the ranking of the sources on the website)")
p.add_argument("--removed", type=Path,
help="removed.txt: addresses whose owner asked to be left out (one IP or network per line)")
args = p.parse_args(argv)
return publish(args.run_dir, args.out_dir, args.min, history=args.history, streaks=args.streaks, seen=args.seen,
feed=args.feed, sources=args.sources)
feed=args.feed, sources=args.sources, removed=args.removed)


if __name__ == "__main__":
Expand Down
9 changes: 4 additions & 5 deletions proxyscraper/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,7 @@ def page(f: dict) -> str:
<meta property="og:description" content="{escape(_lines(f)[0])}">
<meta property="og:image" content="{SITE_URL}og.png">
<link rel="icon" href="{root}logo.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Geist:wght@400..700&family=Geist+Mono:wght@400;500&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="{root}vendor/fonts.css">
<style>{CSS}
.report p {{ font-size: 19px; max-width: 64ch; margin: 0 0 18px; }}
.report p:first-child {{ font-size: 24px; letter-spacing: -.01em; }}
Expand Down Expand Up @@ -264,7 +261,9 @@ def page(f: dict) -> str:
</picture>
<footer><span>Want to share it? <a href="report.md">Markdown</a> · <a href="post.txt">a short post</a> ·
<a href="feed.xml">RSS/Atom feed</a> ·
<a href="https://github.com/maximilianfeix/proxy-scraper">the code</a></span></footer>
<a href="https://github.com/maximilianfeix/proxy-scraper">the code</a></span>
<span><a href="{root}legal.html">Impressum</a> · <a href="{root}legal.html#datenschutz">Datenschutz</a> ·
<a href="{root}legal.html#entfernen">Remove an address</a></span></footer>
</div>
</body>
</html>
Expand Down
Loading
Loading