fresh-proxy-list icon indicating copy to clipboard operation
fresh-proxy-list copied to clipboard

HTTPS proxy validity

Open Ch41r05 opened this issue 11 months ago • 1 comments

Hi Vakhov,

Thanks for your efforts to make a comprehensive working proxies repo! I'm trying to check working https proxies like this:

import requests

url = "https://raw.githubusercontent.com/vakhov/fresh-proxy-list/refs/heads/master/https.txt"
proxies = requests.get(url).text.splitlines()

for proxy in proxies:
  try:
    response = requests.get(r"https://httpbin.org/ip", proxies={"https": proxy})
    print(response.text)
  except Exception as e:
    print(e)

Sadly it seems that most of the http proxies have ConnectionTimoutError or OSError (Tunnel conection failed: 403 Forbidden) when checked against that site. How do you test these proxies to check that their valid and working? I'm curious since I'm working on a project to learn ho proxies work for connections and I'm a bit confused on how a proxy can be valid but not working against a site that seems quite soft on proxy limitation.

Thanks for your time.

Ch41r05 avatar Mar 06 '25 11:03 Ch41r05

use unfx proxy checker

pirateorno avatar Jun 07 '25 19:06 pirateorno