Skip to content

fix: read proxy_providers from Residential Proxy database v2 - #8

Merged
mateen993 merged 1 commit into
mainfrom
fix/residential-proxy-v2-providers
Nov 23, 2026
Merged

mateen993 merged 1 commit into
mainfrom
fix/residential-proxy-v2-providers

Conversation

@mateen993

Copy link
Copy Markdown
Collaborator

Problem

Residential Proxy database v2 renamed proxy_provider to proxy_providers, an array of every provider. With only that database loaded:

  • is_residential_proxy was never derived, so blockResidentialProxy: true let residential proxies through (200 instead of 403).
  • residential_proxy_provider and proxy_provider came back empty.

v2 also adds three proxy activity counts that the plugin did not expose.

Changes

  • is_residential_proxy is derived from proxy_providers. The v1 proxy_provider column still works.
  • proxy_provider and residential_proxy_provider join every provider with listSeparator, e.g. Proxy-Seller,ProxyWing.
  • New number fields proxy_days_seen_7d, proxy_days_seen_30d and proxy_provider_count_30d (headers X-IPGeo-Proxy-Days-Seen-7d and so on, included in the full preset). They are read from the IP Security database or from Residential Proxy database v2, whichever is declared first.
  • README: database table, Security field list, and a note on v2 and the counts.

Tests

  • New TestResidentialProxyV2Database: builds a v2 .mmdb (counts stored as uint16, like the real database) and checks all seven headers plus the 403 from blockResidentialProxy. It fails on main.
  • Security test record gains the three counts; TestFieldExtraction checks them, and TestTargetedAccessMatchesFullDecode covers them automatically.
  • Locally: gofmt and go vet clean, go test -race -cover ./... passes, make yaegi passes all 12 checks.

Residential Proxy database v2 renamed proxy_provider to proxy_providers,
an array of every provider. With only that database loaded, the plugin
no longer derived is_residential_proxy, so blockResidentialProxy let
those addresses through, and the provider fields came back empty.

- is_residential_proxy is derived from proxy_providers (v1
  proxy_provider still works).
- proxy_provider and residential_proxy_provider join every provider
  with listSeparator.
- New number fields proxy_days_seen_7d, proxy_days_seen_30d and
  proxy_provider_count_30d, read from the IP Security database or from
  Residential Proxy database v2, whichever is declared first.
@mateen993
mateen993 merged commit 1d5a148 into main Nov 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant