X-Forwarded-For parsing and trusted proxy detection for OCaml
OCaml 89.1%
Dune 3.2%
Other 7.7%
16 1 0

Clone this repository

https://tangled.org/gazagnaire.org/ocaml-xff https://tangled.org/did:plc:jhift2vwcxhou52p3sewcrpx/ocaml-xff
git@git.recoil.org:gazagnaire.org/ocaml-xff git@git.recoil.org:did:plc:jhift2vwcxhou52p3sewcrpx/ocaml-xff

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

XFF - X-Forwarded-For parsing and trusted proxy detection#

Parse X-Forwarded-For headers to extract client IP addresses behind proxies. Supports trusted proxy validation using CIDR ranges to prevent IP spoofing. Implements de-facto X-Forwarded-For standard and aligns with RFC 7239.

Installation#

opam install xff will install this library.

Reference#

Documentation#

API documentation