Module security

Source

Functions§

is_proxy_ip_allowed
Checks if a proxy IP address is allowed based on the configured allowlist Returns true if no allowlist is configured (allow all) or if IP matches any entry
parse_original_client_ip
Parses the original client IP from X-Forwarded-For header Format: “client, proxy1, proxy2, …” - returns the leftmost (original client) IP