Skip to content

Support for CIDR notation #26

Description

@griffi-gh

currently, the library only does basic string-based matching;

however the standard way to achieve this is CIDR notation, for example something like 100.64.0.0/16 for IPv4 or fd7a:115c:a1e0::/48 for IPv6

Activity

  1. added a commit that references this issue on Sep 22, 2026
  2. un33k commented on Sep 22, 2026

    @un33k
    Owner

    Thank you @griffi-gh — great suggestion. CIDR entries are now supported in proxy_list for both IPv4 and IPv6 (e.g. 100.64.0.0/10, fd7a:115c:a1e0::/48), matched by real network membership; plain prefixes still work. It ships in 4.0.0 with the new default modern engine (the frozen legacy engine is unchanged). Credited in the CHANGELOG. Implemented in 9d48ecf on https://github.com/un33k/python-ipware/tree/release/4.0.0-modern-default.

    🚀 Generated with Dojo ⛩️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions