# un33k/django-ipware

A Django application to retrieve client's IP address

Repository: https://github.com/un33k/django-ipware
Canonical: https://ross.abutalabs.com/products/django-ipware
Language: Python
License: MIT
License Family: permissive
Last push: 2024-04-19T20:02:51+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4879, "days_push": 866, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1064, forks 97 (observed 2026-08-28T04:03:26.500443+00:00)

## What it is
A Django application/library that retrieves the client's real IP address from request headers, handling proxies and load balancers with configurable precedence and trusted proxy settings. It is a Django wrapper around python-ipware.

## Use cases
- get the real client IP behind a load balancer or reverse proxy
- log user IP addresses in Django views
- detect whether a client IP is publicly routable or private
- rate limit or anti-fraud checks based on client IP
- configure X-Forwarded-For header precedence for platforms like Heroku or AWS ELB

## When to choose
- you run a Django app behind proxies or load balancers and need the client's IP
- you need configurable proxy handling with trusted proxy IPs or proxy counts
- you want a small, well-maintained, MIT-licensed utility

## When to avoid
- you need a non-Django Python solution (use python-ipware instead)
- you need bulletproof protection against IP spoofing for security-critical systems without proper proxy configuration
- you are not using Django or Python

## Facets
- artifact type: library
- maturity: stable
- function: middleware, security, developer-tools
- domain: web-development, backend, security, developer-tools
- platform: python
- tags: django, client-ip, ip-address, proxy-headers, x-forwarded-for, web-server

## Member repositories
- un33k/django-ipware (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:26.500443+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:56:06.892143+00:00, confidence not recorded.
  - readme: https://github.com/un33k/django-ipware (fetched 2026-08-28T04:03:26.500443+00:00, sha d4db7fd0a916)
  - registry_pypi: https://pypi.org/pypi/django-ipware/json (fetched 2026-08-29T12:58:15.738343+00:00, sha cbb9289c12eb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
