HTTP variables

$binary_remote_addr variable (HTTP)

Packed address bytes rather than printable text: IPv4 occupies four bytes and IPv6 sixteen. Useful for compact per-address keys such as a rate-limit zone. Avoid rendering raw bytes as text. Version: Introduction not established. OSS documentation; verify build. No positional directive arguments. Example is a partial configuration fragment for a disposable synthetic lab; not a production logging policy.

Formal Syntax & Structure

nginx syntaxnginx
$binary_remote_addr

Working Example

Example Snippetnginx
# Partial http-context example: map a synthetic value to a presence flag, never log the raw value.map $binary_remote_addr $lab_present {    "" 0;    default 1;}
Nginx Reference