charcoal-dev / http-trust-proxy
TTP header resolver for client IP/host/proto behind proxies, built on networking.
Installs: 76
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/charcoal-dev/http-trust-proxy
Requires
- php: ^8.3
- charcoal-dev/networking: ^0.1.0
README
An HTTP-focused library that resolves the true client IP, protocol, and host information when applications are deployed behind reverse proxies or load balancers. It parses and validates Forwarded and legacy X-Forwarded-* headers, applies trusted CIDR rules from the base networking library, and enforces hop limits and header integrity. Built on charcoal-dev/networking, it isolates proxy-trust logic into a reusable, framework-agnostic component that can be integrated wherever accurate client information is required.
For detailed information, guidance, and setup instructions regarding this library, please refer to our official documentation website: