X-Forwarded-For parsing and trusted proxy detection for OCaml
1(lang dune 3.21)
2(using mdx 0.4)
3
4(name xff)
5
6(generate_opam_files true)
7
8
9(source (tangled gazagnaire.org/ocaml-xff))
10
11(authors "Thomas Gazagnaire")
12
13(maintainers "thomas@gazagnaire.org")
14
15(license ISC)
16
17(package
18 (name xff)
19 (synopsis "X-Forwarded-For parsing and trusted proxy detection")
20 (tags (org:blacksun network http))
21 (description
22 "Parse X-Forwarded-For headers to extract client IP addresses behind proxies.
23Supports trusted proxy validation using CIDR ranges to prevent IP spoofing.
24Implements de-facto X-Forwarded-For standard and aligns with RFC 7239.")
25 (depends
26 (ocaml (>= 5.0.0))
27 dune
28 ipaddr
29 fmt
30 (mdx :with-test)
31 (alcotest :with-test)
32 (alcobar :with-test)))