SecurityTrustedProxiesCommand
Corex\Cli\Commands\SecurityTrustedProxiesCommand · class · CLI layer
Says which proxies a site trusts to report a visitor’s address. Behind a proxy, a load balancer or a CDN the connection comes from the proxy, so a login lockout and a form’s rate limit count every visitor as one client until the proxy is named here. Every proxy between the visitor and WordPress has to be named: the first one that is not is taken for the client.
Public API
Section titled “Public API”trusted(): array
Section titled “trusted(): array”trust(array $ranges): array
Section titled “trust(array $ranges): array”Replaces the list. An empty list trusts nobody.