Skip to content

Custom IP Ranges ​

Use configuration when you need extra trusted proxies (office VPN, private load balancer) or must exclude a subset of a provider's published ranges.

Include extra ranges ​

ini
EDGE_TRUST_CUSTOM_RANGES=203.0.113.0/24,2001:db8::/32

These CIDRs are merged into the resolved trusted proxy list for all modes. You can also set custom_ranges in a published config file.

Exclude ranges ​

ini
EDGE_TRUST_EXCLUDE_RANGES=198.51.100.0/24

Excluded prefixes are removed from the final set after providers and custom ranges are combined.

Per-provider static ranges ​

Attach fixed ranges to a custom provider key without writing a fetch implementation:

php
'custom_provider_ranges' => [
    'my-proxy' => [
        '203.0.113.10/32',
    ],
],

For dynamic sources, implement a custom provider instead.

Validation notes ​

  • Built-in / fetched ranges reject non-global prefixes when validation.reject_non_global is true.
  • Custom ranges use validation.reject_non_global_custom (default false) so carefully chosen private/lab ranges can be allowed when you need them.

Verify ​

bash
php artisan edge-trust:list
php artisan edge-trust:validate

Released under the MIT License.